Package init

This commit is contained in:
overweight 2019-09-30 11:11:30 -04:00
commit a7959eee76
5 changed files with 170 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>
<vendor>The PCSC-lite Project</vendor>
<vendor_url>http://pcsclite.alioth.debian.org/</vendor_url>
<!-- <icon_name>smart-card</icon_name> -->
<action id="org.debian.pcsc-lite.access_pcsc">
<description>Access to the PC/SC daemon</description>
<message>Authentication is required to access the PC/SC daemon</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.debian.pcsc-lite.access_card">
<description>Access to the smart card</description>
<message>Authentication is required to access the smart card</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
</policyconfig>

BIN
pcsc-lite-1.8.23.tar.bz2 Normal file

Binary file not shown.

View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEE9eEbn/6REUb0HZU9eKG03+j5xX4FAlo4D+QACgkQeKG03+j5
xX5DZQ//SMsKZKAm1DBU3IMYjMkHNchuouuzdK5e8y3J/xs2fL2ZI3m2pHHBUsgH
Pol+4D78RgZGD/BG8NBZe3vUoCeeW1VY7Ovn+ZwIV0DgGRJ0tYazVMNBz/mmDFlv
RGcoBHeSVvGrrhd8IIx1oAEx96rWuPwUdLiMozoTmVhd0YE0H6qc3uNga1PoWs5m
ZYnz7d6OrGGlvOSHQUMqqxd1gTuktBRmVvxWbjjCNqUNE/JitjgBnjf3BU5ylFuV
SwvDwN6g404oQbSzdqJNyZd/ZQfTYhc+AS7Xm2kFl1tZoHCIAbYYSBdz138qSpMN
XVkIVBQ/iXuGEEqSsIZ5MIs0L72oUATpr5DL8XhcY+HP27SRB14kEp1OrCAwjOGt
nV46dRzPV5LqeA+2WKP993ZAjZfBEwEB6OdFYNyEkulL1f2FSuZKat4xgOHiyFH0
99/mbnVy5js2MOm3il4oihLNjkiT2QpuI88Q9JbgqJAwM4GKGIk0tCST+DIzNkA0
LPLaYskNYXTywl0q9l2dS8lpUUF2ubMlHf+3BySDhyrH2lQrc2h/bfLW62LOKxnG
4GhrnchaiFkRQoVRu5SoKdwKrMvtStXWnsZLC1K9xyWTBhx3WjgLkn90DQThhib+
i4h1XiHTuEaqoADT9iwqsJ1BiIYtLUPcLzcnQCzaH0gtWme0XxA=
=ie6D
-----END PGP SIGNATURE-----

124
pcsc-lite.spec Normal file
View File

@ -0,0 +1,124 @@
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