]> git.pld-linux.org Git - packages/libsepol.git/blame - libsepol.spec
BR: flex
[packages/libsepol.git] / libsepol.spec
CommitLineData
95e9033f 1Summary: SELinux binary policy manipulation library
e12ada4d 2Summary(pl.UTF-8): Biblioteka do obróbki polityk SELinuksa w postaci binarnej
95e9033f 3Name: libsepol
a366db2a 4Version: 2.9
35de5ad4 5Release: 1
d8c67fc4 6License: LGPL v2.1+
95e9033f 7Group: Libraries
35de5ad4 8#Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
a366db2a
MK
9Source0: https://github.com/SELinuxProject/selinux/releases/download/20190315/%{name}-%{version}.tar.gz
10# Source0-md5: 2fdefe870a61424d8f2d5d37551c6259
35de5ad4 11URL: https://github.com/SELinuxProject/selinux/wiki
a77ecd41 12BuildRequires: flex
95e9033f
JB
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
20b0dd8a 16Security-enhanced Linux is a patch of the Linux kernel and a number of
17utilities with enhanced security functionality designed to add
95e9033f
JB
18mandatory access controls to Linux. The Security-enhanced Linux kernel
19contains new architectural components originally developed to improve
20the security of the Flask operating system. These architectural
21components provide general support for the enforcement of many kinds
22of mandatory access control policies, including those based on the
23concepts of Type Enforcement, Role-based Access Control, and
24Multi-level Security.
25
26libsepol provides an API for the manipulation of SELinux binary
27policies. It is used by checkpolicy (the policy compiler) and similar
28tools, as well as by programs like load_policy that need to perform
29specific transformations on binary policies such as customizing policy
30boolean settings.
31
f76253ec
JR
32%description -l pl.UTF-8
33Security-enhanced Linux jest prototypem jądra Linuksa i wielu
34aplikacji użytkowych o funkcjach podwyższonego bezpieczeństwa.
35Zaprojektowany jest tak, aby w prosty sposób ukazać znaczenie
36obowiązkowej kontroli dostępu dla społeczności linuksowej. Ukazuje
37również jak taką kontrolę można dodać do istniejącego systemu typu
38Linux. Jądro SELinux zawiera nowe składniki architektury pierwotnie
39opracowane w celu ulepszenia bezpieczeństwa systemu operacyjnego
40Flask. Te elementy zapewniają ogólne wsparcie we wdrażaniu wielu typów
41polityk obowiązkowej kontroli dostępu, włączając te wzorowane na: Type
42Enforcement (TE), kontroli dostępu opartej na rolach (RBAC) i
95e9033f
JB
43zabezpieczeniach wielopoziomowych.
44
f76253ec
JR
45libsepol dostarcza API do obróbki polityk SELinuksa w postaci
46binarnej. Jest używane przez checkpolicy (kompilator polityk) i
47podobne narzędzia, a także przez programy w rodzaju load_policy,
48potrzebne do wykonywania określonych przekształceń na binarnych
49politykach, takich jak dostosowywanie logicznych ustawień polityki.
95e9033f
JB
50
51%package devel
52Summary: Header files used to build policy manipulation tools
e12ada4d 53Summary(pl.UTF-8): Pliki nagłówkowe do budowania narzędzi obrabiających politykę
95e9033f
JB
54Group: Development/Libraries
55Requires: %{name} = %{version}-%{release}
56
57%description devel
58This package contains the header files needed for developing
59applications that manipulate binary policies.
60
f76253ec
JR
61%description devel -l pl.UTF-8
62Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji
63obrabiających binarne polityki.
95e9033f
JB
64
65%package static
66Summary: Static version of libsepol library
e12ada4d 67Summary(pl.UTF-8): Statyczna wersja biblioteki libsepol
95e9033f
JB
68Group: Development/Libraries
69Requires: %{name}-devel = %{version}-%{release}
70
71%description static
72Static version of libsepol library.
73
f76253ec 74%description static -l pl.UTF-8
95e9033f
JB
75Statyczna wersja biblioteki libsepol.
76
77%prep
78%setup -q
79
80%build
81%{__make} \
82 CC="%{__cc}" \
b37ce810 83 LDFLAGS="%{rpmldflags}" \
e1cf1a35 84 CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall"
95e9033f
JB
85
86%install
87rm -rf $RPM_BUILD_ROOT
88
89%{__make} install \
90 DESTDIR=$RPM_BUILD_ROOT \
dbc22b7e
JB
91 LIBDIR=%{_libdir} \
92 SHLIBDIR=/%{_lib}
95e9033f
JB
93
94# make symlink across / absolute
84f9e919 95ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libsepol.so.*) \
95e9033f
JB
96 $RPM_BUILD_ROOT%{_libdir}/libsepol.so
97
98%clean
99rm -rf $RPM_BUILD_ROOT
100
101%post -p /sbin/ldconfig
102%postun -p /sbin/ldconfig
103
104%files
105%defattr(644,root,root,755)
35d3e5c1 106%attr(755,root,root) /%{_lib}/libsepol.so.1
95e9033f
JB
107
108%files devel
109%defattr(644,root,root,755)
84f9e919 110%attr(755,root,root) %{_bindir}/chkcon
95e9033f 111%attr(755,root,root) %{_libdir}/libsepol.so
20b0dd8a 112%{_pkgconfigdir}/libsepol.pc
95e9033f 113%{_includedir}/sepol
84f9e919
JB
114%{_mandir}/man3/sepol_*.3*
115%{_mandir}/man8/chkcon.8*
116%{_mandir}/man8/genpolbools.8*
117%{_mandir}/man8/genpolusers.8*
932827f3 118%lang(ru) %{_mandir}/ru/man8/chkcon.8*
95e9033f
JB
119
120%files static
121%defattr(644,root,root,755)
122%{_libdir}/libsepol.a
This page took 0.082009 seconds and 4 git commands to generate.