libsemanage/python-semanage.spec
Vítězslav Čížek 348c05be40 Accepting request 150435 from home:vitezslav_cizek:branches:security:SELinux
- update to 2.1.9
  * dropped libsemanage-2.1.6-NULL_level_fix.patch (fixed upstream)
	* libsemanage: do not set soname needlessly
	* libsemanage: remove PYTHONLIBDIR and ruby equivalent
	* do boolean name substitution
	* Fix segfault for building standard policies.
	* remove build warning when build swig c files
	* additional makefile support for rubywrap
	* ignore 80 column limit for readability
	* semanage_store: fix snprintf length argument by using asprintf
	* Use default semanage.conf as a fallback
	* use after free in python bindings
	* Alternate path for semanage.conf
	* do not link against libpython, this is considered bad in Debian
	* Allow to build for several ruby version
	* fallback-user-level

- update to 2.1.9

OBS-URL: https://build.opensuse.org/request/show/150435
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=40
2013-01-31 15:22:46 +00:00

71 lines
2.2 KiB
RPMSpec

#
# spec file for package python-semanage
#
# Copyright (c) 2013 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/
#
BuildRequires: bison
BuildRequires: flex
BuildRequires: libbz2-devel
BuildRequires: libselinux-devel
BuildRequires: libsepol-devel
BuildRequires: libustr-devel
BuildRequires: python-devel
BuildRequires: swig
Name: python-semanage
Version: 2.1.9
Release: 0
Summary: Python bindings for libsemanage
License: LGPL-2.1
Group: Development/Languages/Python
Url: http://www.nsa.gov/selinux/
Source: http://userspace.selinuxproject.org/releases/20120216/libsemanage-%{version}.tar.gz
Source1: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libsemanage1 = %{version}
%description
This package contains the python bindings for developing
SELinux management applications.
%prep
%setup -q -n libsemanage-%{version}
%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
# remove files contained in other packages
rm -rf %{buildroot}%{_sysconfdir}
rm -rf %{buildroot}/%{_lib}
rm -rf %{buildroot}%{_includedir}
rm -f %{buildroot}%{_libdir}/libsemanage.*
rm -rf %{buildroot}%{_libdir}/pkgconfig
rm -rf %{buildroot}%{_mandir}
%files
%defattr(-,root,root)
%{python_sitearch}/*
%changelog