125 lines
3.3 KiB
RPMSpec
125 lines
3.3 KiB
RPMSpec
|
|
Name: pcsc-lite
|
||
|
|
Version: 1.8.23
|
||
|
|
Release: 6
|
||
|
|
Summary: Middleware to access a smart card using SCard API (PC/SC)
|
||
|
|
License: BSD
|
||
|
|
URL: http://pcsclite.alioth.debian.org/
|
||
|
|
Source0: https://alioth.debian.org/frs/download.php/file/4235/%{name}-%{version}.tar.bz2
|
||
|
|
Source1: https://alioth.debian.org/frs/download.php/file/4235/%{name}-%{version}.tar.bz2.asc
|
||
|
|
Source2: gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg
|
||
|
|
Source3: org.debian.pcsc-lite.policy
|
||
|
|
|
||
|
|
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
|
||
|
|
Recommends: pcsc-lite-ccid
|
||
|
|
|
||
|
|
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
|
||
|
|
gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
||
|
|
|
||
|
|
%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
|
||
|
|
rm -f %{buildroot}/%{_datadir}/polkit-1/actions/org.debian.pcsc-lite.policy
|
||
|
|
install -D -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/
|
||
|
|
|
||
|
|
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
|
||
|
|
* 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
|
||
|
|
|