Changed files:
opensc.spec -> 1.24
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# datadir is used for config files and (editable) profiles
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# datadir is used for config files and (editable) profiles
-%define _datadir %{_sysconfdir}
+%define _datadir /etc
+%define _sysconfdir /etc/opensc
%define mozplugindir /usr/%{_lib}/mozilla/plugins
%description
%define mozplugindir /usr/%{_lib}/mozilla/plugins
%description
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__automake}
%configure \
--with-pin-entry=/usr/bin/pinentry-gtk \
%{__automake}
%configure \
--with-pin-entry=/usr/bin/pinentry-gtk \
mv -f $RPM_BUILD_ROOT%{_libdir}/opensc/opensc-signer.so $RPM_BUILD_ROOT%{mozplugindir}
# default config
mv -f $RPM_BUILD_ROOT%{_libdir}/opensc/opensc-signer.so $RPM_BUILD_ROOT%{mozplugindir}
# default config
-mv -f $RPM_BUILD_ROOT%{_datadir}/opensc/opensc.conf{.example,}
-mv -f $RPM_BUILD_ROOT%{_datadir}/opensc/scldap.conf{.example,}
+mv -f $RPM_BUILD_ROOT%{_sysconfdir}/opensc.conf{.example,}
+mv -f $RPM_BUILD_ROOT%{_sysconfdir}/scldap.conf{.example,}
# useless (dlopened by *.so)
rm -f $RPM_BUILD_ROOT%{_libdir}/libscam.{a,la} \
# useless (dlopened by *.so)
rm -f $RPM_BUILD_ROOT%{_libdir}/libscam.{a,la} \
%attr(755,root,root) %{_libdir}/opensc/engine_opensc.so
%attr(755,root,root) %{_libdir}/opensc/engine_pkcs11.so
%dir %{_datadir}/opensc
%attr(755,root,root) %{_libdir}/opensc/engine_opensc.so
%attr(755,root,root) %{_libdir}/opensc/engine_pkcs11.so
%dir %{_datadir}/opensc
-%config(noreplace) %verify(not size mtime md5) %{_datadir}/opensc/*.conf
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.conf
%config(noreplace) %verify(not size mtime md5) %{_datadir}/opensc/*.profile
%{_mandir}/man1/cryptoflex-tool.1*
%{_mandir}/man1/opensc-explorer.1*
%config(noreplace) %verify(not size mtime md5) %{_datadir}/opensc/*.profile
%{_mandir}/man1/cryptoflex-tool.1*
%{_mandir}/man1/opensc-explorer.1*