Blame SPECS/pcsc-lite.spec

0f879b
%global upstream_build 3862
0f879b
0f879b
Name:           pcsc-lite
0f879b
Version:        1.8.8
2782fd
Release:        4%{?dist}
0f879b
Summary:        PC/SC Lite smart card framework and applications
0f879b
0f879b
Group:          System Environment/Daemons
0f879b
License:        BSD
0f879b
URL:            http://pcsclite.alioth.debian.org/
0f879b
Source0:        http://alioth.debian.org/download.php/%{upstream_build}/%{name}-%{version}.tar.bz2
0f879b
0f879b
BuildRequires:  doxygen
0f879b
BuildRequires:  graphviz
0f879b
BuildRequires:  systemd-devel
0f879b
BuildRequires:  /usr/bin/pod2man
0f879b
0f879b
Requires(post): systemd
0f879b
Requires(preun): systemd
0f879b
Requires(postun): systemd
0f879b
Requires:       pcsc-ifd-handler
0f879b
Requires:       %{name}-libs = %{version}-%{release}
0f879b
0f879b
%description
0f879b
The purpose of PC/SC Lite is to provide a Windows(R) SCard interface
0f879b
in a very small form factor for communicating to smartcards and
0f879b
readers.  PC/SC Lite uses the same winscard API as used under
0f879b
Windows(R).  This package includes the PC/SC Lite daemon, a resource
0f879b
manager that coordinates communications with smart card readers and
0f879b
smart cards that are connected to the system, as well as other command
0f879b
line tools.
0f879b
0f879b
%package        libs
0f879b
Summary:        PC/SC Lite libraries
0f879b
Group:          System Environment/Libraries
0f879b
0f879b
%description    libs
0f879b
PC/SC Lite libraries.
0f879b
0f879b
%package        devel
0f879b
Summary:        PC/SC Lite development files
0f879b
Group:          Development/Libraries
0f879b
Requires:       %{name}-libs = %{version}-%{release}
0f879b
0f879b
%description    devel
0f879b
PC/SC Lite development files.
0f879b
0f879b
%package        doc
0f879b
Summary:        PC/SC Lite developer documentation
0f879b
Group:          Documentation
0f879b
BuildArch:      noarch
0f879b
Requires:       %{name}-libs = %{version}-%{release}
0f879b
0f879b
%description    doc
0f879b
%{summary}.
0f879b
0f879b
0f879b
%prep
0f879b
%setup -q
0f879b
0f879b
# Convert to utf-8
0f879b
for file in ChangeLog; do
0f879b
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
0f879b
    touch -r $file $file.new && \
0f879b
    mv $file.new $file
0f879b
done
0f879b
0f879b
0f879b
%build
0f879b
export LDFLAGS="-Wl,-z,now -Wl,-z,relro -pie"
0f879b
export CFLAGS="%optflags -fPIE -DPIE"
0f879b
%configure \
0f879b
  --disable-static \
0f879b
  --enable-usbdropdir=%{_libdir}/pcsc/drivers
0f879b
make %{?_smp_mflags}
0f879b
doxygen doc/doxygen.conf ; rm -f doc/api/*.{map,md5}
0f879b
0f879b
0f879b
%install
0f879b
make install DESTDIR=$RPM_BUILD_ROOT
0f879b
0f879b
# Create empty directories
0f879b
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d
0f879b
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pcsc/drivers
0f879b
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/pcscd
0f879b
0f879b
rm $RPM_BUILD_ROOT%{_libdir}/*.la
0f879b
0f879b
# Remove documentation installed in a wrong directory
0f879b
rm $RPM_BUILD_ROOT%{_docdir}/pcsc-lite/README.DAEMON
0f879b
0f879b
0f879b
%post
0f879b
%systemd_post pcscd.socket pcscd.service
0f879b
0f879b
%preun
0f879b
%systemd_preun pcscd.socket pcscd.service
0f879b
0f879b
%postun
0f879b
%systemd_postun_with_restart pcscd.socket pcscd.service
0f879b
0f879b
%post libs -p /sbin/ldconfig
0f879b
0f879b
%postun libs -p /sbin/ldconfig
0f879b
0f879b
0f879b
%files
0f879b
%doc AUTHORS ChangeLog* DRIVERS HELP README SECURITY TODO
0f879b
%dir %{_sysconfdir}/reader.conf.d/
0f879b
%{_unitdir}/pcscd.service
0f879b
%{_unitdir}/pcscd.socket
0f879b
%{_sbindir}/pcscd
0f879b
%dir %{_libdir}/pcsc/
0f879b
%dir %{_libdir}/pcsc/drivers/
0f879b
%{_mandir}/man5/reader.conf.5*
0f879b
%{_mandir}/man8/pcscd.8*
0f879b
%ghost %dir %{_localstatedir}/run/pcscd/
0f879b
0f879b
%files libs
0f879b
%doc COPYING
0f879b
%{_libdir}/libpcsclite.so.*
0f879b
0f879b
%files devel
0f879b
%{_bindir}/pcsc-spy
0f879b
%{_includedir}/PCSC/
0f879b
%{_libdir}/libpcsclite.so
0f879b
%{_libdir}/libpcscspy.so*
0f879b
%{_libdir}/pkgconfig/libpcsclite.pc
0f879b
%{_mandir}/man1/pcsc-spy.1*
0f879b
0f879b
%files doc
0f879b
%doc doc/api/ doc/example/pcsc_demo.c
0f879b
0f879b
0f879b
%changelog
2782fd
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.8.8-4
2782fd
- Mass rebuild 2014-01-24
2782fd
2782fd
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.8.8-3
2782fd
- Mass rebuild 2013-12-27
2782fd
0f879b
* Wed Nov 6 2013 Robert Relyea <rrelyea@redhat.com> - 1.8.8-2
0f879b
- move to PIE/full relro linkage.
0f879b
- fix inconsistent changelog dates.
0f879b
0f879b
* Thu Feb 28 2013 Kalev Lember <kalevlember@gmail.com> - 1.8.8-1
0f879b
- Update to 1.8.8
0f879b
- Use new systemd macros (#850264)
0f879b
0f879b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.7-2
0f879b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0f879b
0f879b
* Fri Nov 30 2012 Kalev Lember <kalevlember@gmail.com> - 1.8.7-1
0f879b
- Update to 1.8.7
0f879b
0f879b
* Tue Sep 18 2012 Kalev Lember <kalevlember@gmail.com> - 1.8.6-1
0f879b
- Update to 1.8.6
0f879b
0f879b
* Mon Aug 06 2012 Kalev Lember <kalevlember@gmail.com> - 1.8.5-1
0f879b
- Update to 1.8.5
0f879b
0f879b
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.4-2
0f879b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0f879b
0f879b
* Tue Jun 26 2012 Kalev Lember <kalevlember@gmail.com> - 1.8.4-1
0f879b
- Update to 1.8.4
0f879b
0f879b
* Thu Jun 14 2012 Kalev Lember <kalevlember@gmail.com> - 1.8.3-2
0f879b
- Rebuild for new libudev (#831987)
0f879b
0f879b
* Fri Mar 30 2012 Kalev Lember <kalevlember@gmail.com> - 1.8.3-1
0f879b
- Update to 1.8.3
0f879b
0f879b
* Mon Feb 06 2012 Kalev Lember <kalevlember@gmail.com> - 1.8.2-1
0f879b
- Update to 1.8.2
0f879b
- Drop the systemd support patches which are now upstreamed
0f879b
- Package the new pcsc-spay tool in -devel subpackage
0f879b
0f879b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.4-7
0f879b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0f879b
0f879b
* Mon Oct 10 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.4-6
0f879b
- Remove the automatic card power down disabling patch again;
0f879b
  no longer needed with latest libusb1 1.0.9 rc1 (#737988)
0f879b
0f879b
* Fri Sep 16 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.4-5
0f879b
- Reapply the patch to disable automatic card power down (#737988)
0f879b
0f879b
* Sun Sep 04 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.4-4
0f879b
- Ignore errors from 'systemctl enable' (#734852)
0f879b
0f879b
* Sat Aug 20 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.4-3
0f879b
- Use /var/run/pcscd for ipc directory (#722449)
0f879b
0f879b
* Fri Jul 15 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.4-2
0f879b
- Converted initscript to systemd service file (#617330)
0f879b
0f879b
* Fri Jun 24 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.4-1
0f879b
- Update to 1.7.4
0f879b
0f879b
* Wed Jun 22 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.3-1
0f879b
- Update to 1.7.3
0f879b
- Dropped upstreamed patches
0f879b
- Dropped the lib64 rpath patch; pcsc-lite now uses system libtool
0f879b
- Cleaned up the spec file for modern rpmbuild
0f879b
0f879b
* Wed May 25 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.2-2
0f879b
- Don't fill log files with repeating messages (#657658, #707412)
0f879b
0f879b
* Thu Mar 31 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.2-1
0f879b
- Update to 1.7.2
0f879b
0f879b
* Wed Mar 30 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.1-1
0f879b
- Update to 1.7.1
0f879b
0f879b
* Thu Mar 17 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.0-2
0f879b
- Explicitly create and own drivers directory
0f879b
0f879b
* Wed Mar 09 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.0-1
0f879b
- Update to 1.7.0
0f879b
- Use libudev for hotplugging instead of hal
0f879b
0f879b
* Fri Feb 25 2011 Kalev Lember <kalev@smartlink.ee> - 1.6.7-1
0f879b
- Update to 1.6.7
0f879b
- Rebased noautostart patch
0f879b
0f879b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.6-3
0f879b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0f879b
0f879b
* Mon Dec 13 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.6-2
0f879b
- Disabled automatic card power down which seems to be unreliable at this point
0f879b
0f879b
* Mon Dec 13 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.6-1
0f879b
- Update to 1.6.6
0f879b
0f879b
* Mon Dec 13 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.4-2
0f879b
- Disabled pcscd on-demand startup (#653903)
0f879b
0f879b
* Sun Aug 15 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.4-1
0f879b
- Update to 1.6.4
0f879b
- Buildrequire graphviz for apidoc generation
0f879b
0f879b
* Wed Aug 04 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.2-1
0f879b
- Update to 1.6.2
0f879b
- Dropped upstreamed patches
0f879b
- Removed configure --disable-dependency-tracking option which is the
0f879b
  default with configure macro.
0f879b
0f879b
* Thu Jul 08 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.1-5
0f879b
- Include COPYING in libs subpackage as per new licensing guidelines
0f879b
0f879b
* Mon Jul 05 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.1-4
0f879b
- Patch to fix crash with empty config directory
0f879b
0f879b
* Sun Jul 04 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.1-3
0f879b
- Patch to fix config dir handling
0f879b
0f879b
* Sun Jul 04 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.1-2
0f879b
- Removed call to non-existent update-reader.conf in init script
0f879b
0f879b
* Fri Jun 18 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.1-1
0f879b
- Update to 1.6.1
0f879b
0f879b
* Tue Apr 13 2010 Kalev Lember <kalev@smartlink.ee> - 1.5.5-4
0f879b
- Fix init script start / stop priorities (#580322)
0f879b
- Don't require pkgconfig as the dep is now automatically generated by rpm
0f879b
0f879b
* Wed Mar 03 2010 Kalev Lember <kalev@smartlink.ee> - 1.5.5-3
0f879b
- Added patch to fix init script LSB header (#565241)
0f879b
- Dropped BR: libusb-devel as configure script really picks up libhal instead
0f879b
- Use %%global instead of %%define
0f879b
0f879b
* Mon Dec 21 2009 Kalev Lember <kalev@smartlink.ee> - 1.5.5-2
0f879b
- Require -libs subpackage from main pcsc-lite package
0f879b
- Build -doc subpackage as noarch
0f879b
- Dropped --enable-runpid configure option which was removed in 1.4.99
0f879b
- Dropped obsolete provides
0f879b
- Spec file cleanup
0f879b
0f879b
* Wed Nov 18 2009 Kalev Lember <kalev@smartlink.ee> - 1.5.5-1
0f879b
- Updated to pcsc-lite 1.5.5
0f879b
- Rebased rpath64 patch
0f879b
- Dropped upstreamed pcsc-lite-1.5-permissions.patch
0f879b
0f879b
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-3
0f879b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0f879b
0f879b
* Wed Jun 17 2009 Bob Relyea <rrelyea@redhat.com> - 1.5.2-2
0f879b
- Pick up security fixes from upstream
0f879b
0f879b
* Fri Feb 27 2009 Bob Relyea <rrelyea@redhat.com> - 1.5.2-1
0f879b
- Pick up 1.5.2
0f879b
- Add FD_CLOEXEC flag
0f879b
- make reader.conf a noreplace config file
0f879b
0f879b
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.102-5
0f879b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0f879b
0f879b
* Wed Feb 11 2009 Karsten Hopp <karsten@redhat.com> 1.4.102-4
0f879b
- remove excludearch s390, s390x (#467788)
0f879b
  even though s390 does not have libusb or smartCards, the libusb
0f879b
  packages are required to build other packages.
0f879b
0f879b
* Thu Aug 28 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-3
0f879b
- bump tag becaue the build system can't deal with mistakes.
0f879b
0f879b
* Thu Aug 28 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-2
0f879b
- mock build changes
0f879b
0f879b
* Wed Aug 27 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-1
0f879b
- Pick up 1.4.102
0f879b
0f879b
* Wed May 7 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.101-1
0f879b
- Pick up 1.4.101
0f879b
0f879b
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.4-3
0f879b
- Autorebuild for GCC 4.3
0f879b
0f879b
* Wed Jan 16 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.4-2
0f879b
- Silence libpcsc-lite even when the daemon isn't running.
0f879b
- fix typo in init file which prevents the config file from being read.
0f879b
0f879b
* Thu Nov 22 2007 Bob Relyea <rrelyea@redhat.com> - 1.4.4-1
0f879b
- Pick up 1.4.4
0f879b
0f879b
* Tue Feb 06 2007 Bob Relyea <rrelyea@redhat.com> - 1.3.3-1
0f879b
- Pick up 1.3.3
0f879b
0f879b
* Thu Nov 02 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.2-1
0f879b
- Pick up 1.3.2
0f879b
0f879b
* Thu Sep 14 2006  Bob Relyea <rrelyea@redhat.com> - 1.3.1-7
0f879b
- Incorporate patch from Ludovic to stop the pcsc daemon from
0f879b
  unnecessarily waking up.
0f879b
0f879b
* Mon Jul 31 2006 Ray Strode <rstrode@redhat.com> - 1.3.1-6
0f879b
- follow packaging guidelines for setting up init service
0f879b
  (bug 200778)
0f879b
0f879b
* Mon Jul 24 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-5
0f879b
- start pcscd when pcsc-lite is installed
0f879b
0f879b
* Sun Jul 16 2006 Florian La Roche <laroche@redhat.com> - 1.3.1-4
0f879b
- fix excludearch line
0f879b
0f879b
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.3.1-3.1
0f879b
- rebuild
0f879b
0f879b
* Mon Jul 10 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-3
0f879b
- remove s390 from the build
0f879b
0f879b
* Mon Jun 5 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-2
0f879b
- Move to Fedora Core. 
0f879b
- Remove dependency on graphviz. 
0f879b
- Removed %%{_dist}
0f879b
0f879b
* Sat Apr 22 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.3.1-1
0f879b
- 1.3.1.
0f879b
0f879b
* Sun Mar  5 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.3.0-1
0f879b
- 1.3.0, init script and reader.conf updater included upstream.
0f879b
- Split developer docs into a -doc subpackage, include API docs.
0f879b
- libmusclecard no longer included, split into separate package upstream.
0f879b
0f879b
* Mon Feb 13 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-14
0f879b
- Avoid standard rpaths on multilib archs.
0f879b
- Fine tune dependencies.
0f879b
0f879b
* Fri Nov 11 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-13
0f879b
- Don't ship static libraries.
0f879b
- Don't mark the init script as a config file.
0f879b
- Use rm instead of %%exclude.
0f879b
- Specfile cleanups.
0f879b
0f879b
* Thu May 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-12
0f879b
- Rebuild.
0f879b
0f879b
* Fri Apr  8 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.2.0-11
0f879b
- rebuilt
0f879b
0f879b
* Tue Aug 17 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-10
0f879b
- Disable dependency tracking to speed up the build.
0f879b
- Drop reader.conf patch, it's not needed any more.
0f879b
- Rename update-reader-conf to update-reader.conf for consistency with Debian,
0f879b
  and improve it a bit.
0f879b
0f879b
* Sat Jul 31 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.9
0f879b
- Add update-reader-conf, thanks to Fritz Elfert.
0f879b
0f879b
* Thu Jul  1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.8
0f879b
- Own the %%{_libdir}/pcsc hierarchy.
0f879b
0f879b
* Thu May 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.7
0f879b
- Make main package require pcsc-ifd-handler (idea from Debian).
0f879b
0f879b
* Wed May 12 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.6
0f879b
- Improve package summary.
0f879b
- Improvements based on suggestions from Ludovic Rousseau:
0f879b
  - Don't install pcsc_demo but do include its source in -devel.
0f879b
  - Sync reader.conf with current upstream CVS HEAD (better docs, less
0f879b
    intrusive in USB-only setups where it's not needed).
0f879b
0f879b
* Fri Apr 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.5
0f879b
- Move PDF API docs to -devel.
0f879b
- Improve main package and init script descriptions.
0f879b
0f879b
* Thu Jan 29 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.4
0f879b
- Init script fine tuning.
0f879b
0f879b
* Fri Jan  9 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.3
0f879b
- BuildRequires libusb-devel 0.1.6 or newer.
0f879b
0f879b
* Thu Oct 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.2
0f879b
- s/pkgconfi/pkgconfig/ in -devel requirements.
0f879b
0f879b
* Tue Oct 28 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.1
0f879b
- Update to 1.2.0.
0f879b
- Add libpcsc-lite and libmusclecard provides to -libs and -devel.
0f879b
0f879b
* Thu Oct 16 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.2.rc3
0f879b
- Update to 1.2.0-rc3.
0f879b
- Trivial init script improvements.
0f879b
- Enable %%{_smp_mflags}.
0f879b
- Don't bother trying to enable SCF.
0f879b
0f879b
* Sun Sep 14 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.2.rc2
0f879b
- Specfile cleanups.
0f879b
0f879b
* Fri Sep  5 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.1.rc2
0f879b
- Update to 1.2.0-rc2.
0f879b
0f879b
* Wed Aug 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.1.rc1
0f879b
- Update to 1.2.0-rc1.
0f879b
0f879b
* Sun Jun  1 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.1.2-0.fdr.0.1.beta5
0f879b
- Update to 1.1.2beta5.
0f879b
0f879b
* Sat May 24 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.1.2-0.fdr.0.1.beta4
0f879b
- First build, based on PLD's 1.1.1-2.