Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2
setools
setools.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File setools.spec of Package setools
# # spec file for package setools (Version 3.3.5) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %define dataversion 3.3 Name: setools Version: 3.3.5 Release: 3 Url: http://oss.tresys.com/projects/setools/ License: GPL v2 only Group: System/Base Summary: Policy analysis tools for SELinux Source: http://oss.tresys.com/projects/setools/chrome/site/dists/%{name}-%{version}/%{name}-%{version}.tar.bz2 Source1: setools.pam Source2: apol.desktop Source3: seaudit.desktop Source4: sediffx.desktop Patch0: %{name}-%{version}-javacflags.patch Patch1: %{name}-%{version}-nonvoid.patch Patch2: %{name}-%{version}-strcmp.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf automake bison flex pkgconfig BuildRequires: gcc gcc-c++ glibc-devel libstdc++-devel BuildRequires: libselinux-devel libsepol-devel-static BuildRequires: gtk2-devel libglade2-devel libxml2-devel sqlite3-devel BuildRequires: java-devel python-devel swig tcl-devel tk-devel BuildRequires: update-alternatives update-desktop-files Requires: setools-libs = %{version}-%{release} setools-libs-tcl = %{version}-%{release} setools-gui = %{version}-%{release} setools-console = %{version}-%{release} %description SETools is a collection of graphical tools, command-line tools, and libraries designed to facilitate SELinux policy analysis. This meta-package depends upon the main packages necessary to run SETools. %package libs License: LGPL v2 Summary: Policy analysis support libraries for SELinux Group: System Environment/Libraries %description libs SETools is a collection of graphical tools, command-line tools, and libraries designed to facilitate SELinux policy analysis. This package includes the following run-time 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 libsefs SELinux file contexts library %package java License: LGPL v2 Summary: Java bindings for SELinux policy analysis Group: Development/Languages Requires: java setools-libs = %{version} %description 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 libsefs SELinux file contexts library %package tcl License: LGPL v2 Summary: Tcl bindings for SELinux policy analysis Group: Development/Languages Requires: tcl setools-libs = %{version} %description tcl SETools is a collection of graphical tools, command-line tools, and libraries designed to facilitate SELinux policy analysis. This package includes Tcl 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 libsefs SELinux file contexts library %package devel License: LGPL v2 Summary: Policy analysis development files for SELinux Group: Development/Libraries Requires: libselinux-devel libsepol-devel setools-libs = %{version} %description devel SETools is a collection of graphical tools, command-line tools, and libraries designed to facilitate SELinux policy analysis. This package includes header files and archives 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 libsefs SELinux file contexts library %package console Summary: Policy analysis command-line tools for SELinux Group: System/Base License: GPL v2 only Requires: setools-libs = %{version} %description console SETools is a collection of graphical tools, command-line tools, and libraries designed to facilitate SELinux policy analysis. This package includes the following console tools: seaudit-report audit log analysis tool sechecker SELinux policy checking tool secmds command line tools: seinfo, sesearch, findcon, replcon, and indexcon sediff semantic policy difference tool %package gui License: GPL v2 only Summary: Policy analysis graphical tools for SELinux Group: System/Base Requires: tcl tk bwidget Requires: setools-libs = %{version} setools-tcl = %{version} Requires: glib2 gtk2 # Requires: usermode %description gui SETools is a collection of graphical tools, command-line tools, and libraries designed to facilitate SELinux policy analysis. This package includes the following graphical tools: apol policy analysis tool seaudit audit log analysis tool sediffx semantic policy difference tool %define setoolsdir %{_datadir}/setools-%{dataversion} %define tcllibdir %{_libdir}/setools %prep %setup -q %patch0 %patch1 %patch2 %build %configure \ --disable-bwidget-check \ --disable-selinux-check \ --disable-swig-python \ --enable-swig-java \ --enable-swig-tcl \ --with-java-prefix=%{java_home} \ --with-javac-flags="-source 1.5 -target 1.5" make %{?jobs:-j%jobs} %install make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/pam.d install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/seaudit # install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps # install -p -m 644 packages/rpm/seaudit.console $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/seaudit install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/applications install -p -m 644 apol/apol.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/apol.png install -p -m 644 seaudit/seaudit.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/seaudit.png install -p -m 644 sediff/sediffx.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/sediffx.png %suse_update_desktop_file -i apol System Security %suse_update_desktop_file -i seaudit System Security %suse_update_desktop_file -i sediffx System # replace absolute symlinks with relative symlinks ln -sf ../setools-%{dataversion}/qpol.jar $RPM_BUILD_ROOT/%{_javadir}/qpol.jar ln -sf ../setools-%{dataversion}/apol.jar $RPM_BUILD_ROOT/%{_javadir}/apol.jar ln -sf ../setools-%{dataversion}/poldiff.jar $RPM_BUILD_ROOT/%{_javadir}/poldiff.jar ln -sf ../setools-%{dataversion}/seaudit.jar $RPM_BUILD_ROOT/%{_javadir}/seaudit.jar ln -sf ../setools-%{dataversion}/sefs.jar $RPM_BUILD_ROOT/%{_javadir}/sefs.jar # remove static libs rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a # ensure permissions are correct chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so.* chmod 0755 $RPM_BUILD_ROOT%{_libdir}/%{name}/*/*.so.* # chmod 0755 $RPM_BUILD_ROOT%{py_sitedir}/*.so.* chmod 0755 $RPM_BUILD_ROOT%{_bindir}/* ln -sf consolehelper $RPM_BUILD_ROOT%{_bindir}/seaudit chmod 0755 $RPM_BUILD_ROOT%{_sbindir}/* chmod 0755 $RPM_BUILD_ROOT%{setoolsdir}/seaudit-report-service chmod 0644 $RPM_BUILD_ROOT%{tcllibdir}/*/pkgIndex.tcl %clean rm -rf $RPM_BUILD_ROOT %files libs %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING COPYING.GPL COPYING.LGPL KNOWN-BUGS NEWS README %{_libdir}/libapol.so.* %{_libdir}/libpoldiff.so.* %{_libdir}/libqpol.so.* %{_libdir}/libseaudit.so.* %{_libdir}/libsefs.so.* %dir %{setoolsdir} # %files -n python-setools # %defattr(-,root,root,-) # %{py_sitedir}/* %files java %defattr(-,root,root,-) %{_libdir}/libjapol.so.* %{_libdir}/libjpoldiff.so.* %{_libdir}/libjqpol.so.* %{_libdir}/libjseaudit.so.* %{_libdir}/libjsefs.so.* %{setoolsdir}/*.jar %{_javadir}/*.jar %files tcl %defattr(-,root,root,-) %dir %{tcllibdir} %{tcllibdir}/apol/ %{tcllibdir}/poldiff/ %{tcllibdir}/qpol/ %{tcllibdir}/seaudit/ %{tcllibdir}/sefs/ %files devel %defattr(-,root,root,-) %{_libdir}/*.so %{_libdir}/pkgconfig/* %{_includedir}/apol/ %{_includedir}/poldiff/ %{_includedir}/qpol/ %{_includedir}/seaudit/ %{_includedir}/sefs/ %files console %defattr(-,root,root,-) %{_bindir}/findcon %{_bindir}/indexcon %{_bindir}/replcon %{_bindir}/seaudit-report %{_bindir}/sechecker %{_bindir}/sediff %{_bindir}/seinfo %{_bindir}/sesearch %{setoolsdir}/sechecker-profiles/ %{setoolsdir}/sechecker_help.txt %{setoolsdir}/seaudit-report-service %{setoolsdir}/seaudit-report.conf %{setoolsdir}/seaudit-report.css %{_mandir}/man1/findcon.1.gz %{_mandir}/man1/indexcon.1.gz %{_mandir}/man1/replcon.1.gz %{_mandir}/man1/sechecker.1.gz %{_mandir}/man1/sediff.1.gz %{_mandir}/man1/seinfo.1.gz %{_mandir}/man1/sesearch.1.gz %{_mandir}/man8/seaudit-report.8.gz %files gui %defattr(-,root,root,-) %{_bindir}/apol %{_bindir}/seaudit %{_bindir}/sediffx %dir %{tcllibdir} %{tcllibdir}/apol_tcl/ %{setoolsdir}/apol_help.txt %{setoolsdir}/apol_perm_mapping_* %{setoolsdir}/domaintrans_help.txt %{setoolsdir}/file_relabel_help.txt %{setoolsdir}/infoflow_help.txt %{setoolsdir}/seaudit_help.txt %{setoolsdir}/sediff_help.txt %{setoolsdir}/types_relation_help.txt %{setoolsdir}/*.glade %{setoolsdir}/*.png %{setoolsdir}/apol.gif %{setoolsdir}/dot_seaudit %{_mandir}/man1/apol.1.gz %{_mandir}/man1/sediffx.1.gz %{_mandir}/man8/seaudit.8.gz %{_sbindir}/seaudit %config(noreplace) %{_sysconfdir}/pam.d/seaudit # %config(noreplace) %{_sysconfdir}/security/console.apps/seaudit %{_datadir}/applications/* %attr(0644,root,root) %{_datadir}/pixmaps/*.png %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %post java -p /sbin/ldconfig %postun java -p /sbin/ldconfig %post tcl -p /sbin/ldconfig %postun tcl -p /sbin/ldconfig %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor