Accepting request 96197 from security:chipcard
- Move libpcsclite.so file to the main package (bnc#732911). - Updated to version 1.8.1 * added missing files in source archive OBS-URL: https://build.opensuse.org/request/show/96197 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pcsc-lite?expand=0&rev=41
This commit is contained in:
commit
e8307c3101
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b4bdd21bb42cddddee302069fc7356d8a2092c214ba289af8c620fa02e5b05e7
|
|
||||||
size 538435
|
|
3
pcsc-lite-1.8.1.tar.bz2
Normal file
3
pcsc-lite-1.8.1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:eba006db63d1a67d2314be760e19572c71cec816e51db05da28a41714a6049e0
|
||||||
|
size 546082
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 7 19:34:17 CET 2011 - sbrabec@suse.cz
|
||||||
|
|
||||||
|
- Move libpcsclite.so file to the main package (bnc#732911).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 25 19:54:19 UTC 2011 - wr@rosenauer.org
|
||||||
|
|
||||||
|
- Updated to version 1.8.1
|
||||||
|
* added missing files in source archive
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Nov 19 18:25:31 UTC 2011 - wr@rosenauer.org
|
Sat Nov 19 18:25:31 UTC 2011 - wr@rosenauer.org
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ BuildRequires: libusb-1_0-devel
|
|||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
%endif
|
%endif
|
||||||
Version: 1.8.0
|
Version: 1.8.1
|
||||||
Release: 1
|
Release: 1
|
||||||
Requires(pre): pwdutils
|
Requires(pre): pwdutils
|
||||||
Group: Productivity/Security
|
Group: Productivity/Security
|
||||||
@ -47,6 +47,7 @@ Source3: pre_checkin.sh
|
|||||||
Source4: baselibs.conf
|
Source4: baselibs.conf
|
||||||
Source5: pcsc-lite-init
|
Source5: pcsc-lite-init
|
||||||
Source6: pcsc-lite-reader-conf
|
Source6: pcsc-lite-reader-conf
|
||||||
|
Patch0: systemd-service.patch
|
||||||
Requires(post): %insserv_prereq %fillup_prereq
|
Requires(post): %insserv_prereq %fillup_prereq
|
||||||
%if %suse_version > 1130
|
%if %suse_version > 1130
|
||||||
PreReq: sysvinit(syslog)
|
PreReq: sysvinit(syslog)
|
||||||
@ -121,6 +122,7 @@ compile plugins for the pcsc-lite package.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
cp -a %{S:1} %{S:2} %{S:5} %{S:6} .
|
cp -a %{S:1} %{S:2} %{S:5} %{S:6} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -168,24 +170,29 @@ exit 0
|
|||||||
%post
|
%post
|
||||||
%if %suse_version > 1140
|
%if %suse_version > 1140
|
||||||
%service_add_post pcscd.service pcscd.socket
|
%service_add_post pcscd.service pcscd.socket
|
||||||
%else
|
/bin/systemctl disable pcscd.service || :
|
||||||
|
/bin/systemctl enable pcscd.socket || :
|
||||||
|
/bin/systemctl try-restart pcscd.service || :
|
||||||
|
/bin/systemctl restart pcscd.socket || :
|
||||||
|
%endif
|
||||||
%fillup_and_insserv -y -n pcscd pcscd
|
%fillup_and_insserv -y -n pcscd pcscd
|
||||||
%restart_on_update pcscd
|
%restart_on_update pcscd
|
||||||
%endif
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%if %suse_version > 1140
|
%if %suse_version > 1140
|
||||||
%service_del_preun pcscd.service pcscd.socket
|
%service_del_preun pcscd.service pcscd.socket
|
||||||
%else
|
|
||||||
%stop_on_removal pcscd
|
|
||||||
%endif
|
%endif
|
||||||
|
%stop_on_removal pcscd
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%if %suse_version > 1140
|
%if %suse_version > 1140
|
||||||
%service_del_postun pcscd.service pcscd.socket
|
%service_del_postun pcscd.service pcscd.socket
|
||||||
%else
|
# make sure to reload systemd for possible downgrades
|
||||||
%insserv_cleanup
|
if [ "$1" = "1" ]; then
|
||||||
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
%insserv_cleanup
|
||||||
|
|
||||||
%post -n libpcsclite1 -p /sbin/ldconfig
|
%post -n libpcsclite1 -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -208,6 +215,8 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
%{_initrddir}/pcscd
|
%{_initrddir}/pcscd
|
||||||
/var/adm/fillup-templates/sysconfig.pcscd
|
/var/adm/fillup-templates/sysconfig.pcscd
|
||||||
|
# libpcsclite.so should stay in the main package (#732911). Third party packages may need it for dlopen().
|
||||||
|
%{_libdir}/libpcsclite.so
|
||||||
|
|
||||||
%files -n libpcsclite1
|
%files -n libpcsclite1
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -220,8 +229,10 @@ exit 0
|
|||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/*.so
|
|
||||||
%{_libdir}/*.*a
|
%{_libdir}/*.*a
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
%{_libdir}/*.so
|
||||||
|
# libpcsclite.so should stay in the main package (#732911). Third party packages may need it for dlopen().
|
||||||
|
%exclude %{_libdir}/libpcsclite.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
15
systemd-service.patch
Normal file
15
systemd-service.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff --git a/etc/pcscd.service.in b/etc/pcscd.service.in
|
||||||
|
index 68dcfaa..8e632c8 100644
|
||||||
|
--- a/etc/pcscd.service.in
|
||||||
|
+++ b/etc/pcscd.service.in
|
||||||
|
@@ -3,7 +3,9 @@ Description=PC/SC Smart Card Daemon
|
||||||
|
Requires=pcscd.socket
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
-ExecStart=@sbindir_exp@/pcscd --foreground --auto-exit
|
||||||
|
+Environment=PCSCD_OPTIONS=""
|
||||||
|
+EnvironmentFile=-/etc/sysconfig/pcscd
|
||||||
|
+ExecStart=@sbindir_exp@/pcscd --foreground --auto-exit $PCSCD_OPTIONS
|
||||||
|
ExecReload=@sbindir_exp@/pcscd --hotplug
|
||||||
|
StandardOutput=syslog
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user