2019-09-30 11:11:30 -04:00
|
|
|
Name: pcsc-lite
|
|
|
|
|
Version: 1.8.23
|
2020-01-12 10:54:49 +08:00
|
|
|
Release: 8
|
2019-09-30 11:11:30 -04:00
|
|
|
Summary: Middleware to access a smart card using SCard API (PC/SC)
|
|
|
|
|
License: BSD
|
2019-12-30 15:27:18 +08:00
|
|
|
URL: https://pcsclite.apdu.fr/
|
|
|
|
|
Source0: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2
|
2019-09-30 11:11:30 -04:00
|
|
|
|
|
|
|
|
BuildRequires: systemd-devel polkit-devel gettext-devel
|
|
|
|
|
BuildRequires: perl-podlators doxygen gnupg2 gcc git
|
|
|
|
|
|
|
|
|
|
Requires(post): systemd
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
Requires: pcsc-ifd-handler polkit python2
|
2020-01-12 10:54:49 +08:00
|
|
|
Recommends: ccid
|
2019-09-30 11:11:30 -04:00
|
|
|
|
|
|
|
|
Provides: pcsc-lite-libs%{?_isa} pcsc-lite-libs
|
|
|
|
|
Obsoletes: pcsc-lite-libs
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
PC/SC Lite is a middleware to access a smart card using SCard API (PC/SC).
|
|
|
|
|
This package contains PC/SC Lite server and other utilities.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: PC/SC Lite library and header files
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package includes PC/SC Lite library and header files for development.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Documentation for PC/SC Lite
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Requires: man
|
|
|
|
|
Provides: %{name}-doc
|
|
|
|
|
Obsoletes: %{name}-doc
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
This package includes documentation for PC/SC Lite.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1 -S git
|
|
|
|
|
|
|
|
|
|
for file in ChangeLog; do
|
|
|
|
|
iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
|
|
|
|
|
touch -r $file $file.new && \
|
|
|
|
|
mv $file.new $file
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure \
|
|
|
|
|
--disable-static \
|
|
|
|
|
--enable-polkit \
|
|
|
|
|
--enable-usbdropdir=%{_libdir}/pcsc/drivers
|
|
|
|
|
%make_build
|
|
|
|
|
doxygen doc/doxygen.conf
|
|
|
|
|
rm -f doc/api/*.{map,md5}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/%{_sysconfdir}/reader.conf.d
|
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}/pcsc/drivers
|
|
|
|
|
mkdir -p %{buildroot}/%{_localstatedir}/run/pcscd
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post pcscd.socket pcscd.service
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun pcscd.socket pcscd.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart pcscd.socket pcscd.service
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc AUTHORS ChangeLog DRIVERS HELP README SECURITY TODO
|
|
|
|
|
%doc doc/README.polkit
|
|
|
|
|
%license COPYING
|
|
|
|
|
%dir %{_sysconfdir}/reader.conf.d/
|
|
|
|
|
%dir %{_libdir}/pcsc/
|
|
|
|
|
%dir %{_libdir}/pcsc/drivers/
|
|
|
|
|
%ghost %dir %{_localstatedir}/run/pcscd/
|
|
|
|
|
%{_datadir}/polkit-1/actions/org.debian.pcsc-lite.policy
|
|
|
|
|
%{_libdir}/libpcsclite.so.*
|
|
|
|
|
%{_sbindir}/pcscd
|
|
|
|
|
%{_unitdir}/pcscd*
|
|
|
|
|
%exclude %{_libdir}/*.la
|
|
|
|
|
%exclude %{_docdir}/pcsc-lite/README.DAEMON
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_bindir}/pcsc-spy
|
|
|
|
|
%{_includedir}/PCSC/
|
|
|
|
|
%{_libdir}/libpcsclite.so
|
|
|
|
|
%{_libdir}/libpcscspy.so*
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc doc/api/ doc/example/pcsc_demo.c
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-01-12 10:54:49 +08:00
|
|
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.8.23-8
|
|
|
|
|
- Change the recommends of pcsc-lite-ccid to ccid
|
|
|
|
|
|
2020-01-09 21:27:30 +08:00
|
|
|
* Thu Jan 9 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.8.23-7
|
|
|
|
|
- Repackage
|
|
|
|
|
|
2019-09-30 11:11:30 -04:00
|
|
|
* Sun Sep 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.8.23-6
|
|
|
|
|
- Fix postun in spec file
|
|
|
|
|
|
|
|
|
|
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.8.23-5
|
|
|
|
|
- Package init
|
|
|
|
|
|