Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > ed6e26dc7c4d02b69ebcbdc01c71d280 > files > 6

gnupg-1.4.2.2-0.2.102mdk.src.rpm

%define version 1.4.2.2
%define release 0.2.102mdk

Name:		gnupg
Summary:	GNU privacy guard - a free PGP replacement
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		File tools
URL:		http://www.gnupg.org
Source:		ftp://ftp.gnupg.org/gcrypt/gnupg/%{name}-%{version}.tar.bz2
Source1:	ftp://ftp.gnupg.org/gcrypt/gnupg/%{name}-%{version}.tar.bz2.sig
Source2:	mdk-keys.tar.bz2
Source3:	mdk-keys.tar.bz2.sig
Patch0:		gnupg-1.0.7-options.patch.bz2
Patch1:		gnupg-1.4.0-use-agent-by-default.patch.bz2
Patch2:		gnupg-1.4.2.2-CVE-2006-3082.patch
BuildRequires:	libldap-devel, smtpdaemon
BuildRoot:	%{_tmppath}/%{name}-buildroot

%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.

%prep
%setup -q
%patch0 -p1 -b .mdkopts
%patch1 -p1 -b .use_agent
%patch2 -p1 -b .cve-2006-3082

%build
%ifnarch sparc sparc64
	mguard="--enable-m-guard"
%endif
%configure2_5x --with-included-gettext --with-static-rnd=linux $mguard
make
# all tests must pass
make check

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

sed -e "s#../g10/gpg#gpg#" < tools/lspgpot > %{buildroot}%{_bindir}/lspgpot

chmod 755 %{buildroot}%{_bindir}/lspgpot
# (fc) 1.0.4-5mdk gpg is setuid
chmod 4755  %{buildroot}%{_bindir}/gpg

perl -pi -e 's|/usr/local|/usr/|' %{buildroot}%{_mandir}/man1/gpg.1

#cp -aRf doc doc.geoff
#rm -f doc.geoff/Makefile*
#rm -f doc.geoff/{gpg,gpgv}.1
#rm -f doc/Makefile*
#rm -f doc/{gpg,gpgv}.1

# installed but not wanted
rm -f %{buildroot}%{_datadir}/gnupg/{FAQ,faq.html}
rm -f %{buildroot}%{_datadir}/locale/locale.alias

mkdir -p %{buildroot}%{_sysconfdir}/RPM-GPG-KEYS
tar xvjf %{SOURCE2} -C %{buildroot}%{_sysconfdir}/RPM-GPG-KEYS

%{find_lang} %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post
%_install_info gpg.info
%_install_info gpgv.info

%postun
%_remove_install_info gpg.info
%_remove_install_info gpgv.info


%files -f %{name}.lang
%defattr(-,root,root)
%doc README NEWS THANKS TODO ChangeLog doc/DETAILS doc/FAQ doc/HACKING
%doc doc/faq.html doc/faq.raw doc/OpenPGP doc/samplekeys.asc
%doc doc/gpg.sgml doc/gpg.texi doc/gpgv.sgml doc/gpgv.texi
%attr(4755,root,root) %{_bindir}/gpg
%{_bindir}/gpgv
%{_bindir}/lspgpot
%{_bindir}/gpgsplit
%dir %{_libdir}/gnupg
%{_libdir}/gnupg/gpgkeys*
%dir %{_datadir}/gnupg
%{_datadir}/gnupg/options.skel
%{_mandir}/man1/*
%{_mandir}/man7/*
%{_infodir}/gpg*.info.bz2
%dir %{_sysconfdir}/RPM-GPG-KEYS
%attr(0644,root,root) %{_sysconfdir}/RPM-GPG-KEYS/*.asc

%changelog
* Tue Jun 20 2006 Vincent Danen <vdanen@mandriva.com> 1.4.2.2-0.2.102mdk
- P2: security fix for CVE-2006-3082

* Sun Mar 12 2006 Vincent Danen <vdanen@mandriva.com> 1.4.2.2-0.1.102mdk
- 1.4.2.2; fixes CVE-2006-0049
- drop P2; fixed upstream

* Tue Feb 14 2006 Stew Benedict <sbenedict@mandriva.com> 1.4.2-2.1.20060mdk
- P2: security fix for CVE-2006-0455

* Tue Aug 30 2005 Oden Eriksson <oeriksson@mandriva.com> 1.4.2-2mdk
- rebuilt against new openldap-2.3.6 libs
- fix deps

* Tue Aug 23 2005 Abel Cheung <deaddog@mandriva.org> 1.4.2-1mdk
- New release 1.4.2
- cosmetic fixes
- Drop patch2 (upstream)

* Fri Jul 22 2005 Nicolas LĂ©cureuil <neoclust@mandriva.org> 1.4.0-5mdk
- Rebuild
- Fix File Section
- Fix smtpdaemon

* Mon Apr 04 2005 Vincent Danen <vdanen@mandrakesoft.com> 1.4.0-4mdk
- P2: security patch for CAN-2005-0366

* Wed Mar 23 2005 Laurent MONTEL <lmontel@mandrakesoft.com> 1.4.0-3mdk
- Add patch1: use-agent by default to allow to crypt/uncrypt mail into kmail
	thanks to Plouf <plouf@montpelliertux.org>  and Neoclust <neoclust@mandrake.org> to point me it

* Fri Feb 04 2005 Buchan Milne <bgmilne@linux-mandrake.com> 1.4.0-2mdk
- rebuild for ldap2.2_7

* Wed Dec 22 2004 Stew Benedict <sbenedict@mandrakesoft.com> 1.4.0-1mdk
- 1.4.0

* Wed Nov 10 2004 Stew Benedict <sbenedict@mandrakesoft.com> 1.2.6-1mdk
- 1.2.6

* Mon Jan 12 2004 Vincent Danen <vdanen@mandrakesoft.com> 1.2.4-1mdk
- 1.2.4
- remove P2 (elgamal patch)

* Thu Nov 27 2003 Vincent Danen <vdanen@mandrakesoft.com> 1.2.3-4mdk
- security fix (elgamal vuln)
- BuildRequires: libldap-devel, smtpdaemon

* Tue Aug 26 2003 Vincent Danen <vdanen@mandrakesoft.com> 1.2.3-3mdk
- remove import of gpg keys for rpm as it apparently corrupts the rpmdb

* Tue Aug 26 2003 Vincent Danen <vdanen@mandrakesoft.com> 1.2.3-2mdk
- rebuild so it shows up

* Sat Aug 23 2003 Vincent Danen <vdanen@mandrakesoft.com> 1.2.3-1mdk
- don't add keys to root's keyring anymore
- new directory /etc/RPM-GPG-KEYS stores the keys we use
- import keys into rpm in %%post
- miscellaneous specfile cleanups

* Mon Aug 11 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.2.2-4mdk
- Move gpgkeys to gnupg subdir
- Patch1: Fix regression test script

* Sat Aug  2 2003 Pixel <pixel@mandrakesoft.com> 1.2.2-3mdk
- /usr/lib/gpgkeys_mailto disappears when i rebuild, otherwise i would have done:
	  only /usr/lib/gpgkeys_mailto needs perl(Getopt::Std),
	  ignore this require
  but this is not needed since gpgkeys_mailto has disappeared (why??)

* Sat Jun 07 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.2.2-2mdk
- fix bus-error on sparc
- don't include debug files

* Wed May  7 2003 Vincent Danen <vdanen@mandrakesoft.com> 1.2.2-1mdk
- 1.2.2

* Tue Feb 25 2003 François Pons <fpons@mandrakesoft.com> 1.2.1-3mdk
- rebuild to remove libopenssl0 dependencies.

* Mon Dec 30 2002 Vincent Danen <vdanen@mandrakesoft.com> 1.2.1-2mdk
- rebuild against new glibc, etc.
- include missing manpage, info files, _libdir files, and gpgsplit
- install_info/remove_install_info macros

* Mon Oct 28 2002 Vincent Danen <vdanen@mandrakesoft.com> 1.2.1-1mdk
- 1.2.1
- try enabling memory guard features (--enable-m-guard)

* Tue Aug 13 2002 Vincent Danen <vdanen@mandrakesoft.com> 1.0.7-3mdk
- fix permissions of /root/.gnupg to be 600 (this way 644 files in the dir
  don't make gpg complain) - re: Andreas Simon
- clean our build dir
- add www.mandrakesecure.net as the default keyserver in newly-created
  options files

* Mon Aug 12 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.0.7-2mdk
- rpmlint fixes: strange-permission
- costlessly make check in %%build stage

* Tue Apr 30 2002 Vincent Danen <vdanen@mandrakesoft.com> 1.0.7-1mdk
- 1.0.7
- remove P0; included upstream

* Wed Mar 13 2002 Frederic Lepied <flepied@mandrakesoft.com> 1.0.6-5mdk
- updated gpg keys

* Tue Oct 23 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.0.6-4mdk
- strip sgid bit from gpg (thanks ekj@ekj.vetsdata.no) for security

* Fri Jul 13 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.0.6-3mdk
- s/Copyright/License/
- minor spec cleaning
- use pristine source (tar.gz) and include signature file for sourc
  (security policy)

* Wed May 30 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.0.6-2mdk
- fix description, remove reference to patents

* Wed May 30 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.0.6-1mdk
- 1.0.6

* Tue May  1 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.0.5-1.1mdk
- security update for 7.2/8.0

* Tue May  1 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.0.5-1mdk
- 1.0.5

* Tue Apr 10 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.0.4-6mdk
- include new public key signed by mandrake@mandrakesoft.com and
  security@turbolinux.com

* Mon Apr  9 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.4-5mdk
- ship gnupg as setuid (blessed by maintainer and security team)

* Fri Jan 19 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.0.4-4mdk
- remove FAQ and faq.html from /usr/share/gnupg.

* Wed Dec 20 2000 Vincent Danen <vdanen@mandrakesoft.com> 1.0.4-3mdk
- security fix, official patch applied
- add the --allow-secret-key-import patch from CVS
- remove the strlen patch, as it is included in the official security patch
- specfile cleanups

* Tue Nov 22 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.0.4-2mdk
- Red Hat merge aka shamelessly rip patches.

* Wed Oct 18 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.0.4-1mdk
- build a new and sane version (aka big big bugz fix).

* Thu Oct 12 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.3-1mdk
- 1.2.3
- puts Url: and full Source: path

* Tue Oct  3 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.0.2-4mdk
- touch /root/.gnupg/options in %%post to avoid errors.

* Fri Sep 29 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.0.2-3mdk
- create ~/.gnupg in %%post to avoid errors.

* Thu Sep 28 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.0.2-2mdk
- added import of mandrake's gpg keys ib %%post

* Wed Sep 13 2000 Vincent Danen <vdanen@mandrakesoft.com> 1.0.2-1mdk
- 1.0.2

* Wed Sep 13 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.1-3mdk
- BM

* Tue Apr 25 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.0.1-2mdk
- Upgrade groups.

* Thu Jan  6 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.0.1-1mdk
- First spec file for Mandrake distribution, mainly based on debian version.

# end of file