Summary: GPL public key crypto Name: gnupg Version: 0.4.0 # this is the place for the release of _this_ particular version of # software. Releases of previous versions do not count. Release: 1 Copyright: GPL Group: Applications/Cryptography # here you have to specify full path, including actual filename, for the # purpouse of source packaging. Source: ftp://ftp.guug.de/pub/gcrypt/%{name}-%{version}.tar.gz URL: http://www.d.shuttle.de/isil/crypt/gnupg.html # you ought to specify patches in headers for the pupouse of source # packaging. Patch: des-decrypt-bug.patch # this isn't the best idea to specify Vendor as long as you are not # packaging the comercial software. # Vendor: Reptile Packager: Robert Richard George 'reptile' Wal # Buildroot: is for installing in FS independant location to avoid trashing # real FS during packaging. BuildRoot: /tmp/%{name}-%{version}-root # provides: is for specifying an element that other software would depend # on. gpg is automagically added to the list in fs-tree, and you can # require it by name (Require: gnupg) or by fs location (/usr/bin/gpg). The # following line is therefore redundant and wrong. #Provides: gpg openpgp %description GNUPG is a complete and free replacement for PGP. Because it does not use IDEA or RSA it can be used without any restrictions. GNUPG is nearly in compliance with the OpenPGP draft. # where did this thing gone? %changelog * Mon Sep 21 1998 Robert Richard George 'reptile' Wal - applied a number of changes correcting building SRC RPM, and building in non-root enviroment. Changed install to /usr instead of /usr/local %prep %setup cd cipher # patches ought to be applied during %prep stage. It makes difference when # you use %patch directive. And it ought to be done this way to mark patch # for source packaging. %patch %build # The following line is redundant and it makes building from non-root # impossible. # chown root.root -R gnupg-0.4.0 # all the binaries and stuff installed through RPM should end up in /usr # dir. /usr/local hierarchy is for software installed w/o RPM. ./configure --prefix=/usr make %install make install prefix=$RPM_BUILD_ROOT/usr # never, ever distribute binary package with not stripped binaries! # if a user wants to debug it he will know how to compile it anyway. RPM # distributed software is for ppl, that want to get ,,final version''. strip -s $RPM_BUILD_ROOT/usr/bin/gpg* chmod +s $RPM_BUILD_ROOT/usr/bin/gpg chmod +s $RPM_BUILD_ROOT/usr/bin/gpgm %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version} %files %defattr(-,root,root,-,root,root) %doc doc/DETAILS %doc INSTALL %doc doc/rfcs %doc AUTHORS %doc ABOUT-NLS %doc COPYING %doc ChangeLog %doc NEWS %doc README %doc THANKS %doc TODO %doc /usr/man/man1/gpg.1 /usr/bin/gpg /usr/bin/gpgm /usr/share/locale/en/LC_MESSAGES/gnupg.mo /usr/share/locale/de/LC_MESSAGES/gnupg.mo /usr/share/locale/it/LC_MESSAGES/gnupg.mo /usr/share/locale/fr/LC_MESSAGES/gnupg.mo %dir /usr/lib/gnupg /usr/lib/gnupg/tiger /usr/lib/gnupg/twofish