522338d
Name:           pcsc-lite
a5baa06
Version:        1.5.2
42f4edf
Release:        3%{?dist}
522338d
Summary:        PC/SC Lite smart card framework and applications
a5baa06
%define upstream_build 2795
522338d
522338d
Group:          System Environment/Daemons
522338d
License:        BSD
522338d
URL:            http://pcsclite.alioth.debian.org/
a5baa06
Source0:        http://alioth.debian.org/download.php/%{upstream_build}/%{name}-%{version}.tar.bz2
7a3e313
Patch0:         %{name}-1.4-docinst.patch
758d6fa
Patch1:         %{name}-1.4.100-rpath64.patch
a5baa06
Patch2:         %{name}-close_on_exec.patch
d2c31d2
Patch3:         %{name}-1.5-permissions.patch
18a6010
522338d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
522338d
522338d
BuildRequires:  libusb-devel >= 0.1.7
63b47c7
BuildRequires:  hal-devel 
522338d
BuildRequires:  doxygen
7e84d9b
Requires(post): initscripts
522338d
Requires(post): /sbin/chkconfig
522338d
Requires(preun): /sbin/chkconfig
7e84d9b
Requires(preun): initscripts
7e84d9b
Requires(postun): initscripts
522338d
Requires:       pcsc-ifd-handler
522338d
522338d
%description
522338d
The purpose of PC/SC Lite is to provide a Windows(R) SCard interface
522338d
in a very small form factor for communicating to smartcards and
522338d
readers.  PC/SC Lite uses the same winscard API as used under
522338d
Windows(R).  This package includes the PC/SC Lite daemon, a resource
522338d
manager that coordinates communications with smart card readers and
522338d
smart cards that are connected to the system, as well as other command
522338d
line tools.
522338d
522338d
%package        libs
522338d
Summary:        PC/SC Lite libraries
522338d
Group:          System Environment/Libraries
522338d
Provides:       libpcsc-lite = %{version}-%{release}
522338d
522338d
%description    libs
522338d
PC/SC Lite libraries.
522338d
522338d
%package        devel
522338d
Summary:        PC/SC Lite development files
522338d
Group:          Development/Libraries
522338d
Requires:       %{name}-libs = %{version}-%{release}
522338d
Requires:       pkgconfig
522338d
Provides:       libpcsc-lite-devel = %{version}-%{release}
522338d
522338d
%description    devel
522338d
PC/SC Lite development files.
522338d
522338d
%package        doc
522338d
Summary:        PC/SC Lite developer documentation
522338d
Group:          Documentation
522338d
522338d
%description    doc
522338d
%{summary}.
522338d
522338d
522338d
%prep
522338d
%setup -q
18a6010
%patch0 -p0 -b .docinst
18a6010
%patch1 -p1 -b .rpath64
a5baa06
%patch2 -p1 -b .close_on_exec
d2c31d2
%patch3 -p0 -b .permissions
522338d
522338d
%build
522338d
%configure \
522338d
  --disable-dependency-tracking \
522338d
  --disable-static \
522338d
  --enable-runpid=%{_localstatedir}/run/pcscd.pid \
522338d
  --enable-confdir=%{_sysconfdir} \
522338d
  --enable-ipcdir=%{_localstatedir}/run \
522338d
  --enable-usbdropdir=%{_libdir}/pcsc/drivers
522338d
make %{?_smp_mflags}
522338d
doxygen doc/doxygen.conf ; rm -f doc/api/*.{map,md5}
522338d
522338d
522338d
%install
522338d
rm -rf $RPM_BUILD_ROOT
522338d
make install DESTDIR=$RPM_BUILD_ROOT
522338d
522338d
install -dm 755 $RPM_BUILD_ROOT%{_libdir}/pcsc/drivers
522338d
522338d
install -Dpm 755 etc/pcscd.init $RPM_BUILD_ROOT%{_initrddir}/pcscd
522338d
522338d
cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d/README
522338d
All *.conf files in this directory are merged into %{_sysconfdir}/reader.conf
522338d
by %{_sbindir}/update-reader.conf.
522338d
EOF
522338d
522338d
rm $RPM_BUILD_ROOT{%{_sysconfdir}/reader.conf.d/reader.conf,%{_libdir}/lib*.la}
522338d
touch $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf
522338d
a1831e8
# formaticc doesn't exist any more, don't include the man page
a1831e8
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/formaticc.1*
a1831e8
522338d
522338d
%clean
7a3e313
rm -rf $RPM_BUILD_ROOT
522338d
522338d
522338d
%post
d18bb69
/sbin/chkconfig --add pcscd
522338d
522338d
%preun
d18bb69
if [ $1 = 0 ] ; then
d18bb69
  /sbin/service pcscd stop >/dev/null 2>&1 || :
522338d
  /sbin/chkconfig --del pcscd
522338d
fi
522338d
522338d
%postun
d18bb69
if [ "$1" -ge "1" ]; then
d18bb69
  /sbin/service pcscd condrestart >/dev/null 2>&1 || :
d18bb69
fi
522338d
522338d
%post libs -p /sbin/ldconfig
522338d
522338d
%postun libs -p /sbin/ldconfig
522338d
522338d
522338d
%files
522338d
%defattr(-,root,root,-)
522338d
%doc AUTHORS ChangeLog* COPYING DRIVERS HELP README SECURITY TODO
522338d
%dir %{_sysconfdir}/reader.conf.d/
522338d
%doc %{_sysconfdir}/reader.conf.d/README
a5baa06
%ghost %config(noreplace) %{_sysconfdir}/reader.conf
522338d
%{_initrddir}/pcscd
522338d
%{_sbindir}/pcscd
522338d
%{_sbindir}/update-reader.conf
522338d
%{_libdir}/pcsc/
522338d
%{_mandir}/man5/reader.conf.5*
522338d
%{_mandir}/man8/pcscd.8*
a1831e8
%{_mandir}/man8/update-reader.conf.8*
522338d
522338d
%files libs
522338d
%defattr(-,root,root,-)
522338d
%{_libdir}/libpcsclite.so.*
522338d
522338d
%files devel
522338d
%defattr(-,root,root,-)
522338d
%{_includedir}/PCSC/
522338d
%{_libdir}/libpcsclite.so
522338d
%{_libdir}/pkgconfig/libpcsclite.pc
522338d
522338d
%files doc
522338d
%defattr(-,root,root,-)
7a3e313
%doc doc/api/ doc/example/pcsc_demo.c
522338d
522338d
522338d
%changelog
42f4edf
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-3
42f4edf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
42f4edf
d2c31d2
* Wed Jun 17 2009 Bob Relyea <rrelyea@redhat.com> - 1.5.2-2
d2c31d2
- Pick up security fixes from upstream
d2c31d2
a5baa06
* Fri Feb 27 2009 Bob Relyea <rrelyea@redhat.com> - 1.5.2-1
a5baa06
- Pick up 1.5.2
a5baa06
- Add FD_CLOEXEC flag
a5baa06
- make reader.conf a noreplace config file
a5baa06
511dec3
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.102-5
511dec3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
511dec3
f36140c
* Wed Feb 11 2009 Karsten Hopp <karsten@redhat.com> 1.4.102-4
f36140c
- remove excludearch s390, s390x (#467788)
f36140c
  even though s390 does not have libusb or smartCards, the libusb
f36140c
  packages are required to build other packages.
f36140c
6fdec05
* Thu Aug 18 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-3
6fdec05
- bump tag becaue the build system can't deal with mistakes.
6fdec05
c79a97c
* Thu Aug 18 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-2
c79a97c
- mock build changes
c79a97c
758d6fa
* Wed Aug 17 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-1
758d6fa
- Pick up 1.4.102
758d6fa
758d6fa
* Wed May 6 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.101-1
758d6fa
- Pick up 1.4.101
758d6fa
a91d7f2
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.4-3
a91d7f2
- Autorebuild for GCC 4.3
a91d7f2
0222d2c
* Wed Jan 16 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.4-2
0222d2c
- Silence libpcsc-lite even when the daemon isn't running.
0222d2c
- fix typo in init file which prevents the config file from being read.
0222d2c
7a3e313
* Tue Nov 22 2007 Bob Relyea <rrelyea@redhat.com> - 1.4.4-1
7a3e313
- Pick up 1.4.4
7a3e313
a1831e8
* Tue Feb 06 2007 Bob Relyea <rrelyea@redhat.com> - 1.3.3-1
a1831e8
- Pick up 1.3.3
a1831e8
ce8f2d5
* Thu Nov 02 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.2-1
ce8f2d5
- Pick up 1.3.2
ce8f2d5
18a6010
* Thu Sep 14 2006  Bob Relyea <rrelyea@redhat.com> - 1.3.1-7
18a6010
- Incorporate patch from Ludovic to stop the pcsc daemon from
18a6010
  unnecessarily waking up.
18a6010
d18bb69
* Mon Jul 31 2006 Ray Strode <rstrode@redhat.com> - 1.3.1-6
d18bb69
- follow packaging guidelines for setting up init service
d18bb69
  (bug 200778)
d18bb69
7e84d9b
* Sun Jul 24 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-5
7e84d9b
- start pcscd when pcsc-lite is installed
7e84d9b
Florian La Roche eba0750
* Sun Jul 16 2006 Florian La Roche <laroche@redhat.com> - 1.3.1-4
Florian La Roche eba0750
- fix excludearch line
Florian La Roche eba0750
Florian La Roche eba0750
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.3.1-3.1
33eef38
- rebuild
33eef38
ba21390
* Mon Jul 10 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-3
ba21390
- remove s390 from the build
ba21390
522338d
* Mon Jun 5 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-2
522338d
- Move to Fedora Core. 
522338d
- Remove dependency on graphviz. 
522338d
- Removed %%{_dist}
522338d
522338d
* Sat Apr 22 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.3.1-1
522338d
- 1.3.1.
522338d
522338d
* Sun Mar  5 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.3.0-1
522338d
- 1.3.0, init script and reader.conf updater included upstream.
522338d
- Split developer docs into a -doc subpackage, include API docs.
522338d
- libmusclecard no longer included, split into separate package upstream.
522338d
522338d
* Mon Feb 13 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-14
522338d
- Avoid standard rpaths on multilib archs.
522338d
- Fine tune dependencies.
522338d
522338d
* Fri Nov 11 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-13
522338d
- Don't ship static libraries.
522338d
- Don't mark the init script as a config file.
522338d
- Use rm instead of %%exclude.
522338d
- Specfile cleanups.
522338d
522338d
* Thu May 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-12
522338d
- Rebuild.
522338d
522338d
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.2.0-11
522338d
- rebuilt
522338d
522338d
* Tue Aug 17 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-10
522338d
- Disable dependency tracking to speed up the build.
522338d
- Drop reader.conf patch, it's not needed any more.
522338d
- Rename update-reader-conf to update-reader.conf for consistency with Debian,
522338d
  and improve it a bit.
522338d
522338d
* Sat Jul 31 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.9
522338d
- Add update-reader-conf, thanks to Fritz Elfert.
522338d
522338d
* Thu Jul  1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.8
522338d
- Own the %%{_libdir}/pcsc hierarchy.
522338d
522338d
* Thu May 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.7
522338d
- Make main package require pcsc-ifd-handler (idea from Debian).
522338d
522338d
* Wed May 12 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.6
522338d
- Improve package summary.
522338d
- Improvements based on suggestions from Ludovic Rousseau:
522338d
  - Don't install pcsc_demo but do include its source in -devel.
522338d
  - Sync reader.conf with current upstream CVS HEAD (better docs, less
522338d
    intrusive in USB-only setups where it's not needed).
522338d
522338d
* Fri Apr 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.5
522338d
- Move PDF API docs to -devel.
522338d
- Improve main package and init script descriptions.
522338d
522338d
* Thu Jan 29 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.4
522338d
- Init script fine tuning.
522338d
522338d
* Fri Jan  9 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.3
522338d
- BuildRequires libusb-devel 0.1.6 or newer.
522338d
522338d
* Thu Oct 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.2
522338d
- s/pkgconfi/pkgconfig/ in -devel requirements.
522338d
522338d
* Tue Oct 28 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.1
522338d
- Update to 1.2.0.
522338d
- Add libpcsc-lite and libmusclecard provides to -libs and -devel.
522338d
522338d
* Thu Oct 16 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.2.rc3
522338d
- Update to 1.2.0-rc3.
522338d
- Trivial init script improvements.
522338d
- Enable %%{_smp_mflags}.
522338d
- Don't bother trying to enable SCF.
522338d
522338d
* Sun Sep 14 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.2.rc2
522338d
- Specfile cleanups.
522338d
522338d
* Fri Sep  5 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.1.rc2
522338d
- Update to 1.2.0-rc2.
522338d
522338d
* Wed Aug 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.1.rc1
522338d
- Update to 1.2.0-rc1.
522338d
522338d
* Sun Jun  1 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.1.2-0.fdr.0.1.beta5
522338d
- Update to 1.1.2beta5.
522338d
522338d
* Sat May 24 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.1.2-0.fdr.0.1.beta4
522338d
- First build, based on PLD's 1.1.1-2.