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