diff --git a/.cvsignore b/.cvsignore index e69de29..8b0f581 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +pcsc-lite-1.3.1.tar.gz diff --git a/pcsc-lite-1.3.0-rpath64.patch b/pcsc-lite-1.3.0-rpath64.patch new file mode 100644 index 0000000..71b3d6a --- /dev/null +++ b/pcsc-lite-1.3.0-rpath64.patch @@ -0,0 +1,20 @@ +--- pcsc-lite-1.3.0/configure~ 2006-03-03 15:48:59.000000000 +0200 ++++ pcsc-lite-1.3.0/configure 2006-03-05 23:40:48.000000000 +0200 +@@ -9103,7 +9103,7 @@ + shlibpath_overrides_runpath=unknown + version_type=none + dynamic_linker="$host_os ld.so" +-sys_lib_dlsearch_path_spec="/lib /usr/lib" ++sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" + if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then +@@ -9480,7 +9480,7 @@ + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` +- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on diff --git a/pcsc-lite-docinst.patch b/pcsc-lite-docinst.patch new file mode 100644 index 0000000..02279cd --- /dev/null +++ b/pcsc-lite-docinst.patch @@ -0,0 +1,11 @@ +--- doc/Makefile.in 2003-05-31 00:24:32.000000000 +0300 ++++ doc/Makefile.in 2003-06-01 15:43:17.000000000 +0300 +@@ -390,7 +390,7 @@ + + info-am: + +-install-data-am: install-dataDATA install-man ++install-data-am: install-man + + install-exec-am: + diff --git a/pcsc-lite.spec b/pcsc-lite.spec new file mode 100644 index 0000000..4d0281f --- /dev/null +++ b/pcsc-lite.spec @@ -0,0 +1,229 @@ +Name: pcsc-lite +Version: 1.3.1 +Release: 2 +Summary: PC/SC Lite smart card framework and applications + +Group: System Environment/Daemons +License: BSD +URL: http://pcsclite.alioth.debian.org/ +Source0: http://alioth.debian.org/download.php/1565/%{name}-%{version}.tar.gz +Patch0: %{name}-docinst.patch +Patch1: %{name}-1.3.0-rpath64.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libusb-devel >= 0.1.7 +BuildRequires: doxygen +Requires(post): /sbin/chkconfig +Requires(preun): /sbin/chkconfig +Requires: pcsc-ifd-handler + +%description +The purpose of PC/SC Lite is to provide a Windows(R) SCard interface +in a very small form factor for communicating to smartcards and +readers. PC/SC Lite uses the same winscard API as used under +Windows(R). This package includes the PC/SC Lite daemon, a resource +manager that coordinates communications with smart card readers and +smart cards that are connected to the system, as well as other command +line tools. + +%package libs +Summary: PC/SC Lite libraries +Group: System Environment/Libraries +Provides: libpcsc-lite = %{version}-%{release} + +%description libs +PC/SC Lite libraries. + +%package devel +Summary: PC/SC Lite development files +Group: Development/Libraries +Requires: %{name}-libs = %{version}-%{release} +Requires: pkgconfig +Provides: libpcsc-lite-devel = %{version}-%{release} + +%description devel +PC/SC Lite development files. + +%package doc +Summary: PC/SC Lite developer documentation +Group: Documentation + +%description doc +%{summary}. + + +%prep +%setup -q +%patch0 -p0 +%patch1 -p1 + +%build +%configure \ + --disable-dependency-tracking \ + --disable-static \ + --enable-runpid=%{_localstatedir}/run/pcscd.pid \ + --enable-confdir=%{_sysconfdir} \ + --enable-ipcdir=%{_localstatedir}/run \ + --enable-usbdropdir=%{_libdir}/pcsc/drivers +make %{?_smp_mflags} +doxygen doc/doxygen.conf ; rm -f doc/api/*.{map,md5} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +install -dm 755 $RPM_BUILD_ROOT%{_libdir}/pcsc/drivers + +install -Dpm 755 etc/pcscd.init $RPM_BUILD_ROOT%{_initrddir}/pcscd + +cat < $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d/README +All *.conf files in this directory are merged into %{_sysconfdir}/reader.conf +by %{_sbindir}/update-reader.conf. +EOF + +rm $RPM_BUILD_ROOT{%{_sysconfdir}/reader.conf.d/reader.conf,%{_libdir}/lib*.la} +touch $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +/sbin/chkconfig --add pcscd + +%preun +if [ $1 -eq 0 ] ; then + %{_initrddir}/pcscd stop >/dev/null || : + /sbin/chkconfig --del pcscd +fi + +%postun +[ $1 -gt 0 ] && %{_initrddir}/pcscd try-restart >/dev/null || : + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog* COPYING DRIVERS HELP README SECURITY TODO +%dir %{_sysconfdir}/reader.conf.d/ +%doc %{_sysconfdir}/reader.conf.d/README +%ghost %config %{_sysconfdir}/reader.conf +%{_initrddir}/pcscd +%{_bindir}/formaticc +%{_sbindir}/installifd +%{_sbindir}/pcscd +%{_sbindir}/update-reader.conf +%{_libdir}/pcsc/ +%{_mandir}/man1/formaticc.1* +%{_mandir}/man5/reader.conf.5* +%{_mandir}/man8/pcscd.8* + +%files libs +%defattr(-,root,root,-) +%{_libdir}/libpcsclite.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/PCSC/ +%{_libdir}/libpcsclite.so +%{_libdir}/pkgconfig/libpcsclite.pc + +%files doc +%defattr(-,root,root,-) +%doc doc/api/ doc/*.pdf doc/example/pcsc_demo.c + + +%changelog +* Mon Jun 5 2006 Bob Relyea - 1.3.1-2 +- Move to Fedora Core. +- Remove dependency on graphviz. +- Removed %%{_dist} + +* Sat Apr 22 2006 Ville Skyttä - 1.3.1-1 +- 1.3.1. + +* Sun Mar 5 2006 Ville Skyttä - 1.3.0-1 +- 1.3.0, init script and reader.conf updater included upstream. +- Split developer docs into a -doc subpackage, include API docs. +- libmusclecard no longer included, split into separate package upstream. + +* Mon Feb 13 2006 Ville Skyttä - 1.2.0-14 +- Avoid standard rpaths on multilib archs. +- Fine tune dependencies. + +* Fri Nov 11 2005 Ville Skyttä - 1.2.0-13 +- Don't ship static libraries. +- Don't mark the init script as a config file. +- Use rm instead of %%exclude. +- Specfile cleanups. + +* Thu May 19 2005 Ville Skyttä - 1.2.0-12 +- Rebuild. + +* Fri Apr 7 2005 Michael Schwendt - 1.2.0-11 +- rebuilt + +* Tue Aug 17 2004 Ville Skyttä - 0:1.2.0-10 +- Disable dependency tracking to speed up the build. +- Drop reader.conf patch, it's not needed any more. +- Rename update-reader-conf to update-reader.conf for consistency with Debian, + and improve it a bit. + +* Sat Jul 31 2004 Ville Skyttä - 0:1.2.0-0.fdr.9 +- Add update-reader-conf, thanks to Fritz Elfert. + +* Thu Jul 1 2004 Ville Skyttä - 0:1.2.0-0.fdr.8 +- Own the %%{_libdir}/pcsc hierarchy. + +* Thu May 13 2004 Ville Skyttä - 0:1.2.0-0.fdr.7 +- Make main package require pcsc-ifd-handler (idea from Debian). + +* Wed May 12 2004 Ville Skyttä - 0:1.2.0-0.fdr.6 +- Improve package summary. +- Improvements based on suggestions from Ludovic Rousseau: + - Don't install pcsc_demo but do include its source in -devel. + - Sync reader.conf with current upstream CVS HEAD (better docs, less + intrusive in USB-only setups where it's not needed). + +* Fri Apr 16 2004 Ville Skyttä - 0:1.2.0-0.fdr.5 +- Move PDF API docs to -devel. +- Improve main package and init script descriptions. + +* Thu Jan 29 2004 Ville Skyttä - 0:1.2.0-0.fdr.4 +- Init script fine tuning. + +* Fri Jan 9 2004 Ville Skyttä - 0:1.2.0-0.fdr.3 +- BuildRequires libusb-devel 0.1.6 or newer. + +* Thu Oct 30 2003 Ville Skyttä - 0:1.2.0-0.fdr.2 +- s/pkgconfi/pkgconfig/ in -devel requirements. + +* Tue Oct 28 2003 Ville Skyttä - 0:1.2.0-0.fdr.1 +- Update to 1.2.0. +- Add libpcsc-lite and libmusclecard provides to -libs and -devel. + +* Thu Oct 16 2003 Ville Skyttä - 0:1.2.0-0.fdr.0.2.rc3 +- Update to 1.2.0-rc3. +- Trivial init script improvements. +- Enable %%{_smp_mflags}. +- Don't bother trying to enable SCF. + +* Sun Sep 14 2003 Ville Skyttä - 0:1.2.0-0.fdr.0.2.rc2 +- Specfile cleanups. + +* Fri Sep 5 2003 Ville Skyttä - 0:1.2.0-0.fdr.0.1.rc2 +- Update to 1.2.0-rc2. + +* Wed Aug 27 2003 Ville Skyttä - 0:1.2.0-0.fdr.0.1.rc1 +- Update to 1.2.0-rc1. + +* Sun Jun 1 2003 Ville Skyttä - 0:1.1.2-0.fdr.0.1.beta5 +- Update to 1.1.2beta5. + +* Sat May 24 2003 Ville Skyttä - 0:1.1.2-0.fdr.0.1.beta4 +- First build, based on PLD's 1.1.1-2. diff --git a/sources b/sources index e69de29..d53b48a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +90fa7e9cdfdfe88fdf6644ca8b60a681 pcsc-lite-1.3.1.tar.gz