# # 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: libsemanage-%{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