- Move to Tresys spec file

This commit is contained in:
Daniel J Walsh 2007-07-20 15:16:24 +00:00
parent 74fd4a6212
commit 933ef7d317
4 changed files with 282 additions and 108 deletions

View File

@ -7,6 +7,6 @@ Exec=/usr/bin/apol
Type=Application
Terminal=false
Encoding=UTF-8
Categories=Application;SystemSetup;X-Red-Hat-Base;
Categories=Application;System;X-Red-Hat-Base;
X-Desktop-File-Install-Version=0.2
StartupNotify=true

View File

@ -7,6 +7,6 @@ Exec=/usr/bin/seaudit
Type=Application
Terminal=false
Encoding=UTF-8
Categories=Application;SystemSetup;X-Red-Hat-Base;
Categories=Application;System;X-Red-Hat-Base;
X-Desktop-File-Install-Version=0.2
StartupNotify=true

View File

@ -6,7 +6,7 @@ Exec=/usr/bin/sediffx
Type=Application
Terminal=false
Encoding=UTF-8
Categories=Application;SystemSetup;X-Red-Hat-Base;
Categories=Application;System;X-Red-Hat-Base;
X-Desktop-File-Install-Version=0.2
StartupNotify=true
Icon=sediffx.png

View File

@ -1,49 +1,42 @@
Name: setools
Version: 3.2
Release: 2
Release: 3
License: GPL
URL: http://oss.tresys.com/projects/setools
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Source: setools-%{version}.tar.bz2
AutoReqProv: no
Summary: Policy analysis tools for SELinux.
Summary: Policy analysis tools for SELinux
Group: System Environment/Base
Requires: setools-libs = %{version} setools-gui = %{version} setools-console = %{version}
# disable auto dependency generation because they are explicitly listed
%define __find_requires %{nil}
%define libqpol_ver 1.2
%define libapol_ver 4.0
%define libpoldiff_ver 1.2
%define libsefs_ver 3.1
%define libseaudit_ver 4.1
%description
SETools is a collection of graphical tools, command-line tools, and
libraries designed to facilitate SELinux policy analysis. The
following are included:
libraries designed to facilitate SELinux policy analysis.
apol Tcl/Tk-based policy analysis tool
awish customized wish interpreter
libapol policy analysis library
libapol-tcl bindings between apol and libapol
libpoldiff semantic policy difference library
libqpol library that abstracts policy internals
libseaudit parse and filter SELinux audit messages in log files
libsefs SELinux filesystem database library
seaudit audit log analysis tools: seaudit and seaudit-report
sechecker SELinux policy checking tool
secmds command line tools: seinfo, sesearch, findcon,
replcon, indexcon, and searchcon
sediff semantic policy difference tools: sediff and sediffx
This meta-package depends upon the main packages necessary to run
SETools.
%package libs
License: LGPL
Summary: Policy analysis support libraries for SELinux.
Summary: Policy analysis support libraries for SELinux
Group: System Environment/Libraries
Requires: libselinux >= 1.30 libsepol >= 1.12.27 libxml2
Provides: libqpol = 1.1 libapol = 3.1 libpoldiff = 1.1 libsefs = 3.0.2 libseaudit = 4.0.0
BuildPrereq: flex, bison, pkgconfig
Provides: libqpol = %{libqpol_ver} libapol = %{libapol_ver} libpoldiff = %{libpoldiff_ver} libsefs = %{libsefs_ver} libseaudit = %{libseaudit_ver}
BuildRequires: flex, bison, pkgconfig
BuildRequires: libselinux-devel >= 1.30 libsepol-devel >= 1.12.27 libxml2-devel
BuildRequires: tk-devel >= 8.4.9 tcl-devel >= 8.4.9
BuildRequires: gtk2-devel >= 2.4 libglade2-devel libxml2-devel
Prereq: /sbin/ldconfig
Conflicts: setools
BuildRequires: gtk2-devel >= 2.8 libglade2-devel libxml2-devel
BuildRequires: autoconf >= 2.59 automake
%description libs
SETools is a collection of graphical tools, command-line tools, and
@ -57,11 +50,49 @@ This package includes the following run-time libraries:
libseaudit parse and filter SELinux audit messages in log files
libsefs SELinux filesystem database library
%package libs-python
License: LGPL
Summary: Python bindings for SELinux policy analysis
Group: Development/Languages
Requires: setools-libs = %{version} python2 >= 2.3
Provides: libqpol-python = %{libqpol_ver} libapol-python = %{libapol_ver} libpoldiff-python = %{libpoldiff_ver} libseaudit-python = %{libseaudit_ver}
BuildRequires: python2-devel >= 2.3 swig >= 1.3.28
%description libs-python
SETools is a collection of graphical tools, command-line tools, and
libraries designed to facilitate SELinux policy analysis.
This package includes Python bindings for the following libraries:
libapol policy analysis library
libpoldiff semantic policy difference library
libqpol library that abstracts policy internals
libseaudit parse and filter SELinux audit messages in log files
%package libs-java
License: LGPL
Summary: Java bindings for SELinux policy analysis
Group: Development/Languages
Requires: setools-libs = %{version} java >= 1.2
Provides: libqpol-java = %{libqpol_ver} libapol-java = %{libapol_ver} libpoldiff-java = %{libpoldiff_ver} libseaudit-java = %{libseaudit_ver}
BuildRequires: java-devel >= 1.2 swig >= 1.3.28
%description libs-java
SETools is a collection of graphical tools, command-line tools, and
libraries designed to facilitate SELinux policy analysis.
This package includes Java bindings for the following libraries:
libapol policy analysis library
libpoldiff semantic policy difference library
libqpol library that abstracts policy internals
libseaudit parse and filter SELinux audit messages in log files
%package devel
Summary: Policy analysis development files for SELinux.
Group: System Environment/Libraries
Requires: libselinux-devel >= 1.30 libsepol-devel >= 1.12.27 libxml2-devel
Requires: %{name} = %{version}-%{release} sqlite-devel
License: LGPL
Summary: Policy analysis development files for SELinux
Group: Development/Libraries
Requires: libselinux-devel >= 1.30 libsepol-devel >= 1.12.27 libxml2-devel setools-libs = %{version}
%description devel
SETools is a collection of graphical tools, command-line tools, and
@ -70,6 +101,7 @@ libraries designed to facilitate SELinux policy analysis.
This package includes header files and archives for the following
libraries:
awish customized wish interpreter for apol development
libapol policy analysis library
libapol-tcl bindings between apol and libapol
libpoldiff semantic policy difference library
@ -79,9 +111,9 @@ libraries:
%package console
AutoReqProv: no
Summary: Policy analysis command-line tools for SELinux.
Summary: Policy analysis command-line tools for SELinux
Group: System Environment/Base
Requires: libqpol >= 1.1 libapol >= 3.1 libpoldiff >= 1.1 libsefs >= 3.0 libseaudit >= 4.0
Requires: libqpol >= 1.1 libapol >= 4.0 libpoldiff >= 1.2 libsefs >= 3.1 libseaudit >= 4.0
Requires: libselinux >= 1.30
%description console
@ -98,12 +130,11 @@ This package includes the following console tools:
%package gui
AutoReqProv: no
Summary: Policy analysis graphical tools for SELinux.
Summary: Policy analysis graphical tools for SELinux
Group: System Environment/Base
Requires: libqpol >= 1.1 libapol >= 3.1 libpoldiff >= 1.1 libsefs >= 3.0 libseaudit >= 4.0
Requires: libqpol >= 1.1 libapol >= 4.0 libpoldiff >= 1.2 libsefs >= 3.0 libseaudit >= 4.1
Requires: tcl >= 8.4.9 tk >= 8.4.9 bwidget >= 1.8
Requires: glib >= 1.2 gtk2 >= 2.4 gdk-pixbuf libxml2 libglade2
Requires: %{name} = %{version}-%{release}
Requires: glib2 gtk2 >= 2.8 usermode
%description gui
SETools is a collection of graphical tools, command-line tools, and
@ -112,21 +143,24 @@ libraries designed to facilitate SELinux policy analysis.
This package includes the following graphical tools:
apol Tcl/Tk-based policy analysis tool
awish customized wish interpreter
seaudit audit log analysis tool
sediffx semantic policy difference tool
%define setoolsdir %{_datadir}/setools-%{version}
%define pkgpyexecdir %{_libdir}/python?.?/site-packages/setools
%define pkgpythondir %{_exec_prefix}/lib*/python?.?/site-packages/setools
%define javalibdir %{_libdir}/setools
%prep
%setup -q
%build
%configure --disable-bwidget-check --disable-selinux-check
make
%configure --disable-bwidget-check --disable-selinux-check --enable-swig-python --enable-swig-java
make %{?_smp_mflags}
%install
rm -rf ${RPM_BUILD_ROOT}
%makeinstall
rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib*so
make DESTDIR=${RPM_BUILD_ROOT} install
mkdir -p ${RPM_BUILD_ROOT}/usr/share/pixmaps
install -d -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d
install -m 644 packages/rpm/seaudit.pam ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/seaudit
@ -145,36 +179,176 @@ ln -sf consolehelper seaudit
%clean
rm -rf ${RPM_BUILD_ROOT}
%files libs
%defattr(-,root,root)
%{_libdir}/libqpol.so.*
%{_libdir}/libapol.so.*
%{_libdir}/libpoldiff.so.*
%{_libdir}/libsefs.so.*
%{_libdir}/libseaudit.so.*
%{_datadir}/setools-%{version}/seaudit-report.conf
%{_datadir}/setools-%{version}/seaudit-report.css
%files
%doc AUTHORS ChangeLog COPYING COPYING.GPL COPYING.LGPL KNOWN-BUGS NEWS README
%files libs
%defattr(755,root,root)
%{_libdir}/libqpol.so.%{libqpol_ver}
%{_libdir}/libqpol.so.1
%{_libdir}/libapol.so.%{libapol_ver}
%{_libdir}/libapol.so.4
%{_libdir}/libpoldiff.so.%{libpoldiff_ver}
%{_libdir}/libpoldiff.so.1
%{_libdir}/libsefs.so.%{libsefs_ver}
%{_libdir}/libsefs.so.3
%{_libdir}/libseaudit.so.%{libseaudit_ver}
%{_libdir}/libseaudit.so.4
%defattr(-, root, root)
%{setoolsdir}/seaudit-report.conf
%{setoolsdir}/seaudit-report.css
%files libs-python
%defattr(-,root,root)
%{pkgpythondir}/__init__.py
%{pkgpythondir}/__init__.pyc
%{pkgpythondir}/__init__.pyo
%{pkgpythondir}/qpol.py
%{pkgpythondir}/qpol.pyc
%{pkgpythondir}/qpol.pyo
%{pkgpyexecdir}/_qpol.so.%{libqpol_ver}
%{pkgpyexecdir}/_qpol.so.1
%attr(755,root,root) %{pkgpyexecdir}/_qpol.so
%{pkgpythondir}/apol.py
%{pkgpythondir}/apol.pyc
%{pkgpythondir}/apol.pyo
%{pkgpyexecdir}/_apol.so.%{libapol_ver}
%{pkgpyexecdir}/_apol.so.4
%attr(755,root,root) %{pkgpyexecdir}/_apol.so
%{pkgpythondir}/poldiff.py
%{pkgpythondir}/poldiff.pyc
%{pkgpythondir}/poldiff.pyo
%{pkgpyexecdir}/_poldiff.so.%{libpoldiff_ver}
%{pkgpyexecdir}/_poldiff.so.1
%attr(755,root,root) %{pkgpyexecdir}/_poldiff.so
%{pkgpythondir}/seaudit.py
%{pkgpythondir}/seaudit.pyc
%{pkgpythondir}/seaudit.pyo
%{pkgpyexecdir}/_seaudit.so.%{libseaudit_ver}
%{pkgpyexecdir}/_seaudit.so.4
%attr(755,root,root) %{pkgpyexecdir}/_seaudit.so
%files libs-java
%defattr(-,root,root)
%{_libdir}/libjqpol.so.%{libqpol_ver}
%{_libdir}/libjqpol.so.1
%{_libdir}/libjqpol.so
%{_libdir}/libjapol.so.%{libapol_ver}
%{_libdir}/libjapol.so.4
%{_libdir}/libjapol.so
%{_libdir}/libjpoldiff.so.%{libpoldiff_ver}
%{_libdir}/libjpoldiff.so.1
%{_libdir}/libjpoldiff.so
%{_libdir}/libjseaudit.so.%{libseaudit_ver}
%{_libdir}/libjseaudit.so.4
%{_libdir}/libjseaudit.so
%{javalibdir}/qpol.jar
%{javalibdir}/apol.jar
%{javalibdir}/poldiff.jar
%{javalibdir}/seaudit.jar
%files devel
%defattr(-,root,root)
%{_bindir}/awish
%{_libdir}/libqpol.a
%{_libdir}/libqpol.so
%{_libdir}/libapol.so
%{_libdir}/libapol.a
%{_libdir}/libpoldiff.a
%{_libdir}/libpoldiff.so
%{_libdir}/libsefs.a
%{_libdir}/libsefs.so
%{_libdir}/libseaudit.a
%{_libdir}/libseaudit.so
%{_libdir}/libapol-tcl.a
%dir %{_includedir}/qpol
%{_includedir}/qpol/*.h
%dir %{_includedir}/apol
%{_includedir}/apol/*.h
%dir %{_includedir}/poldiff
%{_includedir}/poldiff/*.h
%dir %{_includedir}/sefs
%{_includedir}/sefs/*.h
%dir %{_includedir}/seaudit
%{_includedir}/seaudit/*.h
%{_includedir}/qpol/avrule_query.h
%{_includedir}/qpol/bool_query.h
%{_includedir}/qpol/class_perm_query.h
%{_includedir}/qpol/cond_query.h
%{_includedir}/qpol/constraint_query.h
%{_includedir}/qpol/context_query.h
%{_includedir}/qpol/fs_use_query.h
%{_includedir}/qpol/genfscon_query.h
%{_includedir}/qpol/isid_query.h
%{_includedir}/qpol/iterator.h
%{_includedir}/qpol/mls_query.h
%{_includedir}/qpol/mlsrule_query.h
%{_includedir}/qpol/module.h
%{_includedir}/qpol/netifcon_query.h
%{_includedir}/qpol/nodecon_query.h
%{_includedir}/qpol/policy.h
%{_includedir}/qpol/policy_extend.h
%{_includedir}/qpol/portcon_query.h
%{_includedir}/qpol/rbacrule_query.h
%{_includedir}/qpol/role_query.h
%{_includedir}/qpol/syn_rule_query.h
%{_includedir}/qpol/terule_query.h
%{_includedir}/qpol/type_query.h
%{_includedir}/qpol/user_query.h
%{_includedir}/qpol/util.h
%{_includedir}/apol/avl-util.h
%{_includedir}/apol/avrule-query.h
%{_includedir}/apol/bool-query.h
%{_includedir}/apol/bst.h
%{_includedir}/apol/class-perm-query.h
%{_includedir}/apol/condrule-query.h
%{_includedir}/apol/constraint-query.h
%{_includedir}/apol/context-query.h
%{_includedir}/apol/domain-trans-analysis.h
%{_includedir}/apol/fscon-query.h
%{_includedir}/apol/infoflow-analysis.h
%{_includedir}/apol/isid-query.h
%{_includedir}/apol/mls-query.h
%{_includedir}/apol/netcon-query.h
%{_includedir}/apol/perm-map.h
%{_includedir}/apol/policy.h
%{_includedir}/apol/policy-path.h
%{_includedir}/apol/policy-query.h
%{_includedir}/apol/range_trans-query.h
%{_includedir}/apol/rbacrule-query.h
%{_includedir}/apol/relabel-analysis.h
%{_includedir}/apol/render.h
%{_includedir}/apol/role-query.h
%{_includedir}/apol/terule-query.h
%{_includedir}/apol/type-query.h
%{_includedir}/apol/types-relation-analysis.h
%{_includedir}/apol/user-query.h
%{_includedir}/apol/util.h
%{_includedir}/apol/vector.h
%{_includedir}/poldiff/poldiff.h
%{_includedir}/poldiff/attrib_diff.h
%{_includedir}/poldiff/avrule_diff.h
%{_includedir}/poldiff/bool_diff.h
%{_includedir}/poldiff/cat_diff.h
%{_includedir}/poldiff/class_diff.h
%{_includedir}/poldiff/level_diff.h
%{_includedir}/poldiff/range_diff.h
%{_includedir}/poldiff/range_trans_diff.h
%{_includedir}/poldiff/rbac_diff.h
%{_includedir}/poldiff/role_diff.h
%{_includedir}/poldiff/terule_diff.h
%{_includedir}/poldiff/user_diff.h
%{_includedir}/poldiff/type_diff.h
%{_includedir}/poldiff/type_map.h
%{_includedir}/poldiff/util.h
%{_includedir}/sefs/file_contexts.h
%{_includedir}/sefs/fsdata.h
%{_includedir}/sefs/fshash.h
%{_includedir}/sefs/util.h
%{_includedir}/seaudit/avc_message.h
%{_includedir}/seaudit/bool_message.h
%{_includedir}/seaudit/filter.h
%{_includedir}/seaudit/load_message.h
%{_includedir}/seaudit/log.h
%{_includedir}/seaudit/message.h
%{_includedir}/seaudit/model.h
%{_includedir}/seaudit/parse.h
%{_includedir}/seaudit/report.h
%{_includedir}/seaudit/sort.h
%{_includedir}/seaudit/util.h
%files console
%defattr(-,root,root)
%{_bindir}/seinfo
%{_bindir}/sesearch
%{_bindir}/indexcon
@ -184,12 +358,12 @@ rm -rf ${RPM_BUILD_ROOT}
%{_bindir}/sechecker
%{_bindir}/sediff
%{_bindir}/seaudit-report
%{_datadir}/setools-%{version}/sechecker-profiles/all-checks.sechecker
%{_datadir}/setools-%{version}/sechecker-profiles/analysis-checks.sechecker
%{_datadir}/setools-%{version}/sechecker-profiles/devel-checks.sechecker
%{_datadir}/setools-%{version}/sechecker-profiles/sechecker.dtd
%{_datadir}/setools-%{version}/sechecker_help.txt
%{_datadir}/setools-%{version}/seaudit-report-service
%{setoolsdir}/sechecker-profiles/all-checks.sechecker
%{setoolsdir}/sechecker-profiles/analysis-checks.sechecker
%{setoolsdir}/sechecker-profiles/devel-checks.sechecker
%{setoolsdir}/sechecker-profiles/sechecker.dtd
%{setoolsdir}/sechecker_help.txt
%{setoolsdir}/seaudit-report-service
%{_mandir}/man1/findcon.1.gz
%{_mandir}/man1/indexcon.1.gz
%{_mandir}/man1/replcon.1.gz
@ -201,34 +375,34 @@ rm -rf ${RPM_BUILD_ROOT}
%{_mandir}/man8/seaudit-report.8.gz
%files gui
%defattr(-,root,root)
%{_bindir}/seaudit
%{_bindir}/sediffx
%{_bindir}/apol
%{_bindir}/awish
%{_datadir}/setools-%{version}/sediff_help.txt
%{_datadir}/setools-%{version}/sediffx.glade
%{_datadir}/setools-%{version}/sediffx.png
%{_datadir}/setools-%{version}/sediffx-small.png
%{_datadir}/setools-%{version}/apol_help.txt
%{_datadir}/setools-%{version}/domaintrans_help.txt
%{_datadir}/setools-%{version}/file_relabel_help.txt
%{_datadir}/setools-%{version}/infoflow_help.txt
%{_datadir}/setools-%{version}/types_relation_help.txt
%{_datadir}/setools-%{version}/apol_perm_mapping_ver12
%{_datadir}/setools-%{version}/apol_perm_mapping_ver15
%{_datadir}/setools-%{version}/apol_perm_mapping_ver16
%{_datadir}/setools-%{version}/apol_perm_mapping_ver17
%{_datadir}/setools-%{version}/apol_perm_mapping_ver18
%{_datadir}/setools-%{version}/apol_perm_mapping_ver19
%{_datadir}/setools-%{version}/apol_perm_mapping_ver20
%{_datadir}/setools-%{version}/apol_perm_mapping_ver21
%{_datadir}/setools-%{version}/apol.gif
%{_datadir}/setools-%{version}/apol.tcl
%{_datadir}/setools-%{version}/seaudit.glade
%{_datadir}/setools-%{version}/seaudit_help.txt
%{_datadir}/setools-%{version}/seaudit.png
%{_datadir}/setools-%{version}/seaudit-small.png
%{_datadir}/setools-%{version}/dot_seaudit
%{setoolsdir}/sediff_help.txt
%{setoolsdir}/sediffx.glade
%{setoolsdir}/sediffx.png
%{setoolsdir}/sediffx-small.png
%{setoolsdir}/apol_help.txt
%{setoolsdir}/domaintrans_help.txt
%{setoolsdir}/file_relabel_help.txt
%{setoolsdir}/infoflow_help.txt
%{setoolsdir}/types_relation_help.txt
%{setoolsdir}/apol_perm_mapping_ver12
%{setoolsdir}/apol_perm_mapping_ver15
%{setoolsdir}/apol_perm_mapping_ver16
%{setoolsdir}/apol_perm_mapping_ver17
%{setoolsdir}/apol_perm_mapping_ver18
%{setoolsdir}/apol_perm_mapping_ver19
%{setoolsdir}/apol_perm_mapping_ver20
%{setoolsdir}/apol_perm_mapping_ver21
%{setoolsdir}/apol.gif
%{setoolsdir}/apol.tcl
%{setoolsdir}/seaudit.glade
%{setoolsdir}/seaudit_help.txt
%{setoolsdir}/seaudit.png
%{setoolsdir}/seaudit-small.png
%{setoolsdir}/dot_seaudit
%{_mandir}/man1/apol.1.gz
%{_mandir}/man1/sediffx.1.gz
%{_mandir}/man8/seaudit.8.gz
@ -243,33 +417,33 @@ rm -rf ${RPM_BUILD_ROOT}
%attr(0644,root,root) /usr/share/pixmaps/seaudit.png
%attr(0644,root,root) /usr/share/pixmaps/sediffx.png
%post libs
/sbin/ldconfig
%post libs-java -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%postun libs-java -p /sbin/ldconfig
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%changelog
* Fri Jul 20 2007 Dan Walsh <dwalsh@redhat.com> 3.2-3
- Move to Tresys spec file
* Wed Jun 13 2007 Dan Walsh <dwalsh@redhat.com> 3.2-2
- Bump for rebuild
* Mon Apr 30 2007 Dan Walsh <dwalsh@redhat.com> 3.2-1
- Start shipping the rest of the setools command line apps
* Tue Feb 20 2007 Dan Walsh <dwalsh@redhat.com> 3.1-3
- Fix conflict with tcl/init.tcl
* Wed Apr 25 2007 Jason Tang <jtang@tresys.com> 3.2-0
- update to SETools 3.2 release
* Wed Feb 14 2007 Dan Walsh <dwalsh@redhat.com> 3.1-2
- Fix permissions on shared libraries
* Tue Feb 13 2007 Dan Walsh <dwalsh@redhat.com> 3.1-1
- Upgrade to upstream
* Thu Feb 1 2007 Dan Walsh <dwalsh@redhat.com> 3.0-3
- Rebuild with newer libtk
* Wed Dec 13 2006 Adam Jackson <ajax@redhat.com> 3.0-2
- Rebuild with dist tag, fixes 6 to 7 upgrades.
* Mon Feb 02 2007 Jason Tang <jtang@tresys.com> 3.1-1
- update to SETools 3.1 release
* Mon Oct 30 2006 Dan Walsh <dwalsh@redhat.com> 3.0-2.fc6
- bump for fc6
* Thu Oct 26 2006 Dan Walsh <dwalsh@redhat.com> 3.0-2
- Build on rawhide