]> git.pld-linux.org Git - packages/setools.git/blob - setools.spec
- pass SHARED_LIB_INSTALL_DIR (for lib64 support)
[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.0
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://www.tresys.com/Downloads/selinux-tools/%{name}-%{version}.tar.bz2
11 # Source0-md5:  3f03b184d1e50735bba6084212abcf74
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:  sqlite3-devel >= 3.0.8
20 BuildRequires:  tk-devel
21 Requires:       checkpolicy
22 Requires:       policy-sources
23 Requires:       policycoreutils
24 Requires:       tk-BWidget
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 This package contains some tools and libraries for Security-enhanced
29 Linux (a project with enhanced security functionality designed to add
30 mandatory access controls to Linux). This package includes the
31 following utilities:
32 - apol: The GUI-based policy analysis tool.
33 - sepcut: A basic GUI-based policy configuration, browsing, editing,
34   and testing tool, intended to provide a complete, single user
35   interface for viewing the source files of a policy, configuring
36   policy program modules, editing policy files, and making and testing
37   the policy.
38 - seuser: A GUI and command line user manager tool for SELinux. This
39   is a tool that actually manages a portion of a running policy (i.e.,
40   user accounts).
41 - seuser scripts: A set of shell scripts: seuseradd, seusermod, and
42   seuserdel. These scripts combine the functions of the associated s*
43   commands with seuser to provide a single interface to manage users
44   in SE Linux.
45
46 And the following tool which can serve as building blocks for the
47 development of additional tools:
48 - awish: A version of the Tcl/Tk wish interpreter that includes the
49   setools libraries. It's used to test SELinux GUIs (apol and seuser
50   have the interpreter compiled within them). One could conceivably
51   write one's own GUI tools using Tcl/Tk as extended via awish.
52 - libapol: The main policy.conf analysis library, which is the core
53   library for all our tools.
54 - libseuser: The primary logic used for seuser.
55
56 %description -l pl
57 Ten pakiet zawiera narzêdzia i biblioteki dla Linuksa w wersji
58 Security-enhanced (jest to projekt z rozszerzon± funkcjonalno¶ci±
59 zwi±zan± z bezpieczeñstwem opracowan± w celu dodania mandatowej
60 kontroli dostêpu do Linuksa). Ten pakiet zawiera nastêpuj±ce
61 narzêdzia:
62 - apol - narzêdzie do analizy polityki z graficznym interfejsem.
63 - sepcut - podstawowe graficzne narzêdzie do konfiguracji,
64   przegl±dania, edycji i testowania polityki, maj±ce zapewniæ
65   kompletny interfejs do przegl±dania plików ¼ród³owych polityki,
66   konfigurowania modu³ów programu polityki, edycji plików polityki
67   oraz tworzenia i testowania polityki.
68 - seuser - graficzne oraz dzia³aj±ce z linii poleceñ narzêdzie do
69   zarz±dzania u¿ytkownikami dla SELinuksa. Jest to narzêdzie
70   zarz±dzaj±ce czê¶ci± funkcjonuj±cej polityki (czyli kontami
71   u¿ytkowników).
72 - skrypty seuser - zbiór skryptów pow³oki: seuseradd, seusermod oraz
73   seuserdel. £±cz± one funkcjonalno¶æ poleceñ s* z seuser, aby
74   zapewniæ pojedynczy interfejs do zarz±dzania u¿ytkownikami w
75   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
83 GUI dla SELinuksa (apol i seuser maj± interpreter wkompilowany).
84 Mo¿na 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
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
132 %clean
133 rm -rf $RPM_BUILD_ROOT
134
135 %files
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_bindir}/*
138 %attr(755,root,root) %{_libdir}/lib*.so.*.*
139 %{_datadir}/setools
140
141 %files devel
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_libdir}/lib*.so
144 %{_includedir}/setools
145
146 %files static
147 %defattr(644,root,root,755)
148 %{_libdir}/lib*.a
This page took 0.062723 seconds and 4 git commands to generate.