3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
6 Summary: SMACK userspace package
7 Summary(pl.UTF-8): Pakiet SMACK dla przestrzeni użytkownika
13 #Source0Download: https://github.com/smack-team/smack/releases
14 Source0: https://github.com/smack-team/smack/archive/v%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5: f80d163127c0db8441faf3bbb7d887da
16 URL: https://github.com/smack-team/smack
17 BuildRequires: autoconf >= 2.60
18 BuildRequires: automake >= 1:1.11
19 BuildRequires: doxygen
20 BuildRequires: libtool >= 2:2.2
21 BuildRequires: pkgconfig
22 BuildRequires: systemd-devel >= 1:198
23 Requires: %{name}-libs = %{version}-%{release}
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The Simplified Mandatory Access Control Kernel (SMACK) provides a
28 complete Linux kernel based mechanism for protecting processes and
29 data from inappropriate manipulation. Smack uses process, file, and
30 network labels combined with an easy to understand and manipulate way
31 to identify the kind of accesses that should be allowed.
33 %description -l pl.UTF-8
34 SMACK (Simplified Mandatory Access Control Kernel - uproszczone jądro
35 obowiązkowej kontroli dostępu) to oparty na jądrze Linuksa kompletny
36 mechanizm ochrony procesów i danych od niewłaściwych operacji. Smack
37 wykorzystuje etykiety procesów, plików oraz sieci w połączeniu z
38 łatwymi do zrozumienia i operowania rodzajami dostępu, który powinien
42 Summary: Shared library for interaction with SMACK
43 Summary(pl.UTF-8): Biblioteka współdzielona do współpracy z systemem SMACK
47 Shared library for interaction with SMACK.
49 %description libs -l pl.UTF-8
50 Biblioteka współdzielona do współpracy z systemem SMACK.
53 Summary: Header file for SMACK library
54 Summary(pl.UTF-8): Plik nagłówkowy biblioteki SMACK
55 Group: Development/Libraries
56 Requires: %{name}-libs = %{version}-%{release}
59 Header file for SMACK library.
61 %description devel -l pl.UTF-8
62 Plik nagłówkowy biblioteki SMACK.
65 Summary: Static SMACK library
66 Summary(pl.UTF-8): Statyczna biblioteka SMACK
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}-%{release}
73 %description static -l pl.UTF-8
74 Statyczna biblioteka SMACK.
77 Summary: SMACK API documentation
78 Summary(pl.UTF-8): Dokumentacja API biblioteki SMACK
83 API documentation for SMACK library.
85 %description apidocs -l pl.UTF-8
86 Dokumentacja API biblioteki SMACK.
98 --disable-silent-rules \
99 %{?with_static_libs:--enable-static}
103 rm -rf $RPM_BUILD_ROOT
106 DESTDIR=$RPM_BUILD_ROOT
108 # obsoleted by pkg-config
109 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsmack.la
110 # packaged unarchived in -apidocs
111 %{__rm} $RPM_BUILD_ROOT%{_docdir}/libsmack/libsmack-%{version}-doc.tar.gz
114 rm -rf $RPM_BUILD_ROOT
116 %post libs -p /sbin/ldconfig
117 %postun libs -p /sbin/ldconfig
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/chsmack
122 %attr(755,root,root) %{_bindir}/smackaccess
123 %attr(755,root,root) %{_bindir}/smackcipso
124 %attr(755,root,root) %{_bindir}/smackctl
125 %attr(755,root,root) %{_bindir}/smackload
126 %{_mandir}/man1/smackaccess.1*
127 %{_mandir}/man8/chsmack.8*
128 %{_mandir}/man8/smackcipso.8*
129 %{_mandir}/man8/smackctl.8*
130 %{_mandir}/man8/smackload.8*
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/libsmack.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/libsmack.so.1
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/libsmack.so
140 %{_includedir}/sys/smack.h
141 %{_pkgconfigdir}/libsmack.pc
142 %{_mandir}/man3/SMACK_LABEL_LEN.3*
143 %{_mandir}/man3/smack.h.3*
144 %{_mandir}/man3/smack_*.3*
146 %if %{with static_libs}
148 %defattr(644,root,root,755)
149 %{_libdir}/libsmack.a
154 %defattr(644,root,root,755)