4 Summary: Package to interact with Smack
7 URL: https://github.com/organizations/smack-team/smack
8 Source0: smack-%{version}.tar.gz
9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11 BuildRequires: automake autoconf libtool
14 Library allows applications to work with Smack
17 Summary: Developmnent headers and libs for libsmack
18 Group: Development/Libraries
19 Requires: %{name} = %{version}-%{release}
22 Standard header files for use when developing Smack enabled applications
25 Summary: Selection of tools for developers working with Smack
27 Requires: %{name} = %{version}-%{release}
30 Tools provided to load and unload rules from the kernel and query the policy
34 autoreconf --install --symlink
37 %configure --with-systemdsystemunitdir=%{_libdir}/systemd/system
42 make install DESTDIR=%{buildroot}
43 install -d %{buildroot}/smack
44 install -d %{buildroot}/etc
45 install -D -d %{buildroot}/opt/etc/smack/accesses.d
46 install -D -d %{buildroot}/opt/etc/smack/cipso.d
47 install -D -d %{buildroot}/etc/rc.d/rc3.d/
48 install -D -d %{buildroot}/etc/rc.d/rc4.d/
49 install -D init/smack.rc %{buildroot}/etc/init.d/smack-utils
50 #ln -sf /opt/etc/smack %{buildroot}/etc/
51 ln -sf /etc/init.d/smack-utils %{buildroot}/etc/rc.d/rc3.d/S01smack
52 ln -sf /etc/init.d/smack-utils %{buildroot}/etc/rc.d/rc4.d/S01smack
53 install -D -d %{buildroot}%{_libdir}/systemd/system/local-fs.target.wants
54 install -D -d %{buildroot}%{_libdir}/systemd/system/basic.target.wants
55 ln -sf ../%{name}.mount %{buildroot}%{_libdir}/systemd/system/local-fs.target.wants/
56 ln -sf ../%{name}.service %{buildroot}%{_libdir}/systemd/system/basic.target.wants/
57 rm -rf %{buildroot}/%{_docdir}
58 mkdir -p %{buildroot}/usr/share/license
59 cp COPYING %{buildroot}/usr/share/license/%{name}
60 cp COPYING %{buildroot}/usr/share/license/smack-utils
66 if [ -d /etc/smack -a ! -L /etc/smack ]; then
67 cp -r /etc/smack /opt/etc/
70 ln -sf /opt/etc/smack /etc/
72 %postun -p /sbin/ldconfig
75 %defattr(644,root,root,755)
76 %{_libdir}/libsmack.so.*
77 /usr/share/license/%{name}
80 %defattr(644,root,root,755)
82 %{_libdir}/libsmack.so
83 %{_libdir}/libsmack.la
84 %{_libdir}/pkgconfig/*
88 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_bindir}/*
90 %attr(755,root,root) /etc/init.d/smack-utils
93 %{_libdir}/systemd/system/%{name}.mount
94 %{_libdir}/systemd/system/local-fs.target.wants/%{name}.mount
95 %{_libdir}/systemd/system/%{name}.service
96 %{_libdir}/systemd/system/basic.target.wants/%{name}.service
101 /usr/share/license/smack-utils
104 * Tue Aug 20 2013 Rafal Krypa <r.krypa@samsung.com> - 1.0slp2+s12
105 - fix directory installation problem
107 - fix smack denied issue on emulator
108 - Fix symlink creation on smack-utils install.
109 - libsmack: add support for new access mode for setting locks ("l")
111 * Wed Apr 24 2013 Rafal Krypa <r.krypa@samsung.com> - 1.0slp2+s11
112 - libsmack: check label length in smack_revoke_subject().
113 - Merge changes from upstream repository:
114 - libsmack: fallback to short labels.
115 - Declare smack_mnt as non-static in init.c.
117 - smack.service: provide [Install] section in systemd unit file.
118 - smack.mount: "WantedBy" is illegal in [Unit] context.
119 - Move cipso_free,cipso_new,cipso_apply from utils/common.c to libsmack/libsmack.c.
120 - Add support for smackfs directory: /sys/fs/smackfs/
121 - smackcipso can't set CIPSO correctly (fixes bug TDIS-3891)
122 - Run AM_PROG_AR to fix build with newer automake.
123 - disable services for new systemd versions
125 * Thu Feb 07 2013 Rafal Krypa <r.krypa@samsung.com> - 1.0slp2+s9
126 - Polish init script.
127 - execute init script between local-fs.target and basic.target.
128 - libsmack: fix access type parsing.
129 - libsmack: fix label removal.
130 - Don't fail when removing label from file, that doesn't have it.
132 * Wed Dec 10 2012 Jacek Migacz <j.migacz@samsung.com> - 1.0slp2+s8
133 - Add systemd support scripts.
135 * Mon Nov 26 2012 Kidong Kim <kd0228.kim@samsung.com> - 1.0slp2+s7
136 - fix initialization script order : S07 -> S01
138 * Mon Oct 29 2012 Tomasz Swierczek <t.swieczek@samsung.com> - 1.0slp2+s6
139 - No changes, re-release to proper OBS project on tizendev.
141 * Thu Oct 25 2012 Tomasz Swierczek <t.swieczek@samsung.com> - 1.0slp2+s6
142 - No changes, re-release to proper OBS project on tizendev.
144 * Mon Sep 17 2012 Rafal Krypa <r.krypa@samsung.com> - 1.0slp2+s6
145 - Modified typo access.d --> accesses.d
146 - packaging: fix location of symlinks to smack-utils init script.
147 - Merge with upstream.
149 * Thu Aug 1 2012 Rafal Krypa <r.krypa@samsung.com> - 1.0slp2+s5
150 - Rebuild, no source changes.
152 * Thu Jul 30 2012 Rafal Krypa <r.krypa@samsung.com> - 1.0slp2+s4
153 - Rebuild, no source changes.
155 * Thu Jul 19 2012 Rafal Krypa <r.krypa@samsung.com> - 1.0slp2+s3
156 - Rebuild, change versioning schema.
158 * Wed Jul 11 2012 Rafal Krypa <r.krypa@samsung.com> - 1.0-slp2+s2
159 - Release with my source patches after review with the upstream maintainer.
161 * Wed May 9 2012 Rafal Krypa <r.krypa@samsung.com> - 1.0-slp2+s1