2008-08-05 04:43:01 +02:00
|
|
|
#
|
2011-10-06 17:08:31 +02:00
|
|
|
# spec file for package libsepol
|
2008-08-05 04:43:01 +02:00
|
|
|
#
|
2013-01-08 11:50:49 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-08-05 04:43:01 +02:00
|
|
|
#
|
2008-08-22 19:30:05 +02:00
|
|
|
# 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.
|
|
|
|
|
2008-08-05 04:43:01 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libsepol
|
2013-04-02 13:49:49 +02:00
|
|
|
Version: 2.1.9
|
2012-07-25 13:17:16 +02:00
|
|
|
Release: 0
|
2008-08-05 04:43:01 +02:00
|
|
|
Url: http://www.nsa.gov/selinux/
|
|
|
|
Summary: SELinux binary policy manipulation library
|
2012-07-25 13:17:16 +02:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/Libraries
|
2013-04-05 09:46:46 +02:00
|
|
|
Source: http://pkgs.fedoraproject.org/lookaside/pkgs/libsepol/%{name}-%{version}.tgz
|
2010-02-11 19:03:52 +01:00
|
|
|
Source2: baselibs.conf
|
2012-10-25 17:13:21 +02:00
|
|
|
Patch: libsepol-2.1.4-role_fix_callback.patch
|
2013-04-02 13:49:49 +02:00
|
|
|
Patch2: libsepol-rhat.patch
|
2008-08-05 04:43:01 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-04-24 16:54:50 +02:00
|
|
|
BuildRequires: pkg-config
|
2008-08-05 04:43:01 +02:00
|
|
|
|
|
|
|
%description
|
2008-08-22 19:30:05 +02:00
|
|
|
Security-enhanced Linux is a feature of the Linux(R) kernel and a
|
|
|
|
number of utilities with enhanced security functionality designed to
|
|
|
|
add mandatory access controls to Linux. The Security-enhanced Linux
|
|
|
|
kernel contains new architectural components originally developed to
|
|
|
|
improve the security of the Flask operating system. These architectural
|
2008-08-05 04:43:01 +02:00
|
|
|
components provide general support for the enforcement of many kinds of
|
|
|
|
mandatory access control policies, including those based on the
|
2008-08-22 19:30:05 +02:00
|
|
|
concepts of Type Enforcement(R), Role-based Access Control, and
|
2008-08-05 04:43:01 +02:00
|
|
|
Multi-level Security.
|
|
|
|
|
|
|
|
libsepol provides an API for the manipulation of SELinux binary
|
|
|
|
policies. It is used by checkpolicy (the policy compiler) and similar
|
|
|
|
tools, as well as by programs like load_policy that need to perform
|
|
|
|
specific transformations on binary policies such as customizing policy
|
|
|
|
boolean settings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libsepol1
|
|
|
|
Summary: SELinux binary policy manipulation library
|
2012-07-25 13:17:16 +02:00
|
|
|
Group: System/Libraries
|
2008-08-05 04:43:01 +02:00
|
|
|
|
|
|
|
%description -n libsepol1
|
2008-08-22 19:30:05 +02:00
|
|
|
Security-enhanced Linux is a feature of the Linux(R) kernel and a
|
|
|
|
number of utilities with enhanced security functionality designed to
|
|
|
|
add mandatory access controls to Linux. The Security-enhanced Linux
|
|
|
|
kernel contains new architectural components originally developed to
|
|
|
|
improve the security of the Flask operating system. These architectural
|
2008-08-05 04:43:01 +02:00
|
|
|
components provide general support for the enforcement of many kinds of
|
|
|
|
mandatory access control policies, including those based on the
|
2008-08-22 19:30:05 +02:00
|
|
|
concepts of Type Enforcement(R), Role-based Access Control, and
|
2008-08-05 04:43:01 +02:00
|
|
|
Multi-level Security.
|
|
|
|
|
|
|
|
libsepol provides an API for the manipulation of SELinux binary
|
|
|
|
policies. It is used by checkpolicy (the policy compiler) and similar
|
|
|
|
tools, as well as by programs like load_policy that need to perform
|
|
|
|
specific transformations on binary policies such as customizing policy
|
|
|
|
boolean settings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development Include Files and Libraries for SELinux policy manipulation
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-07-25 13:17:16 +02:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libsepol1 = %{version}
|
|
|
|
Requires: pkg-config
|
2008-08-05 04:43:01 +02:00
|
|
|
|
|
|
|
%description devel
|
2009-06-29 14:15:10 +02:00
|
|
|
The libsepol-devel package contains the libraries and header
|
2008-08-05 04:43:01 +02:00
|
|
|
files needed for developing applications that manipulate binary
|
|
|
|
policies.
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-06-29 14:15:10 +02:00
|
|
|
%package devel-static
|
|
|
|
Summary: Development Include Files and Libraries for SELinux policy manipulation
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libsepol-devel = %{version}
|
|
|
|
|
|
|
|
%description devel-static
|
|
|
|
The libsepol-devel-static package contains the static libraries
|
|
|
|
needed for developing applications that manipulate binary
|
|
|
|
policies.
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-05 04:43:01 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-10-25 17:13:21 +02:00
|
|
|
%patch -p1
|
2013-04-02 13:49:49 +02:00
|
|
|
%patch2 -p2
|
2008-08-05 04:43:01 +02:00
|
|
|
|
|
|
|
%build
|
2013-04-02 13:49:49 +02:00
|
|
|
#make %{?_smp_mflags} CC="%{__cc}" CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
make %{?_smp_mflags} CC="%{__cc}" CFLAGS="-fmessage-length=0 -O0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g"
|
2008-08-05 04:43:01 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_lib}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_includedir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{3,8}
|
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" install
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/genpolbools
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/genpolusers
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/chkcon
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_mandir}/man8
|
|
|
|
|
|
|
|
%post -n libsepol1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libsepol1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libsepol1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/%{_lib}/libsepol.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libsepol.so
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%dir %{_includedir}/sepol
|
|
|
|
%{_includedir}/sepol/*.h
|
|
|
|
%dir %{_includedir}/sepol/policydb
|
|
|
|
%{_includedir}/sepol/policydb/*.h
|
2010-04-24 14:10:34 +02:00
|
|
|
%{_libdir}/pkgconfig/libsepol.pc
|
2008-08-05 04:43:01 +02:00
|
|
|
|
2009-06-29 14:15:10 +02:00
|
|
|
%files devel-static
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libsepol.a
|
|
|
|
|
2008-08-05 04:43:01 +02:00
|
|
|
%changelog
|