|
|
|
@ -1,39 +1,48 @@
|
|
|
|
|
# doesn't make sense to install a polkit configuration inside a Flatpak
|
|
|
|
|
%if 0%{?flatpak}
|
|
|
|
|
%global with_polkit 0
|
|
|
|
|
%else
|
|
|
|
|
%global with_polkit 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: pcsc-lite
|
|
|
|
|
Version: 1.9.4
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 2.2.3
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: PC/SC Lite smart card framework and applications
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
|
License: BSD-3-Clause AND BSD-2-Clause AND GPL-3.0-or-later
|
|
|
|
|
URL: https://pcsclite.apdu.fr/
|
|
|
|
|
Source0: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2
|
|
|
|
|
Source1: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2.asc
|
|
|
|
|
Source2: gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg
|
|
|
|
|
Patch1: pcsc-lite-1.9.1-maxreaders.patch
|
|
|
|
|
Source0: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.xz
|
|
|
|
|
Source1: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.xz.asc
|
|
|
|
|
Source2: gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: graphviz
|
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
|
BuildRequires: /usr/bin/pod2man
|
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
|
BuildRequires: perl-podlators
|
|
|
|
|
%if %{with_polkit}
|
|
|
|
|
BuildRequires: polkit-devel
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
BuildRequires: meson
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: /usr/bin/pathfix.py
|
|
|
|
|
BuildRequires: flex
|
|
|
|
|
|
|
|
|
|
Requires(post): systemd
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
Requires: pcsc-ifd-handler
|
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
%if %{with_polkit}
|
|
|
|
|
Requires: polkit
|
|
|
|
|
%endif
|
|
|
|
|
Requires: python3
|
|
|
|
|
Recommends: pcsc-lite-ccid
|
|
|
|
|
# This is bundled in upstream withou simple way to remove
|
|
|
|
|
# This is bundled in upstream without simple way to remove
|
|
|
|
|
Provides: bundled(simclist) = 1.6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -69,10 +78,9 @@ Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
|
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
|
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch1 -p 0 -b .maxreaders
|
|
|
|
|
|
|
|
|
|
# Convert to utf-8
|
|
|
|
|
for file in ChangeLog; do
|
|
|
|
@ -83,25 +91,27 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure \
|
|
|
|
|
--disable-static \
|
|
|
|
|
--enable-polkit \
|
|
|
|
|
--enable-usbdropdir=%{_libdir}/pcsc/drivers
|
|
|
|
|
%make_build
|
|
|
|
|
doxygen doc/doxygen.conf ; rm -f doc/api/*.{map,md5}
|
|
|
|
|
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" src/spy/pcsc-spy
|
|
|
|
|
%meson -Dlibsystemd=true \
|
|
|
|
|
-Dsystemdunit=system \
|
|
|
|
|
-Dserial=true \
|
|
|
|
|
-Dusbdropdir=%{_libdir}/pcsc/drivers \
|
|
|
|
|
%if ! %{with_polkit}
|
|
|
|
|
-Dpolkit=false
|
|
|
|
|
%else
|
|
|
|
|
-Dpolkit=true
|
|
|
|
|
%endif
|
|
|
|
|
%meson_build
|
|
|
|
|
%meson_build doc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
%meson_install
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post pcscd.socket pcscd.service
|
|
|
|
@ -125,8 +135,9 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%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/
|
|
|
|
|
%{_unitdir}/pcscd.service
|
|
|
|
|
%{_unitdir}/pcscd.socket
|
|
|
|
@ -135,39 +146,109 @@ fi
|
|
|
|
|
%dir %{_libdir}/pcsc/drivers/
|
|
|
|
|
%{_mandir}/man5/reader.conf.5*
|
|
|
|
|
%{_mandir}/man8/pcscd.8*
|
|
|
|
|
%{_datadir}/polkit-1/actions/org.debian.pcsc-lite.policy
|
|
|
|
|
%ghost %dir %{_localstatedir}/run/pcscd/
|
|
|
|
|
%if %{with_polkit}
|
|
|
|
|
%dir %{_datadir}/polkit-1/
|
|
|
|
|
%dir %{_datadir}/polkit-1/actions/
|
|
|
|
|
%{_datadir}/polkit-1/actions/org.debian.pcsc-lite.policy
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_libdir}/libpcsclite.so.*
|
|
|
|
|
%{_libdir}/libpcsclite_real.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_bindir}/pcsc-spy
|
|
|
|
|
%{_includedir}/PCSC/
|
|
|
|
|
%{_libdir}/libpcsclite.so
|
|
|
|
|
%{_libdir}/libpcsclite_real.so
|
|
|
|
|
%{_libdir}/libpcscspy.so*
|
|
|
|
|
%dir %{_libdir}/pkgconfig/
|
|
|
|
|
%{_libdir}/pkgconfig/libpcsclite.pc
|
|
|
|
|
%{_mandir}/man1/pcsc-spy.1*
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc doc/api/ doc/example/pcsc_demo.c
|
|
|
|
|
%doc %{_vpath_builddir}/doc/api/ doc/example/pcsc_demo.c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Nov 18 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.4-1
|
|
|
|
|
- Rebase to current version from Fedora (#2017828)
|
|
|
|
|
- Use of upstrea polkit policy preventing unneeded prompts
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.2.3-2
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.2.3-1
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Tue Jul 02 2024 Jakub Jelen <jjelen@redhat.com> - 2.2.3-1
|
|
|
|
|
- New upstream release.
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.0.1-4
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Nov 27 2023 Jakub Jelen <jjelen@redhat.com> - 2.0.1-1
|
|
|
|
|
- New upstream release (#2251427)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 12 2023 Jakub Jelen <jjelen@redhat.com> - 2.0.0-1
|
|
|
|
|
- New upstream release (#2213961)
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.9-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 01 2022 Jakub Jelen <jjelen@redhat.com> - 1.9.9-2
|
|
|
|
|
- Remove downstream patch breaking flatpak (#2054826)
|
|
|
|
|
|
|
|
|
|
* Mon Sep 19 2022 Jakub Jelen <jjelen@redhat.com> - 1.9.9-1
|
|
|
|
|
- New upstream release (#2126065)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.8-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Jakub Jelen <jjelen@redhat.com> - 1.9.8-1
|
|
|
|
|
- New upstream release (#2095962)
|
|
|
|
|
|
|
|
|
|
* Fri May 13 2022 Jakub Jelen <jjelen@redhat.com> - 1.9.7-1
|
|
|
|
|
- New upstream release (#2085514)
|
|
|
|
|
|
|
|
|
|
* Thu May 12 2022 Jakub Jelen <jjelen@redhat.com> - 1.9.6-1
|
|
|
|
|
- New upstream release (#2084468)
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.5-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Dec 06 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.5-1
|
|
|
|
|
- New upstream release (#2029098)
|
|
|
|
|
|
|
|
|
|
* Mon Oct 04 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.4-1
|
|
|
|
|
- New upstream release (#2009927)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.3-1
|
|
|
|
|
- New upstream release (#1991071)
|
|
|
|
|
|
|
|
|
|
* Wed Aug 04 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.2-1
|
|
|
|
|
- New upstream release (#1989875)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.1-5
|
|
|
|
|
- Use upstream polkit policy to avoid annoying prompts in remote sessions (#1478345)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.9.1-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 25 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.1-3
|
|
|
|
|
- Increase the maximum readers count (#1975422)
|
|
|
|
|
- Add support for more readers
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.9.1-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.9.1-2
|
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
|
|
|
|
|
* Thu Feb 25 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.1-1
|
|
|
|
|
- New upstream release (#1932519)
|
|
|
|
|