Группа :: Работа с файлами
Пакет: gnupg
Главная Изменения Спек Патчи Загрузить Bugs and FR
Name: gnupg
Version: 1.4.1
Release: alt1.M24.0
Summary: The GNU Privacy Guard
License: GPL
Group: File tools
Url: http://www.gnupg.org/
Source: ftp://ftp.gnupg.org/GnuPG/%name/%name-%version.tar.bz2
Source1: pgp2gnupg.html
Patch1: %name-1.4.1-alt-texinfo.patch
Patch2: %name-1.4.1-alt-skel.patch
Patch3: %name-1.4.1-alt-GNUPG_DATADIR.patch
Patch4: %name-1.4.1-alt-autotools.patch
# By Florian Weimer, http://cert.uni-stuttgart.de/files/fw/gnupg-klima-rosa.diff
Patch5: %name-1.4.1-fw-secret-key-checks.patch
Patch6: %name-1.4.1-alt-cp1251.patch
Patch7: %name-1.4.1-alt-getkey.patch
Patch8: %name-1.4.1-alt-always_trust.patch
Patch9: %name-1.4.1-alt-m24_makefile.patch
Patch10: %name-1.4.5-fix-ask_outfile_name.patch
Provides: gpg, openpgp
Requires(post): %install_info
Requires(preun): %uninstall_info
%def_enable ldap
BuildPreReq: bzlib-devel cvs docbook-utils libreadline-devel zlib-devel
%if_enabled ldap
BuildPreReq: libldap-devel
%endif #enabled ldap
%package ldap
Group: File tools
Summary: The LDAP keyserver interface for the GNU Privacy Guard
Requires: %name = %version-%release
%description
GnuPG is GNU's tool for secure communication and data storage.
It can be used to encrypt data and to create digital signatures.
It includes an advanced key management facility and is compliant
with the proposed OpenPGP Internet standard as described in RFC2440.
Because GnuPG does not use use any patented algorithms it is not
by default fully compatible with PGP 2.x, which uses the patented
IDEA algorithm. See http://www.gnupg.org/why-not-idea.html for
more information on this subject, including what to do if you are
legally entitled to use IDEA.
The default public key algorithms are DSA and Elgamal, but RSA is
also supported. Symmetric algorithms available are AES (with 128,
192, and 256 bit keys), 3DES, Blowfish, CAST5 and Twofish. Digest
algorithms available are MD5, RIPEMD/160, SHA-1, SHA-256, SHA-384,
and SHA-512. Compression algorithms available are ZIP, ZLIB, and
BZIP2.
%description ldap
This package contains the LDAP keyserver interface
for the GNU Privacy Guard.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
find -type f -name \*.orig -delete -print
%__install -p -m644 %SOURCE1 doc
%__subst -p 's,/usr\[/local\]/share/gnupg,/etc/gnupg,g' doc/gpg.*
%__grep -FrlZ xloadimage . |xargs -r0 %__subst -p s/xloadimage/xli/g --
%__grep -FrlZ docbook-to-man . |xargs -r0 %__subst -p s/docbook-to-man/docbook2man/g --
%build
%__rm -f aclocal.m4
autoreconf -fisv
%__rm -rf zlib
%__subst -p 's/^mkinstalldirs = .*/mkinstalldirs = \$(SHELL) \$(MKINSTALLDIRS)/' po/Makefile.in.in
export ac_cv_path_SENDMAIL=/usr/sbin/sendmail
%configure \
--with-static-rnd=linux \
--program-prefix= \
--enable-noexecstack \
%{subst_enable ldap} \
#
%make_build
%{!?__buildreqs:%{!?_without_check:%{!?_disable_check:%make_build check}}}
bzip2 -9fk NEWS doc/{DETAILS,FAQ,samplekeys.asc}
%install
%make_install install DESTDIR=$RPM_BUILD_ROOT
%__sed -e 's,../g10/gpg,gpg,' <tools/lspgpot >$RPM_BUILD_ROOT%_bindir/lspgpot
%__sed -e 's,../g10/gpg,gpg,' <tools/convert-from-106 >$RPM_BUILD_ROOT%_bindir/gpg-convert-from-106
%__chmod 755 $RPM_BUILD_ROOT%_bindir/*
# Move localized manpages to FHS compliant locations
%__mkdir_p $RPM_BUILD_ROOT%_mandir/ru/man1
%__mv $RPM_BUILD_ROOT%_man1dir/gpg.ru.* $RPM_BUILD_ROOT%_mandir/ru/man1/
# Remove from %_datadir/%name what we install into %_docdir/%name-%version
%__rm -rfv $RPM_BUILD_ROOT%_datadir/%name
%find_lang %name
%post
%install_info {gpg,gpgv}.info
%preun
%uninstall_info {gpg,gpgv}.info
%files -f %name.lang
%_bindir/*
%_libexecdir/%name
%if_enabled ldap
%exclude %_libexecdir/%name/*ldap*
%endif #enabled ldap
%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/options.skel
%_mandir/man?/*
%lang(ru) %_mandir/ru/man?/*
%_infodir/*.info*
%doc AUTHORS BUGS NEWS.bz2 PROJECTS README THANKS TODO
%doc doc/{HACKING,OpenPGP,highlights-1.4.txt,*.bz2,*.html}
%doc tools/ring-a-party
%if_enabled ldap
%files ldap
%dir %_libexecdir/%name
%_libexecdir/%name/*ldap*
%endif #enabled ldap
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.4.1
Release: alt1.M24.0
Summary: The GNU Privacy Guard
License: GPL
Group: File tools
Url: http://www.gnupg.org/
Source: ftp://ftp.gnupg.org/GnuPG/%name/%name-%version.tar.bz2
Source1: pgp2gnupg.html
Patch1: %name-1.4.1-alt-texinfo.patch
Patch2: %name-1.4.1-alt-skel.patch
Patch3: %name-1.4.1-alt-GNUPG_DATADIR.patch
Patch4: %name-1.4.1-alt-autotools.patch
# By Florian Weimer, http://cert.uni-stuttgart.de/files/fw/gnupg-klima-rosa.diff
Patch5: %name-1.4.1-fw-secret-key-checks.patch
Patch6: %name-1.4.1-alt-cp1251.patch
Patch7: %name-1.4.1-alt-getkey.patch
Patch8: %name-1.4.1-alt-always_trust.patch
Patch9: %name-1.4.1-alt-m24_makefile.patch
Patch10: %name-1.4.5-fix-ask_outfile_name.patch
Provides: gpg, openpgp
Requires(post): %install_info
Requires(preun): %uninstall_info
%def_enable ldap
BuildPreReq: bzlib-devel cvs docbook-utils libreadline-devel zlib-devel
%if_enabled ldap
BuildPreReq: libldap-devel
%endif #enabled ldap
%package ldap
Group: File tools
Summary: The LDAP keyserver interface for the GNU Privacy Guard
Requires: %name = %version-%release
%description
GnuPG is GNU's tool for secure communication and data storage.
It can be used to encrypt data and to create digital signatures.
It includes an advanced key management facility and is compliant
with the proposed OpenPGP Internet standard as described in RFC2440.
Because GnuPG does not use use any patented algorithms it is not
by default fully compatible with PGP 2.x, which uses the patented
IDEA algorithm. See http://www.gnupg.org/why-not-idea.html for
more information on this subject, including what to do if you are
legally entitled to use IDEA.
The default public key algorithms are DSA and Elgamal, but RSA is
also supported. Symmetric algorithms available are AES (with 128,
192, and 256 bit keys), 3DES, Blowfish, CAST5 and Twofish. Digest
algorithms available are MD5, RIPEMD/160, SHA-1, SHA-256, SHA-384,
and SHA-512. Compression algorithms available are ZIP, ZLIB, and
BZIP2.
%description ldap
This package contains the LDAP keyserver interface
for the GNU Privacy Guard.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
find -type f -name \*.orig -delete -print
%__install -p -m644 %SOURCE1 doc
%__subst -p 's,/usr\[/local\]/share/gnupg,/etc/gnupg,g' doc/gpg.*
%__grep -FrlZ xloadimage . |xargs -r0 %__subst -p s/xloadimage/xli/g --
%__grep -FrlZ docbook-to-man . |xargs -r0 %__subst -p s/docbook-to-man/docbook2man/g --
%build
%__rm -f aclocal.m4
autoreconf -fisv
%__rm -rf zlib
%__subst -p 's/^mkinstalldirs = .*/mkinstalldirs = \$(SHELL) \$(MKINSTALLDIRS)/' po/Makefile.in.in
export ac_cv_path_SENDMAIL=/usr/sbin/sendmail
%configure \
--with-static-rnd=linux \
--program-prefix= \
--enable-noexecstack \
%{subst_enable ldap} \
#
%make_build
%{!?__buildreqs:%{!?_without_check:%{!?_disable_check:%make_build check}}}
bzip2 -9fk NEWS doc/{DETAILS,FAQ,samplekeys.asc}
%install
%make_install install DESTDIR=$RPM_BUILD_ROOT
%__sed -e 's,../g10/gpg,gpg,' <tools/lspgpot >$RPM_BUILD_ROOT%_bindir/lspgpot
%__sed -e 's,../g10/gpg,gpg,' <tools/convert-from-106 >$RPM_BUILD_ROOT%_bindir/gpg-convert-from-106
%__chmod 755 $RPM_BUILD_ROOT%_bindir/*
# Move localized manpages to FHS compliant locations
%__mkdir_p $RPM_BUILD_ROOT%_mandir/ru/man1
%__mv $RPM_BUILD_ROOT%_man1dir/gpg.ru.* $RPM_BUILD_ROOT%_mandir/ru/man1/
# Remove from %_datadir/%name what we install into %_docdir/%name-%version
%__rm -rfv $RPM_BUILD_ROOT%_datadir/%name
%find_lang %name
%post
%install_info {gpg,gpgv}.info
%preun
%uninstall_info {gpg,gpgv}.info
%files -f %name.lang
%_bindir/*
%_libexecdir/%name
%if_enabled ldap
%exclude %_libexecdir/%name/*ldap*
%endif #enabled ldap
%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/options.skel
%_mandir/man?/*
%lang(ru) %_mandir/ru/man?/*
%_infodir/*.info*
%doc AUTHORS BUGS NEWS.bz2 PROJECTS README THANKS TODO
%doc doc/{HACKING,OpenPGP,highlights-1.4.txt,*.bz2,*.html}
%doc tools/ring-a-party
%if_enabled ldap
%files ldap
%dir %_libexecdir/%name
%_libexecdir/%name/*ldap*
%endif #enabled ldap
%changelog
…
Полный changelog можно просмотреть здесь