rpms/gnupg2/devel gnupg2.spec,1.32,1.33

Rex Dieter (rdieter) fedora-extras-commits at redhat.com
Mon Mar 6 18:13:55 UTC 2006


Author: rdieter

Update of /cvs/extras/rpms/gnupg2/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1754

Modified Files:
	gnupg2.spec 
Log Message:
* Mon Mar  6 2006 Ville Skyttä <ville.skytta at iki.fi>> 1.9.20-33
- Don't hardcode pcsc-lite lib name.

cleanup %{kde_scriptdir} usage




Index: gnupg2.spec
===================================================================
RCS file: /cvs/extras/rpms/gnupg2/devel/gnupg2.spec,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- gnupg2.spec	16 Feb 2006 19:50:31 -0000	1.32
+++ gnupg2.spec	6 Mar 2006 18:13:55 -0000	1.33
@@ -1,22 +1,11 @@
 
-# pcsc-lite library major: 0 in 1.2.0, 1 in 1.2.9+ (dlopen()'d in pcsc-wrapper)
-# Note: this is just the name of the default shared lib to load in scdaemon,
-# it can use other implementations too (including non-pcsc ones).
-%define pcsc_lib libpcsclite.so.0
-
-
 # Keep an eye on http://bugzilla.redhat.com/bugzilla/175744, in case these dirs go away or change
-%if "%{?fedora}" > "4"
 %define kde_scriptdir %{_sysconfdir}/kde
-%else
-%define kde_scriptdir %{_prefix}
-%define own_scriptdir 1
-%endif
 
 Summary: Utility for secure communication and data storage
 Name:    gnupg2
 Version: 1.9.20
-Release: 2%{?dist}
+Release: 3%{?dist}
 
 License: GPL
 Group:   Applications/System
@@ -57,6 +46,9 @@
 BuildRequires: bzip2-devel
 Buildrequires: libusb-devel
 BuildRequires: docbook-utils
+%if "%{?fedora}" > "3"
+BuildRequires: pcsc-lite-libs
+%endif
 
 Requires: pinentry >= 0.7.1
 
@@ -88,7 +80,16 @@
 #sed -i -e 's|^NEED_KSBA_VERSION=.*|NEED_KSBA_VERSION=0.9.11|' configure.ac configure
 #endif
 
-sed -i -e 's/"libpcsclite\.so"/"%{pcsc_lib}"/' scd/{scdaemon,pcsc-wrapper}.c
+# pcsc-lite library major: 0 in 1.2.0, 1 in 1.2.9+ (dlopen()'d in pcsc-wrapper)
+# Note: this is just the name of the default shared lib to load in scdaemon,
+# it can use other implementations too (including non-pcsc ones).
+%if "%{?fedora}" > "3"
+%global pcsclib %(basename $(ls -1 %{_libdir}/libpcsclite.so.?))
+%else
+%define pcsclib libpcsclite.so.0
+%endif
+
+sed -i -e 's/"libpcsclite\.so"/"%{pcsclib}"/' scd/{scdaemon,pcsc-wrapper}.c
 
 
 %build
@@ -100,7 +101,6 @@
 
 make %{?_smp_mflags}
 
-
 %check ||:
 ## Allows for better debugability (doesn't work, fixme)
 # echo "debug-allow-core-dumps" >> tests/gpgsm.conf
@@ -154,13 +154,8 @@
 %{_libdir}/gnupg/
 %{_libexecdir}/*
 %{_infodir}/*
-%if "%{?own_scriptdir}" == "1"
-%{kde_scriptdir}/env/
-%{kde_scriptdir}/shutdown/
-%else
 %{kde_scriptdir}/env/*.sh
 %{kde_scriptdir}/shutdown/*.sh
-%endif
 
 
 %clean
@@ -168,8 +163,11 @@
 
 
 %changelog
+* Mon Mar  6 2006 Ville Skyttä <ville.skytta at iki.fi>> 1.9.20-3
+- Don't hardcode pcsc-lite lib name.
+
 * Thu Feb 16 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.20-2
-- fc5+: use /etc/kde/(env|shutdown) for scripts (#175744)
+- use /etc/kde/(env|shutdown) for scripts (#175744)
 
 * Fri Feb 10 2006 Rex Dieter <rexdieter[AT]users.sf.net>
 - fc5: gcc/glibc respin




More information about the scm-commits mailing list