2008-08-05 04:42:57 +02:00
|
|
|
#
|
2011-02-23 11:02:51 +01:00
|
|
|
# spec file for package libsemanage
|
2008-08-05 04:42:57 +02:00
|
|
|
#
|
2011-02-23 11:02:51 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-08-05 04:42:57 +02:00
|
|
|
#
|
2008-09-02 12:29:51 +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:42:57 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-05-24 13:33:19 +02:00
|
|
|
|
2010-03-09 15:46:15 +01:00
|
|
|
%define libsepol_ver 2.0.37
|
2008-08-05 04:42:57 +02:00
|
|
|
%define libselinux_ver 2.0.0
|
2011-05-23 16:20:28 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
2008-08-05 04:42:57 +02:00
|
|
|
BuildRequires: libselinux-devel >= %{libselinux_ver}
|
|
|
|
BuildRequires: libsepol-devel >= %{libsepol_ver}
|
2011-09-22 13:24:33 +02:00
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
BuildRequires: libustr-devel
|
2008-08-05 04:42:57 +02:00
|
|
|
|
|
|
|
Name: libsemanage
|
2010-03-09 15:46:15 +01:00
|
|
|
Version: 2.0.43
|
2011-05-24 13:33:19 +02:00
|
|
|
Release: 13
|
2010-03-09 15:46:15 +01:00
|
|
|
License: LGPLv2.1
|
2008-08-05 04:42:57 +02:00
|
|
|
Summary: SELinux binary policy manipulation library
|
2011-05-23 16:20:28 +02:00
|
|
|
Url: http://www.nsa.gov/selinux/
|
|
|
|
Group: System/Libraries
|
2008-08-05 04:42:57 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2011-05-19 07:41:38 +02:00
|
|
|
Source1: baselibs.conf
|
2010-03-09 15:46:15 +01:00
|
|
|
Patch0: %{name}-rhat.patch
|
2008-08-05 04:42:57 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-10-23 01:18:07 +02:00
|
|
|
%define debug_package_requires libsemanage1 = %{version}-%{release}
|
2008-08-05 04:42:57 +02:00
|
|
|
|
|
|
|
%description
|
2010-03-09 15:46:15 +01:00
|
|
|
Security-enhanced Linux is a feature of the Linux kernel and a number
|
|
|
|
of utilities with enhanced security functionality designed to add
|
|
|
|
mandatory access controls to Linux. The Security-enhanced Linux
|
2008-09-02 12:29:51 +02:00
|
|
|
kernel contains new architectural components originally developed to
|
2010-03-09 15:46:15 +01:00
|
|
|
improve the security of the Flask operating system. These
|
|
|
|
architectural components provide general support for the enforcement
|
|
|
|
of many kinds of mandatory access control policies, including those
|
|
|
|
based on the concepts of Type Enforcement, Role-based Access
|
|
|
|
Control, and Multi-level Security.
|
2008-08-05 04:42:57 +02:00
|
|
|
|
2010-03-09 15:46:15 +01:00
|
|
|
libsemanage 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.
|
2008-08-05 04:42:57 +02:00
|
|
|
|
|
|
|
%package -n libsemanage1
|
2010-03-09 15:46:15 +01:00
|
|
|
License: LGPLv2.1
|
2008-08-05 04:42:57 +02:00
|
|
|
Summary: SELinux binary policy manipulation library
|
2011-05-23 16:20:28 +02:00
|
|
|
Group: System/Libraries
|
2008-08-05 04:42:57 +02:00
|
|
|
|
|
|
|
%description -n libsemanage1
|
2010-03-09 15:46:15 +01:00
|
|
|
Security-enhanced Linux is a feature of the Linux kernel and a
|
2008-09-02 12:29:51 +02:00
|
|
|
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:42:57 +02:00
|
|
|
components provide general support for the enforcement of many kinds of
|
|
|
|
mandatory access control policies, including those based on the
|
2010-03-09 15:46:15 +01:00
|
|
|
concepts of Type Enforcement, Role-based Access Control, and
|
2008-08-05 04:42:57 +02:00
|
|
|
Multi-level Security.
|
|
|
|
|
|
|
|
libsemanage 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
|
2010-03-09 15:46:15 +01:00
|
|
|
License: LGPLv2.1
|
|
|
|
Summary: Header files and libraries used to build policy manipulation tools
|
|
|
|
Group: Development/Libraries
|
2011-05-23 16:20:28 +02:00
|
|
|
Requires: libsemanage1 = %{version}
|
|
|
|
Requires: libustr-devel
|
2008-08-05 04:42:57 +02:00
|
|
|
|
|
|
|
%description devel
|
2010-03-09 15:46:15 +01:00
|
|
|
The semanage-devel package contains the libraries and header files
|
|
|
|
needed for developing applications that manipulate binary policies.
|
2008-08-05 04:42:57 +02:00
|
|
|
|
2010-03-09 15:46:15 +01:00
|
|
|
%package devel-static
|
|
|
|
License: LGPLv2.1
|
|
|
|
Summary: SELinux binary policy manipulation library
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: libsemanage-devel
|
2008-08-05 04:42:57 +02:00
|
|
|
|
2010-03-09 15:46:15 +01:00
|
|
|
%description devel-static
|
|
|
|
The semanage-static package contains the static libraries
|
|
|
|
needed for developing applications that manipulate binary policies.
|
2008-08-05 04:42:57 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
2010-03-09 15:46:15 +01:00
|
|
|
make clean
|
2011-10-06 17:08:24 +02:00
|
|
|
make -j1 CFLAGS="%{optflags}" CC="%{__cc}"
|
|
|
|
make -j1 CFLAGS="%{optflags}" LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" CC="%{__cc}" all
|
2008-08-05 04:42:57 +02:00
|
|
|
|
|
|
|
%install
|
2011-05-23 16:20:28 +02:00
|
|
|
mkdir -p %{buildroot}/%{_lib}
|
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
|
|
mkdir -p %{buildroot}%{_includedir}
|
|
|
|
make DESTDIR=%{buildroot} LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}/%{_lib}" install
|
|
|
|
ln -sf /%{_lib}/libsemanage.so.1 %{buildroot}/%{_libdir}/libsemanage.so
|
2008-08-05 04:42:57 +02:00
|
|
|
|
|
|
|
%clean
|
2011-05-23 16:20:28 +02:00
|
|
|
rm -rf %{buildroot}
|
2008-08-05 04:42:57 +02:00
|
|
|
|
|
|
|
%post -n libsemanage1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libsemanage1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libsemanage1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_sysconfdir}/selinux
|
|
|
|
%config(noreplace) %{_sysconfdir}/selinux/semanage.conf
|
|
|
|
/%{_lib}/libsemanage.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libsemanage.so
|
2010-03-09 15:46:15 +01:00
|
|
|
%{_libdir}/pkgconfig/libsemanage.pc
|
2008-08-05 04:42:57 +02:00
|
|
|
%dir %{_includedir}/semanage
|
|
|
|
%{_includedir}/semanage/*.h
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
2010-03-09 15:46:15 +01:00
|
|
|
%files devel-static
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libsemanage.a
|
|
|
|
|
2008-08-05 04:42:57 +02:00
|
|
|
%changelog
|