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