diff --git a/.gitignore b/.gitignore
index d014dfe..0074fcb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
SOURCES/gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg
-SOURCES/pcsc-lite-1.9.1.tar.bz2
+SOURCES/pcsc-lite-1.9.4.tar.bz2
diff --git a/.pcsc-lite.metadata b/.pcsc-lite.metadata
index 69e030e..2627563 100644
--- a/.pcsc-lite.metadata
+++ b/.pcsc-lite.metadata
@@ -1,2 +1,2 @@
13df650b9548b4ef1b24ad11ef6b573af4d48011 SOURCES/gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg
-7f3a12ecba3e1977ac1191b46f8ba8f433b85e49 SOURCES/pcsc-lite-1.9.1.tar.bz2
+b8ca342dfa650c2c4d25a86f6dbfa3aa019c2045 SOURCES/pcsc-lite-1.9.4.tar.bz2
diff --git a/SOURCES/org.debian.pcsc-lite.policy b/SOURCES/org.debian.pcsc-lite.policy
deleted file mode 100644
index cbae505..0000000
--- a/SOURCES/org.debian.pcsc-lite.policy
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
- The PCSC-lite Project
- http://pcsclite.alioth.debian.org/
-
-
-
- Access to the PC/SC daemon
- Authentication is required to access the PC/SC daemon
-
- auth_admin
- auth_admin
- yes
-
-
-
-
- Access to the smart card
- Authentication is required to access the smart card
-
- auth_admin
- auth_admin
- yes
-
-
-
-
diff --git a/SOURCES/pcsc-lite-1.9.1-maxreaders.patch b/SOURCES/pcsc-lite-1.9.1-maxreaders.patch
index 13e9ea4..4043101 100644
--- a/SOURCES/pcsc-lite-1.9.1-maxreaders.patch
+++ b/SOURCES/pcsc-lite-1.9.1-maxreaders.patch
@@ -15,7 +15,7 @@ diff -up ./src/PCSC/pcsclite.h.readers_32 ./src/PCSC/pcsclite.h
+++ ./src/PCSC/pcsclite.h 2018-08-20 16:03:00.061567242 -0700
@@ -281,7 +281,7 @@ extern const SCARD_IO_REQUEST g_rgSCardT
- #define PCSCLITE_VERSION_NUMBER "1.9.1" /**< Current version */
+ #define PCSCLITE_VERSION_NUMBER "1.9.4" /**< Current version */
/** Maximum readers context (a slot is count as a reader) */
-#define PCSCLITE_MAX_READERS_CONTEXTS 16
+#define PCSCLITE_MAX_READERS_CONTEXTS 48
diff --git a/SOURCES/pcsc-lite-1.9.1.tar.bz2.asc b/SOURCES/pcsc-lite-1.9.1.tar.bz2.asc
deleted file mode 100644
index fbeebf3..0000000
--- a/SOURCES/pcsc-lite-1.9.1.tar.bz2.asc
+++ /dev/null
@@ -1,16 +0,0 @@
------BEGIN PGP SIGNATURE-----
-
-iQIzBAABCAAdFiEE9eEbn/6REUb0HZU9eKG03+j5xX4FAmAr9IUACgkQeKG03+j5
-xX4y3BAApFyRAelQ2VwL55BB/ObJw1YOaxsO6sP+qYCG+hlbBMBkIH9npwbrrhqh
-AjpUfHT+4prToQMbOkuOasVCtUs+D5gOad+qED3bh0Ob3JnwyfCZA4PxvNZCR3Rv
-7D/fIm1GJB2/D97MM3zr6gEy5PYXExaI9xRocQBVfEF5/z1MI06l9ZEqQR3RQhn7
-MSdex1NAFju5dWSB0VzUafkUuDBo/LMlNLt/p8v5QPqRTBbmr7DVswP/IdekWHNy
-KnrFjFAqZAXAsxrKz90g+m8GSqBNk6qxH6Os7QRji6szFZSRdZ3d0c88+Vnagft9
-Pgs34zOK6aNG5gOqmMbc8S9SFPYzP+RDti1M/bybEmwwDjBRlc/b00DBfFOsqUVd
-dkMISguUREN3n6AUANvR18fJSGBJEzyo00S+LyRt2R7a4JrFcNd02SjKejks8kKn
-ygAAVRitZV7eb5LO4lCWB0Wpm0nGYg/WTq7D1BUmF9DjbmpTk8XuZFsZ84nD6rEc
-MoC28nTCqgbnpJpxNncEf1E2tR6CuVX50mxZqOLhNrbj9geNGzBij5uxZ3bo3k19
-Pz5thB55citvUGo0Nz3gifEToLeUSr4jRSl7QbnSJXDfyvZSDJN4rnyTR238p2JP
-pGvvsmfzPdBsWrJKM0f48loB/EvmHebxw52YxOhhO4q2lRV2FXY=
-=Kp84
------END PGP SIGNATURE-----
diff --git a/SOURCES/pcsc-lite-1.9.4.tar.bz2.asc b/SOURCES/pcsc-lite-1.9.4.tar.bz2.asc
new file mode 100644
index 0000000..085ed2b
--- /dev/null
+++ b/SOURCES/pcsc-lite-1.9.4.tar.bz2.asc
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNATURE-----
+
+iQIyBAABCAAdFiEE9eEbn/6REUb0HZU9eKG03+j5xX4FAmFXMRwACgkQeKG03+j5
+xX7/KQ/3RHTZ0G5UIDOY8q072UkGUk1OJW7azD9o1BsQpD0UBIHDD1q8ISilhJ5A
+MM1qsV0oirL01CUdkx3rPAFHusZrGbx/DQrX/1k/HmsCtwGMHWX9HkvVfU2ollHV
+O6+6RCBrGzL28j6kx6XoC8d1bBkwjCHsdPpkgdnoSrUq79xtIVQa/T8JNg+lDfn4
+QmYzVjc2uyeofQt1R4LDOb4sNb4ZwvO/dLoQjJXm+M20TLocXVGS6EzuM3Kt1ppK
+1Lf6Y7nqERm8HZtWxqCuiEn+rF9Dr+7DgSfLWTzZ/hVhqSbg5QoQDTzoiYMz8EqL
+zagLx/Mqa7VFuHT35QLzExjfvNn94xBpcSMQ5IjOQpgLU79Fx9Dw0TmtKHipcE57
+B0Kvt5dWcRXIm3wit2nbL9QbSrkE3B6cy4w6uRU0+HIqR17fWqET1XSG9k9/Wlfi
+GYaxe4knAqu/7jcqbqOHs0OHNfUwXZa7xhfYK7/7FAomzHcyFGpDP39J1CrYIT/d
+lonOgD8Mul4GJE/ZUSXNMp2My1Ds055ILMmOpxpJzy6QWqXCYKjPoYZWpbNV+we9
+yKR22z4Oag2gh3Y/HFh9NQ2WpS23NcY7BD+bMO1zle1MaJbqqoMp29XacrZnqwjX
+sDDSia3dtqfZY4ktr98aars2M0BtoqxFnsbdLCxN7EowgEq1Ww==
+=auuN
+-----END PGP SIGNATURE-----
diff --git a/SPECS/pcsc-lite.spec b/SPECS/pcsc-lite.spec
index 271212d..c56d5a7 100644
--- a/SPECS/pcsc-lite.spec
+++ b/SPECS/pcsc-lite.spec
@@ -1,6 +1,6 @@
Name: pcsc-lite
-Version: 1.9.1
-Release: 4%{?dist}
+Version: 1.9.4
+Release: 1%{?dist}
Summary: PC/SC Lite smart card framework and applications
License: BSD
@@ -8,7 +8,6 @@ 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
-Source3: org.debian.pcsc-lite.policy
Patch1: pcsc-lite-1.9.1-maxreaders.patch
BuildRequires: make
@@ -95,10 +94,6 @@ pathfix.py -pni "%{__python3} %{py3_shbang_opts}" src/spy/pcsc-spy
%install
%make_install
-rm -f $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/org.debian.pcsc-lite.policy
-
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/
-install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/
# Create empty directories
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d
@@ -160,6 +155,10 @@ fi
%changelog
+* Thu Nov 18 2021 Jakub Jelen - 1.9.4-1
+- Rebase to current version from Fedora (#2017828)
+- Use of upstrea polkit policy preventing unneeded prompts
+
* Mon Aug 09 2021 Mohan Boddu - 1.9.1-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688