This commit is contained in:
Rex Dieter 2006-11-13 20:36:26 +00:00
parent 6a6cd68bc9
commit 007e5eed47
3 changed files with 24 additions and 26 deletions

View File

@ -1,4 +1,4 @@
gnupg-1.9.94.tar.bz2
gnupg-1.9.94.tar.bz2.sig
gnupg-1.9.95.tar.bz2 gnupg-1.9.95.tar.bz2
gnupg-1.9.95.tar.bz2.sig gnupg-1.9.95.tar.bz2.sig
gnupg-2.0.0.tar.bz2
gnupg-2.0.0.tar.bz2.sig

View File

@ -7,18 +7,15 @@
%define kde_scriptdir %{_prefix} %define kde_scriptdir %{_prefix}
%endif %endif
# define to build/include gpg2 binary
%define _enable_gpg --enable-gpg
Summary: Utility for secure communication and data storage Summary: Utility for secure communication and data storage
Name: gnupg2 Name: gnupg2
Version: 1.9.95 Version: 2.0.0
Release: 2%{?dist} Release: 1%{?dist}
License: GPL License: GPL
Group: Applications/System Group: Applications/System
Source0: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.bz2 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
Source1: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.bz2.sig Source1: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2.sig
URL: http://www.gnupg.org/ URL: http://www.gnupg.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -26,6 +23,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source10: gpg-agent-startup.sh Source10: gpg-agent-startup.sh
Source11: gpg-agent-shutdown.sh Source11: gpg-agent-shutdown.sh
# http://lists.gnupg.org/pipermail/gnupg-devel/2006-November/023359.html
Patch1: gnupg-1.9.95-64bit.patch
Patch2: gnupg-1.9.16-testverbose.patch Patch2: gnupg-1.9.16-testverbose.patch
Patch3: gnupg-1.9.91-dearmor.patch Patch3: gnupg-1.9.91-dearmor.patch
@ -56,10 +55,8 @@ BuildRequires: pcsc-lite-libs
Requires: fileutils util-linux Requires: fileutils util-linux
Requires: pinentry >= 0.7.1 Requires: pinentry >= 0.7.1
%if "%{?_enable_gpg:1}" == "1"
Provides: gpg Provides: gpg
Provides: openpgp Provides: openpgp
%endif
%description %description
GnuPG 1.9 is the future version of GnuPG; it is based on some gnupg-1.3 GnuPG 1.9 is the future version of GnuPG; it is based on some gnupg-1.3
@ -79,6 +76,7 @@ alongside; in act we suggest to do this.
%prep %prep
%setup -q -n gnupg-%{version} %setup -q -n gnupg-%{version}
#patch1 -p1 -b .64bit
#patch2 -p1 -b .testverbose #patch2 -p1 -b .testverbose
%patch3 -p1 -b .dearmor %patch3 -p1 -b .dearmor
@ -96,15 +94,9 @@ sed -i -e 's/"libpcsclite\.so"/"%{pcsclib}"/' scd/{scdaemon,pcsc-wrapper}.c
%build %build
# see --disable-optimization below
%ifarch x86_64
#export CFLAGS="%(echo %{optflags} | sed -e 's|-O2|-O0|')"
%endif
%configure \ %configure \
--disable-rpath \ --disable-rpath \
--enable-selinux-support \ --enable-selinux-support \
%{?_enable_gpg} \
%ifarch x86_64 %ifarch x86_64
--disable-optimization --disable-optimization
%endif %endif
@ -113,11 +105,6 @@ sed -i -e 's/"libpcsclite\.so"/"%{pcsclib}"/' scd/{scdaemon,pcsc-wrapper}.c
make make
%check
# some gpg2 tests (still) FAIL
make -k check ||:
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -139,6 +126,11 @@ mv $RPM_BUILD_ROOT%{_mandir}/man7/gnupg.7 $RPM_BUILD_ROOT%{_mandir}/man7/gnupg2.
rm -f $RPM_BUILD_ROOT%{_infodir}/dir rm -f $RPM_BUILD_ROOT%{_infodir}/dir
%check
# some gpg2 tests (still) FAIL
make -k check ||:
%post %post
/sbin/install-info %{_infodir}/gnupg.info %{_infodir}/dir ||: /sbin/install-info %{_infodir}/gnupg.info %{_infodir}/dir ||:
@ -147,15 +139,14 @@ if [ $1 -eq 0 ]; then
/sbin/install-info --delete %{_infodir}/gnupg.info %{_infodir}/dir ||: /sbin/install-info --delete %{_infodir}/gnupg.info %{_infodir}/dir ||:
fi fi
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
%if "%{?_enable_gpg:1}" == "1"
#docs say to install suid root, but we won't, for now. #docs say to install suid root, but we won't, for now.
#attr(4755,root,root) %{_bindir}/gpg2 #attr(4755,root,root) %{_bindir}/gpg2
%{_bindir}/gpg2 %{_bindir}/gpg2
%{_bindir}/gpgv2 %{_bindir}/gpgv2
%endif
%{_bindir}/gpg-connect-agent %{_bindir}/gpg-connect-agent
%{_bindir}/gpg-agent %{_bindir}/gpg-agent
%{_bindir}/gpgconf %{_bindir}/gpgconf
@ -176,11 +167,18 @@ fi
%{kde_scriptdir}/env/*.sh %{kde_scriptdir}/env/*.sh
%{kde_scriptdir}/shutdown/*.sh %{kde_scriptdir}/shutdown/*.sh
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Mon Nov 13 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.0-1
- 2.0
* Fri Nov 10 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.95-3
- upstream 64bit patch
* Mon Nov 06 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.95-2 * Mon Nov 06 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.95-2
- fix (more) file conflicts with gnupg - fix (more) file conflicts with gnupg

View File

@ -1,2 +1,2 @@
2f8f134c4b0a8a69f2017100e7a51101 gnupg-1.9.95.tar.bz2 65dc5da3bd4ec127f81c584c8200d813 gnupg-2.0.0.tar.bz2.sig
a0d38a16e7542e4c4fd10607fe029745 gnupg-1.9.95.tar.bz2.sig 13c0d43bd1f4a129de470dda20192284 gnupg-2.0.0.tar.bz2