commit bc53361b51bfc3df5c9367b4033b095732e7adb1
Author: Jakub Bogusz <[email protected]>
Date:   Sun Dec 4 19:41:56 2022 +0100

    - upstream provided profiles moved back to pkgdatadir; in order to modify, 
one can change profiles path in config file

 opensc.spec | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/opensc.spec b/opensc.spec
index 6123454..9ec71a3 100644
--- a/opensc.spec
+++ b/opensc.spec
@@ -36,10 +36,6 @@ Obsoletes:   browser-plugin-opensc
 Obsoletes:     mozilla-plugin-opensc
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# datadir is used for config files and (editable) profiles
-%define                _datadir        /etc
-%define                _sysconfdir     /etc/opensc
-
 %description
 libopensc is a library for accessing SmartCard devices using PC/SC
 Lite middleware package. It is also the core library of the OpenSC
@@ -110,6 +106,7 @@ Bashowe uzupełnianie parametrów poleceń OpenSC.
 %{__autoheader}
 %{__automake}
 %configure \
+       --sysconfdir=%{_sysconfdir}/opensc \
        %{?with_openct:--enable-openct --disable-pcsc} \
        %{!?with_openct:--enable-pcsc --disable-openct} \
        %{!?with_openpace:--disable-openpace} \
@@ -178,8 +175,9 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/pkcs11/onepin-opensc-pkcs11.so
 %attr(755,root,root) %{_libdir}/pkcs11/opensc-pkcs11.so
 %attr(755,root,root) %{_libdir}/pkcs11/pkcs11-spy.so
+%dir %{_sysconfdir}/opensc
+%config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/opensc/opensc.conf
 %dir %{_datadir}/opensc
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensc.conf
 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/opensc/*.profile
 %if %{with openpace}
 /etc/eac/cvc/DESCHSMCVCA00001
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/opensc.git/commitdiff/bc53361b51bfc3df5c9367b4033b095732e7adb1

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to