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}
63 if [ -d /etc/smack -a ! -L /etc/smack ]; then
64 cp -r /etc/smack /opt/etc/
67 ln -sf /opt/etc/smack /etc/
69 %postun -p /sbin/ldconfig
72 %defattr(644,root,root,755)
73 %{_libdir}/libsmack.so.*
76 %defattr(644,root,root,755)
78 %{_libdir}/libsmack.so
79 %{_libdir}/libsmack.la
80 %{_libdir}/pkgconfig/*
84 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_bindir}/*
86 %attr(755,root,root) /etc/init.d/smack-utils
89 %{_libdir}/systemd/system/%{name}.mount
90 %{_libdir}/systemd/system/local-fs.target.wants/%{name}.mount
91 %{_libdir}/systemd/system/%{name}.service
92 %{_libdir}/systemd/system/basic.target.wants/%{name}.service
99 * Tue Aug 20 2013 Rafal Krypa <r.krypa@samsung.com> - 1.0slp2+s12
100 - fix directory installation problem
102 - fix smack denied issue on emulator
103 - Fix symlink creation on smack-utils install.
104 - libsmack: add support for new access mode for setting locks ("l")
106 * Wed Apr 24 2013 Rafal Krypa <r.krypa@samsung.com> - 1.0slp2+s11
107 - libsmack: check label length in smack_revoke_subject().
108 - Merge changes from upstream repository:
109 - libsmack: fallback to short labels.
110 - Declare smack_mnt as non-static in init.c.
112 - smack.service: provide [Install] section in systemd unit file.
113 - smack.mount: "WantedBy" is illegal in [Unit] context.
114 - Move cipso_free,cipso_new,cipso_apply from utils/common.c to libsmack/libsmack.c.
115 - Add support for smackfs directory: /sys/fs/smackfs/
116 - smackcipso can't set CIPSO correctly (fixes bug TDIS-3891)
117 - Run AM_PROG_AR to fix build with newer automake.
118 - disable services for new systemd versions
120 * Thu Feb 07 2013 Rafal Krypa <r.krypa@samsung.com> - 1.0slp2+s9
121 - Polish init script.
122 - execute init script between local-fs.target and basic.target.
123 - libsmack: fix access type parsing.
124 - libsmack: fix label removal.
125 - Don't fail when removing label from file, that doesn't have it.
127 * Wed Dec 10 2012 Jacek Migacz <j.migacz@samsung.com> - 1.0slp2+s8
128 - Add systemd support scripts.
130 * Mon Nov 26 2012 Kidong Kim <kd0228.kim@samsung.com> - 1.0slp2+s7
131 - fix initialization script order : S07 -> S01
133 * Mon Oct 29 2012 Tomasz Swierczek <t.swieczek@samsung.com> - 1.0slp2+s6
134 - No changes, re-release to proper OBS project on tizendev.
136 * Thu Oct 25 2012 Tomasz Swierczek <t.swieczek@samsung.com> - 1.0slp2+s6
137 - No changes, re-release to proper OBS project on tizendev.
139 * Mon Sep 17 2012 Rafal Krypa <r.krypa@samsung.com> - 1.0slp2+s6
140 - Modified typo access.d --> accesses.d
141 - packaging: fix location of symlinks to smack-utils init script.
142 - Merge with upstream.
144 * Thu Aug 1 2012 Rafal Krypa <r.krypa@samsung.com> - 1.0slp2+s5
145 - Rebuild, no source changes.
147 * Thu Jul 30 2012 Rafal Krypa <r.krypa@samsung.com> - 1.0slp2+s4
148 - Rebuild, no source changes.
150 * Thu Jul 19 2012 Rafal Krypa <r.krypa@samsung.com> - 1.0slp2+s3
151 - Rebuild, change versioning schema.
153 * Wed Jul 11 2012 Rafal Krypa <r.krypa@samsung.com> - 1.0-slp2+s2
154 - Release with my source patches after review with the upstream maintainer.
156 * Wed May 9 2012 Rafal Krypa <r.krypa@samsung.com> - 1.0-slp2+s1