Name: smack Version: 1.0slp2+s4 Release: 1 Summary: Package to interact with Smack Group: System/Kernel License: LGPLv2 URL: https://github.com/organizations/smack-team/smack Source0: smack-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: automake autoconf libtool %description Library allows applications to work with Smack %package devel Summary: Developmnent headers and libs for libsmack Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Standard header files for use when developing Smack enabled applications %package utils Summary: Selection of tools for developers working with Smack Group: System/Kernel Requires: %{name} = %{version}-%{release} %description utils Tools provided to load and unload rules from the kernel and query the policy %prep %setup -q autoreconf --install --symlink %build %configure make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} install -d %{buildroot}/smack install -d %{buildroot}/etc install -D -d %{buildroot}/opt/etc/smack/access.d install -D -d %{buildroot}/opt/etc/smack/cipso.d install -D -d %{buildroot}/opt/etc/rc.d/rc3.d/ install -D -d %{buildroot}/opt/etc/rc.d/rc4.d/ install -D init/smack.rc %{buildroot}/etc/init.d/smack-utils ln -sf /opt/etc/smack %{buildroot}/etc/ ln -sf /etc/init.d/smack-utils %{buildroot}/opt/etc/rc.d/rc3.d/S07smack ln -sf /etc/init.d/smack-utils %{buildroot}/opt/etc/rc.d/rc4.d/S07smack rm -rf %{buildroot}/%{_docdir} %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %{_libdir}/libsmack.so.* %files devel %defattr(644,root,root,755) %{_includedir}/* %{_libdir}/libsmack.so %{_libdir}/libsmack.la %{_libdir}/pkgconfig/* %{_mandir}/man3/* %files utils %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/* %attr(755,root,root) /etc/init.d/smack-utils /etc/smack /opt/etc/* /smack/ %{_mandir}/man1/* %{_mandir}/man8/* %changelog * Thu Jul 30 2012 Rafal Krypa - 1.0slp2+s4 - Rebuild, no source changes. * Thu Jul 19 2012 Rafal Krypa - 1.0slp2+s3 - Rebuild, change versioning schema. * Wed Jul 11 2012 Rafal Krypa - 1.0-slp2+s2 - Release with my source patches after review with the upstream maintainer. * Wed May 9 2012 Rafal Krypa - 1.0-slp2+s1 - Initial spec file