forked from pool/libsemanage
- split off python bindings to separate package to reduce build
dependencies for rpm [bnc#695436] OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=18
This commit is contained in:
parent
e4d829a3e6
commit
6d7c006f61
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 23 14:15:42 UTC 2011 - prusnak@opensuse.org
|
||||||
|
|
||||||
|
- split off python bindings to separate package to reduce build
|
||||||
|
dependencies for rpm [bnc#695436]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 18 13:38:44 UTC 2011 - coolo@novell.com
|
Wed May 18 13:38:44 UTC 2011 - coolo@novell.com
|
||||||
|
|
||||||
|
@ -15,21 +15,21 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
%define libsepol_ver 2.0.37
|
%define libsepol_ver 2.0.37
|
||||||
%define libselinux_ver 2.0.0
|
%define libselinux_ver 2.0.0
|
||||||
BuildRequires: bison flex libustr-devel python-devel swig
|
BuildRequires: bison
|
||||||
|
BuildRequires: flex
|
||||||
BuildRequires: libselinux-devel >= %{libselinux_ver}
|
BuildRequires: libselinux-devel >= %{libselinux_ver}
|
||||||
BuildRequires: libsepol-devel >= %{libsepol_ver}
|
BuildRequires: libsepol-devel >= %{libsepol_ver}
|
||||||
|
BuildRequires: libustr-devel
|
||||||
|
|
||||||
Name: libsemanage
|
Name: libsemanage
|
||||||
Version: 2.0.43
|
Version: 2.0.43
|
||||||
Release: 10
|
Release: 10
|
||||||
Url: http://www.nsa.gov/selinux/
|
|
||||||
License: LGPLv2.1
|
License: LGPLv2.1
|
||||||
Group: System/Libraries
|
|
||||||
Summary: SELinux binary policy manipulation library
|
Summary: SELinux binary policy manipulation library
|
||||||
|
Url: http://www.nsa.gov/selinux/
|
||||||
|
Group: System/Libraries
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
Patch0: %{name}-rhat.patch
|
Patch0: %{name}-rhat.patch
|
||||||
@ -54,8 +54,8 @@ on binary policies such as customizing policy boolean settings.
|
|||||||
|
|
||||||
%package -n libsemanage1
|
%package -n libsemanage1
|
||||||
License: LGPLv2.1
|
License: LGPLv2.1
|
||||||
Group: System/Libraries
|
|
||||||
Summary: SELinux binary policy manipulation library
|
Summary: SELinux binary policy manipulation library
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libsemanage1
|
%description -n libsemanage1
|
||||||
Security-enhanced Linux is a feature of the Linux kernel and a
|
Security-enhanced Linux is a feature of the Linux kernel and a
|
||||||
@ -78,7 +78,8 @@ boolean settings.
|
|||||||
License: LGPLv2.1
|
License: LGPLv2.1
|
||||||
Summary: Header files and libraries used to build policy manipulation tools
|
Summary: Header files and libraries used to build policy manipulation tools
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: libsemanage1 = %{version} libustr-devel
|
Requires: libsemanage1 = %{version}
|
||||||
|
Requires: libustr-devel
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The semanage-devel package contains the libraries and header files
|
The semanage-devel package contains the libraries and header files
|
||||||
@ -94,35 +95,24 @@ Requires: libsemanage-devel
|
|||||||
The semanage-static package contains the static libraries
|
The semanage-static package contains the static libraries
|
||||||
needed for developing applications that manipulate binary policies.
|
needed for developing applications that manipulate binary policies.
|
||||||
|
|
||||||
|
|
||||||
%package -n python-semanage
|
|
||||||
License: LGPLv2.1
|
|
||||||
Summary: semanage python bindings for libsemanage
|
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: libsemanage1 = %{version}
|
|
||||||
|
|
||||||
%description -n python-semanage
|
|
||||||
The libsemanage-python package contains the python bindings for developing
|
|
||||||
SELinux management applications.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make clean
|
make clean
|
||||||
make -j1 CFLAGS="$RPM_OPT_FLAGS" swigify
|
make -j1 CFLAGS="%{optflags}"
|
||||||
make -j1 CFLAGS="$RPM_OPT_FLAGS" LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" all pywrap
|
make -j1 CFLAGS="%{optflags}" LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" all
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_lib}
|
mkdir -p %{buildroot}/%{_lib}
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
mkdir -p %{buildroot}%{_libdir}
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_includedir}
|
mkdir -p %{buildroot}%{_includedir}
|
||||||
make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" install install-pywrap
|
make DESTDIR=%{buildroot} LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}/%{_lib}" install
|
||||||
ln -sf /%{_lib}/libsemanage.so.1 ${RPM_BUILD_ROOT}/%{_libdir}/libsemanage.so
|
ln -sf /%{_lib}/libsemanage.so.1 %{buildroot}/%{_libdir}/libsemanage.so
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%post -n libsemanage1 -p /sbin/ldconfig
|
%post -n libsemanage1 -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -146,8 +136,4 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libsemanage.a
|
%{_libdir}/libsemanage.a
|
||||||
|
|
||||||
%files -n python-semanage
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/python*/site-packages/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
77
python-semanage.changes
Normal file
77
python-semanage.changes
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 23 14:15:42 UTC 2011 - prusnak@opensuse.org
|
||||||
|
|
||||||
|
- split off python bindings to separate package to reduce build
|
||||||
|
dependencies for rpm [bnc#695436]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 18 13:38:44 UTC 2011 - coolo@novell.com
|
||||||
|
|
||||||
|
- add baselibs.conf for rpm-32bit to use
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 23 05:42:43 UTC 2011 - coolo@novell.com
|
||||||
|
|
||||||
|
- disable parallel build, it breaks too often
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 25 14:59:32 UTC 2010 - prusnak@suse.cz
|
||||||
|
|
||||||
|
- updated to 2.0.43
|
||||||
|
* changes too numerous to list
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 16 14:24:38 CET 2009 - prusnak@suse.cz
|
||||||
|
|
||||||
|
- fix assignment of wrong context [bnc#466793]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 14 14:06:28 CET 2009 - prusnak@suse.cz
|
||||||
|
|
||||||
|
- updated to 2.0.31
|
||||||
|
* policy module compression (bzip) support from Dan Walsh
|
||||||
|
* hard link files between tmp/active/previous from Dan Walsh
|
||||||
|
* add semanage_mls_enabled() interface from Stephen Smalley
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 1 11:35:58 CET 2008 - prusnak@suse.cz
|
||||||
|
|
||||||
|
- updated to 2.0.29
|
||||||
|
* add USER to lines to homedir_template context file
|
||||||
|
* add compression support
|
||||||
|
* allow fcontext and seuser changes without rebuilding the policy
|
||||||
|
* don't rebuild on fcontext or seuser modifications
|
||||||
|
* modify genhomedircon to skip %groupname entries
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 22 16:17:23 CEST 2008 - mrueckert@suse.de
|
||||||
|
|
||||||
|
- fix debug_packages_requires define
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 23 12:52:32 CEST 2008 - prusnak@suse.cz
|
||||||
|
|
||||||
|
- require only version, not release [bnc#429053]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 2 12:13:42 CEST 2008 - prusnak@suse.cz
|
||||||
|
|
||||||
|
- updated to 2.0.27
|
||||||
|
* Modify genhomedircon to skip %groupname entries.
|
||||||
|
Ultimately we need to expand them to the list of users to support
|
||||||
|
per-role homedir labeling when using the %groupname syntax.
|
||||||
|
- updated to 2.0.26
|
||||||
|
* Fix bug in genhomedircon fcontext matches logic from Dan Walsh.
|
||||||
|
Strip any trailing slash before appending /*$.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 1 17:32:21 CEST 2008 - ro@suse.de
|
||||||
|
|
||||||
|
- fix requires for debuginfo package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 15 16:58:47 CEST 2008 - prusnak@suse.cz
|
||||||
|
|
||||||
|
- initial version 2.0.25
|
||||||
|
* based on Fedora package by Dan Walsh <dwalsh@redhat.com>
|
||||||
|
|
68
python-semanage.spec
Normal file
68
python-semanage.spec
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-semanage
|
||||||
|
#
|
||||||
|
# Copyright (c) 2011 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
%define libsepol_ver 2.0.37
|
||||||
|
%define libselinux_ver 2.0.0
|
||||||
|
BuildRequires: bison
|
||||||
|
BuildRequires: flex
|
||||||
|
BuildRequires: libselinux-devel >= %{libselinux_ver}
|
||||||
|
BuildRequires: libsepol-devel >= %{libsepol_ver}
|
||||||
|
BuildRequires: libustr-devel
|
||||||
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: swig
|
||||||
|
|
||||||
|
Name: python-semanage
|
||||||
|
Version: 2.0.43
|
||||||
|
Release: 10
|
||||||
|
License: LGPLv2.1
|
||||||
|
Summary: Python bindings for libsemanage
|
||||||
|
Url: http://www.nsa.gov/selinux/
|
||||||
|
Group: Development/Libraries
|
||||||
|
Source: %{name}-%{version}.tar.bz2
|
||||||
|
Source1: baselibs.conf
|
||||||
|
Patch0: %{name}-rhat.patch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
Requires: libsemanage1 = %{version}
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package contains the python bindings for developing
|
||||||
|
SELinux management applications.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
make clean
|
||||||
|
make -j1 CFLAGS="%{optflags}" swigify
|
||||||
|
make -j1 CFLAGS="%{optflags}" LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" all pywrap
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}/%{_lib}
|
||||||
|
mkdir -p %{buildroot}%{_libdir}
|
||||||
|
mkdir -p %{buildroot}%{_includedir}
|
||||||
|
make DESTDIR=%{buildroot} LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}/%{_lib}" install install-pywrap
|
||||||
|
ln -sf /%{_lib}/libsemanage.so.1 %{buildroot}/%{_libdir}/libsemanage.so
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/python*/site-packages/*
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user