|
@@ -4,7 +4,7 @@ Summary: PC/SC Lite smart card framework and applications
|
|
|
Summary(ja): PC/SC Lite スマートカードフレームワークおよびアプリケーション
|
|
|
|
|
|
Name: pcsc-lite
|
|
|
-Version: 1.9.0
|
|
|
+Version: 2.2.3
|
|
|
Release: 1%{?_dist_release}%{?with_systemd:.systemd}
|
|
|
Group: system
|
|
|
Vendor: Project Vine
|
|
@@ -12,12 +12,13 @@ Distribution: Vine Linux
|
|
|
|
|
|
License: BSD
|
|
|
URL: https://pcsclite.apdu.fr/
|
|
|
-Source0: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2
|
|
|
+Source0: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.xz
|
|
|
Source1: org.debian.pcsc-lite.policy
|
|
|
Source2: pcscd.init
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
+BuildRequires: meson
|
|
|
BuildRequires: polkit-devel
|
|
|
BuildRequires: doxygen
|
|
|
BuildRequires: flex
|
|
@@ -65,23 +66,13 @@ Group: programming
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
Requires: pkgconfig
|
|
|
Provides: libpcsc-lite-devel = %{version}-%{release}
|
|
|
+Obsoletes: %{name}-spy < 2.2.3
|
|
|
+Provides: %{name}-spy = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
|
PC/SC Lite development files.
|
|
|
|
|
|
|
|
|
-%package spy
|
|
|
-Summary: PC/SC API spy
|
|
|
-Summary(ja): PC/SC API spy
|
|
|
-Group: programming
|
|
|
-Requires: %{name}-libs = %{version}-%{release}
|
|
|
-Requires: python3
|
|
|
-
|
|
|
-%description spy
|
|
|
-The purpose of pcsc-spy is to spy all the calls between the PC/SC client
|
|
|
-and the PC/SC library.
|
|
|
-
|
|
|
-
|
|
|
%package doc
|
|
|
Summary: PC/SC Lite developer documentation
|
|
|
Summary(ja): PC/SC Lite developer documentation
|
|
@@ -106,48 +97,34 @@ done
|
|
|
|
|
|
|
|
|
%build
|
|
|
-#autoreconf -if
|
|
|
-%configure \
|
|
|
- --disable-dependency-tracking \
|
|
|
- --disable-static \
|
|
|
-%if !%{with systemd}
|
|
|
- --disable-libsystemd \
|
|
|
+%meson \
|
|
|
+%if %{with systemd}
|
|
|
+ -Dlibsystemd=true \
|
|
|
+ -Dsystemdunit=system \
|
|
|
+%else
|
|
|
+ -Dlibsystemd=false \
|
|
|
+ -Dsystemdunit=system \
|
|
|
%endif
|
|
|
- --enable-polkit \
|
|
|
- --enable-runpid=%{_localstatedir}/run/pcscd.pid \
|
|
|
- --enable-ipcdir=%{_localstatedir}/run \
|
|
|
- --enable-usbdropdir=%{_libdir}/pcsc/drivers
|
|
|
-make %{?_smp_mflags}
|
|
|
-doxygen doc/doxygen.conf ; rm -f doc/api/*.{map,md5}
|
|
|
-
|
|
|
-%{_libdir}/python%{python3_version}/Tools/scripts/pathfix.py -i "%{__python3} %{py3_shbang_opts}" -p src/spy/pcsc-spy
|
|
|
+ -Dserial=true \
|
|
|
+ -Dusbdropdir=%{_libdir}/pcsc/drivers \
|
|
|
+ -Dpolkit=true
|
|
|
+%meson_build
|
|
|
+%meson_build doc
|
|
|
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
-make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
-rm -f $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/org.debian.pcsc-lite.policy
|
|
|
+%meson_install
|
|
|
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/
|
|
|
-install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/
|
|
|
-
|
|
|
-install -dm 755 $RPM_BUILD_ROOT%{_libdir}/pcsc/drivers
|
|
|
+# Create empty directories
|
|
|
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d
|
|
|
+mkdir -p $RPM_BUILD_ROOT%{_libdir}/pcsc/drivers
|
|
|
+mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/pcscd
|
|
|
|
|
|
%if !%{with systemd}
|
|
|
install -Dpm 755 %{SOURCE2} $RPM_BUILD_ROOT%{_initrddir}/pcscd
|
|
|
%endif
|
|
|
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d
|
|
|
-
|
|
|
-rm -f $RPM_BUILD_ROOT{%{_sysconfdir}/reader.conf.d/reader.conf,%{_libdir}/lib*.la}
|
|
|
-rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/README.DAEMON
|
|
|
-
|
|
|
-# formaticc doesn't exist any more, don't include the man page
|
|
|
-#rm -f $RPM_BUILD_ROOT%{_mandir}/man1/formaticc.1*
|
|
|
-
|
|
|
-%clean
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
-
|
|
|
|
|
|
%post
|
|
|
%if %{with systemd}
|
|
@@ -184,53 +161,53 @@ if [ "$1" -ge "1" ]; then
|
|
|
fi
|
|
|
%endif
|
|
|
|
|
|
-%post libs -p /sbin/ldconfig
|
|
|
-%postun libs -p /sbin/ldconfig
|
|
|
-
|
|
|
|
|
|
%files
|
|
|
-%defattr(-,root,root,-)
|
|
|
%license COPYING
|
|
|
-%doc AUTHORS ChangeLog HELP README SECURITY TODO
|
|
|
+%doc AUTHORS ChangeLog HELP README SECURITY
|
|
|
+%doc doc/README.polkit
|
|
|
+%doc src/spy/setup_spy.sh
|
|
|
%dir %{_sysconfdir}/reader.conf.d/
|
|
|
%if %{with systemd}
|
|
|
%{_unitdir}/pcscd.service
|
|
|
%{_unitdir}/pcscd.socket
|
|
|
-%{_sbindir}/pcscd
|
|
|
+%ghost %dir %{_localstatedir}/run/pcscd/
|
|
|
%else
|
|
|
%{_initrddir}/pcscd
|
|
|
+%dir %{_localstatedir}/run/pcscd/
|
|
|
%endif
|
|
|
%{_sbindir}/pcscd
|
|
|
-%{_libdir}/pcsc/
|
|
|
+%dir %{_libdir}/pcsc/
|
|
|
+%dir %{_libdir}/pcsc/drivers/
|
|
|
+%dir %{_datadir}/polkit-1
|
|
|
+%dir %{_datadir}/polkit-1/actions
|
|
|
%{_datadir}/polkit-1/actions/org.debian.%{name}.policy
|
|
|
%{_mandir}/man5/reader.conf.5*
|
|
|
%{_mandir}/man8/pcscd.8*
|
|
|
|
|
|
%files libs
|
|
|
-%defattr(-,root,root,-)
|
|
|
%license COPYING
|
|
|
%{_libdir}/libpcsclite.so.*
|
|
|
-%{_libdir}/libpcscspy.so.*
|
|
|
+%{_libdir}/libpcsclite_real.so.*
|
|
|
|
|
|
%files devel
|
|
|
-%defattr(-,root,root,-)
|
|
|
+%{_bindir}/pcsc-spy
|
|
|
%{_includedir}/PCSC/
|
|
|
%{_libdir}/libpcsclite.so
|
|
|
-%{_libdir}/libpcscspy.so
|
|
|
+%{_libdir}/libpcsclite_real.so
|
|
|
+%{_libdir}/libpcscspy.so*
|
|
|
%{_libdir}/pkgconfig/libpcsclite.pc
|
|
|
-
|
|
|
-%files spy
|
|
|
-%defattr(-,root,root,-)
|
|
|
-%{_bindir}/pcsc-spy
|
|
|
%{_mandir}/man1/pcsc-spy.1*
|
|
|
|
|
|
%files doc
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc doc/api/ doc/example/pcsc_demo.c
|
|
|
-%{_docdir}/pcsc-lite/README.polkit
|
|
|
+%doc %{_vpath_builddir}/doc/api/ doc/example/pcsc_demo.c
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Thu Jun 27 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.3-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Tue Feb 02 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.0-1
|
|
|
- new upstream release.
|
|
|
- added systemd support (disabled as default).
|