]> git.pld-linux.org Git - packages/setools.git/blob - setools.spec
- updated for 2.4
[packages/setools.git] / setools.spec
1 Summary:        SELinux tools for managing policy
2 Summary(pl):    Narzêdzia do zarz±dzania polityk± SELinux
3 Name:           setools
4 Version:        2.3
5 Release:        0.1
6 License:        GPL
7 Group:          Base
8 #Source0:       http://www.nsa.gov/selinux/archives/%{name}-%{version}.tar.bz2
9 #Source0Download: http://www.tresys.com/selinux/selinux_policy_tools.html
10 Source0:        http://tresys.com/files/setools/%{name}-%{version}.tar.bz2
11 # Source0-md5:  fcb16faa702a3e0b51276803bd736401
12 Patch0:         %{name}-opt.patch
13 URL:            http://www.tresys.com/selinux/selinux_policy_tools.html
14 BuildRequires:  bison
15 BuildRequires:  flex
16 BuildRequires:  libglade2-devel >= 2.0
17 BuildRequires:  libselinux-devel
18 BuildRequires:  perl-base
19 BuildRequires:  pkgconfig
20 BuildRequires:  sqlite3-devel >= 3.0.8
21 BuildRequires:  tk-devel
22 Requires:       checkpolicy
23 Requires:       policy-sources
24 Requires:       policycoreutils
25 Requires:       tk-BWidget
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 This package contains some tools and libraries for Security-enhanced
30 Linux (a project with enhanced security functionality designed to add
31 mandatory access controls to Linux). This package includes the
32 following utilities:
33 - apol: The GUI-based policy analysis tool.
34 - sepcut: A basic GUI-based policy configuration, browsing, editing,
35   and testing tool, intended to provide a complete, single user
36   interface for viewing the source files of a policy, configuring policy
37   program modules, editing policy files, and making and testing the
38   policy.
39 - seuser: A GUI and command line user manager tool for SELinux. This
40   is a tool that actually manages a portion of a running policy (i.e.,
41   user accounts).
42 - seuser scripts: A set of shell scripts: seuseradd, seusermod, and
43   seuserdel. These scripts combine the functions of the associated s*
44   commands with seuser to provide a single interface to manage users in
45   SE Linux.
46
47 And the following tool which can serve as building blocks for the
48 development of additional tools:
49 - awish: A version of the Tcl/Tk wish interpreter that includes the
50   setools libraries. It's used to test SELinux GUIs (apol and seuser
51   have the interpreter compiled within them). One could conceivably
52   write one's own GUI tools using Tcl/Tk as extended via awish.
53 - libapol: The main policy.conf analysis library, which is the core
54   library for all our tools.
55 - libseuser: The primary logic used for seuser.
56
57 %description -l pl
58 Ten pakiet zawiera narzêdzia i biblioteki dla Linuksa w wersji
59 Security-enhanced (jest to projekt z rozszerzon± funkcjonalno¶ci±
60 zwi±zan± z bezpieczeñstwem opracowan± w celu dodania mandatowej
61 kontroli dostêpu do Linuksa). Ten pakiet zawiera nastêpuj±ce
62 narzêdzia:
63 - apol - narzêdzie do analizy polityki z graficznym interfejsem.
64 - sepcut - podstawowe graficzne narzêdzie do konfiguracji,
65   przegl±dania, edycji i testowania polityki, maj±ce zapewniæ kompletny
66   interfejs do przegl±dania plików ¼ród³owych polityki, konfigurowania
67   modu³ów programu polityki, edycji plików polityki oraz tworzenia i
68   testowania polityki.
69 - seuser - graficzne oraz dzia³aj±ce z linii poleceñ narzêdzie do
70   zarz±dzania u¿ytkownikami dla SELinuksa. Jest to narzêdzie
71   zarz±dzaj±ce czê¶ci± funkcjonuj±cej polityki (czyli kontami
72   u¿ytkowników).
73 - skrypty seuser - zbiór skryptów pow³oki: seuseradd, seusermod oraz
74   seuserdel. £±cz± one funkcjonalno¶æ poleceñ s* z seuser, aby zapewniæ
75   pojedynczy interfejs do zarz±dzania u¿ytkownikami w SELinuksie.
76 - libapol - g³ówna biblioteka analizy policy.conf, która jest rdzeniem
77   wszystkich narzêdzi z setools.
78 - libseuser - podstawowa logika u¿ywana przez seuser.
79
80 Pakiet zawiera tak¿e narzêdzie mog±ce s³u¿yæ jako czê¶æ do budowania
81 innych narzêdzi - jest to awish, czyli wersja interpretera wish z
82 Tcl/Tk zawieraj±ca biblioteki setools. Jest u¿ywany do testowania GUI
83 dla SELinuksa (apol i seuser maj± interpreter wkompilowany). Mo¿na
84 pisaæ w³asne graficzne narzêdzia przy u¿yciu awisha.
85
86 %package devel
87 Summary:        Header files for setools libraries
88 Summary(pl):    Pliki nag³ówkowe bibliotek setools
89 Group:          Development/Libraries
90 Requires:       %{name} = %{version}-%{release}
91
92 %description devel
93 Header files for setools libraries: libapol, libseaudit, libsefs,
94 libseuser.
95
96 %description devel -l pl
97 Pliki nag³ówkowe bibliotek setools: libapol, libseaudit, libsefs,
98 libseuser.
99
100 %package static
101 Summary:        Static setools libraries
102 Summary(pl):    Statyczne bibliotek setools
103 Group:          Development/Libraries
104 Requires:       %{name}-devel = %{version}-%{release}
105
106 %description static
107 Static setools libraries.
108
109 %description static -l pl
110 Statyczne bibliotek setools.
111
112 %prep
113 %setup -q -n %{name}
114 %patch0 -p1
115
116 %build
117 %{__make} all \
118         DYNAMIC=1 \
119         CC="%{__cc}" \
120         OPT="%{rpmcflags}" \
121         TCL_LIBINC="" \
122         TCL_LIBS="-ltk -ltcl -lfl -lm -ldl"
123
124 %install
125 rm -rf $RPM_BUILD_ROOT
126 install -d $RPM_BUILD_ROOT%{_bindir}
127
128 %{__make} install \
129         DESTDIR=$RPM_BUILD_ROOT \
130         SHARED_LIB_INSTALL_DIR=$RPM_BUILD_ROOT%{_libdir}
131 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/docs
132
133 %clean
134 rm -rf $RPM_BUILD_ROOT
135
136 %post -p /sbin/ldconfig
137
138 %postun -p /sbin/ldconfig
139
140 %files
141 %defattr(644,root,root,755)
142 %doc KNOWN-BUGS README apol/*.txt seaudit/seaudit_help.txt
143 %attr(755,root,root) %{_bindir}/*
144 %attr(755,root,root) %{_sbindir}/*
145 %attr(755,root,root) %{_libdir}/lib*.so.*.*
146 %{_datadir}/%{name}-%{version}
147 %{_mandir}/man[18]/*
148
149 %files devel
150 %defattr(644,root,root,755)
151 %attr(755,root,root) %{_libdir}/lib*.so
152 %{_includedir}/*
153
154 %files static
155 %defattr(644,root,root,755)
156 %{_libdir}/lib*.a
This page took 0.044086 seconds and 3 git commands to generate.