Clean spec file and remove depreacated /smack install directory. 97/18397/3
authorRonan Le Martret <ronan@fridu.net>
Fri, 21 Mar 2014 16:28:18 +0000 (17:28 +0100)
committerRonan Le Martret <ronan@fridu.net>
Thu, 17 Apr 2014 16:41:39 +0000 (18:41 +0200)
Change-Id: If6234f54899df5b88091959062a324df66fc8551
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
packaging/smack.spec

index b6bd0a2..99af779 100644 (file)
@@ -34,25 +34,20 @@ Library allows applications to work with Smack.
 cp %{SOURCE1001} .
 
 %build
-autoreconf --install --symlink
-%configure --with-systemdsystemunitdir=%{_prefix}/lib/systemd/system
+%reconfigure --with-systemdsystemunitdir=%{_unitdir}
 
 make %{?_smp_mflags}
 
 %install
 %make_install
-
-install -d %{buildroot}/etc/smack/accesses.d
-install -d %{buildroot}/etc/smack/cipso.d
-install -d %{buildroot}/etc/smack/netlabel.d
-install -d %{buildroot}/smack
-
+install -d %{buildroot}%{_sysconfdir}/smack/accesses.d
+install -d %{buildroot}%{_sysconfdir}/smack/cipso.d
+install -d %{buildroot}%{_sysconfdir}/smack/netlabel.d
 
 %post -p /sbin/ldconfig -n libsmack
 
 %postun -p /sbin/ldconfig -n libsmack
 
-
 %docs_package
 
 %files -n libsmack
@@ -68,7 +63,7 @@ install -d %{buildroot}/smack
 %{_libdir}/libsmack.so
 %{_libdir}/pkgconfig/libsmack.pc
 
-%files 
+%files
 %manifest %{name}.manifest
 %defattr(644,root,root,755)
 %{_sysconfdir}/smack
@@ -76,3 +71,4 @@ install -d %{buildroot}/smack
 %{_sysconfdir}/smack/cipso.d
 %{_sysconfdir}/smack/netlabel.d
 %attr(755,root,root) %{_bindir}/*
+