From f04f03e4fbf0c6717558d5d40217f35b71472f2dde6787bdffeea40007ec6314 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 2 Sep 2014 14:33:18 +0000 Subject: [PATCH] Accepting request 244776 from home:sfalken:branches:security - Specfile Cleanup, Added directory macros in appropriate places OBS-URL: https://build.opensuse.org/request/show/244776 OBS-URL: https://build.opensuse.org/package/show/security/openCryptoki?expand=0&rev=18 --- openCryptoki.changes | 5 +++++ openCryptoki.spec | 26 +++++++++++++------------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/openCryptoki.changes b/openCryptoki.changes index dba1ee7..a2f27ab 100644 --- a/openCryptoki.changes +++ b/openCryptoki.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 15 02:14:21 UTC 2014 - sfalken@opensuse.org + +- Specfile Cleanup, Added directory macros in appropriate places + ------------------------------------------------------------------- Thu Jun 26 06:55:03 UTC 2014 - jjolly@suse.com diff --git a/openCryptoki.spec b/openCryptoki.spec index 97c6dd2..b02992b 100644 --- a/openCryptoki.spec +++ b/openCryptoki.spec @@ -180,10 +180,10 @@ CFLAGS="$RPM_OPT_FLAGS -D__USE_BSD" ./configure \ %endif --sysconfdir=%{_sysconfdir} \ --localstatedir=%{_localstatedir} -make +%__make %install -make install DESTDIR=$RPM_BUILD_ROOT INSROOT=$RPM_BUILD_ROOT +%make_install DESTDIR=$RPM_BUILD_ROOT INSROOT=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/usr/include install -d $RPM_BUILD_ROOT/var/lib/opencryptoki install -d $RPM_BUILD_ROOT/etc/init.d @@ -286,27 +286,27 @@ ln -sf %{_libdir}/opencryptoki/libopencryptoki.so /usr/lib/pkcs11/PKCS11_API.so6 %defattr(-,root,root) %doc openCryptoki-TFAQ.html # configuration directory -%dir /etc/opencryptoki -%config /etc/opencryptoki/opencryptoki.conf +%dir %{_sysconfdir}/opencryptoki +%config %{_sysconfdir}/opencryptoki/opencryptoki.conf %ifarch s390 s390x -%config /etc/opencryptoki/ep11tok.conf -/usr/sbin/pkcsep11_migrate +%config %{_sysconfdir}/opencryptoki/ep11tok.conf +%{_sbindir}/pkcsep11_migrate %endif %if %{uses_systemd} -/usr/lib/systemd/system/pkcsslotd.service -/usr/lib/tmpfiles.d/openCryptoki-tmp.conf +%{_prefix}/lib/systemd/system/pkcsslotd.service +%{_prefix}/lib/tmpfiles.d/openCryptoki-tmp.conf %else -/etc/init.d/pkcsslotd +%{_sysconfdir}/init.d/pkcsslotd %ghost %dir %attr(770,root,pkcs11) %{_localstatedir}/lock/opencryptoki %ghost %dir %attr(770,root,pkcs11) %{_localstatedir}/lock/opencryptoki/ccatok %ghost %dir %attr(770,root,pkcs11) %{_localstatedir}/lock/opencryptoki/swtok %ghost %dir %attr(770,root,pkcs11) %{_localstatedir}/lock/opencryptoki/tpm %endif -/usr/sbin/rcpkcsslotd +%{_sbindir}/rcpkcsslotd # utilities -/usr/sbin/pkcsslotd -/usr/sbin/pkcsconf -/usr/sbin/pkcsicsf +%{_sbindir}/pkcsslotd +%{_sbindir}/pkcsconf +%{_sbindir}/pkcsicsf %dir %{_libdir}/opencryptoki %dir %{_libdir}/opencryptoki/stdll # State and lock directories