2008-08-22 19:31:21 +02:00
|
|
|
#
|
2009-06-29 14:18:50 +02:00
|
|
|
# spec file for package libselinux-bindings (Version 2.0.80)
|
2008-08-22 19:31:21 +02:00
|
|
|
#
|
2009-01-19 02:22:32 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-08-22 19:31:21 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
%define libsepol_ver 2.0.32
|
|
|
|
BuildRequires: python-devel ruby-devel swig
|
2009-07-23 15:32:36 +02:00
|
|
|
BuildRequires: libsepol-devel-static >= %{libsepol_ver}
|
2008-08-22 19:31:21 +02:00
|
|
|
|
|
|
|
Name: libselinux-bindings
|
2009-06-29 14:18:50 +02:00
|
|
|
Version: 2.0.80
|
2009-07-24 17:24:37 +02:00
|
|
|
Release: 4
|
2008-08-22 19:31:21 +02:00
|
|
|
Url: http://www.nsa.gov/selinux/
|
2009-07-24 17:24:37 +02:00
|
|
|
License: GPL v2 only ; Public Domain, Freeware
|
2008-08-22 19:31:21 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Summary: SELinux library and simple utilities
|
|
|
|
Source: libselinux-%{version}.tar.bz2
|
2009-01-19 02:22:32 +01:00
|
|
|
Patch0: libselinux-%{version}-rhat.patch.bz2
|
2008-08-22 19:31:21 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-10-23 01:17:46 +02:00
|
|
|
%define debug_package_requires python-selinux = %{version}-%{release}
|
2008-08-22 19:31:21 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
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
|
|
|
|
components provide general support for the enforcement of many kinds of
|
|
|
|
mandatory access control policies, including those based on the
|
|
|
|
concepts of Type Enforcement(R), Role-based Access Control, and
|
|
|
|
Multi-level Security.
|
|
|
|
|
|
|
|
libselinux provides an API for SELinux applications to get and set
|
|
|
|
process and file security contexts and to obtain security policy
|
|
|
|
decisions. Required for any applications that use the SELinux API.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python-selinux
|
|
|
|
License: Public Domain, Freeware
|
|
|
|
Summary: SELinux library and simple utilities
|
|
|
|
Group: System/Libraries
|
2008-09-24 00:33:39 +02:00
|
|
|
Requires: libselinux1 = %{version}
|
2008-08-22 19:31:21 +02:00
|
|
|
Requires: python
|
|
|
|
|
|
|
|
%description -n python-selinux
|
|
|
|
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
|
|
|
|
components provide general support for the enforcement of many kinds of
|
|
|
|
mandatory access control policies, including those based on the
|
|
|
|
concepts of Type Enforcement(R), Role-based Access Control, and
|
|
|
|
Multi-level Security.
|
|
|
|
|
|
|
|
libselinux provides an API for SELinux applications to get and set
|
|
|
|
process and file security contexts and to obtain security policy
|
|
|
|
decisions. Required for any applications that use the SELinux API.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n ruby-selinux
|
|
|
|
License: Public Domain, Freeware
|
|
|
|
Summary: SELinux library and simple utilities
|
|
|
|
Group: System/Libraries
|
2008-09-24 00:33:39 +02:00
|
|
|
Requires: libselinux1 = %{version}
|
2008-08-22 19:31:21 +02:00
|
|
|
Requires: ruby
|
|
|
|
|
|
|
|
%description -n ruby-selinux
|
|
|
|
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
|
|
|
|
components provide general support for the enforcement of many kinds of
|
|
|
|
mandatory access control policies, including those based on the
|
|
|
|
concepts of Type Enforcement(R), Role-based Access Control, and
|
|
|
|
Multi-level Security.
|
|
|
|
|
|
|
|
libselinux provides an API for SELinux applications to get and set
|
|
|
|
process and file security contexts and to obtain security policy
|
|
|
|
decisions. Required for any applications that use the SELinux API.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n libselinux-%{version}
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
make %{?jobs:-j%jobs} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src
|
|
|
|
make %{?jobs:-j%jobs} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src swigify
|
|
|
|
make %{?jobs:-j%jobs} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src pywrap
|
2008-09-05 21:50:58 +02:00
|
|
|
make %{?jobs:-j%jobs} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src rubywrap
|
2008-08-22 19:31:21 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" -C src install
|
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" -C src install-pywrap
|
2008-09-05 21:50:58 +02:00
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" -C src install-rubywrap
|
2008-08-22 19:31:21 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_lib} $RPM_BUILD_ROOT%{_libdir}/libselinux.*
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -n python-selinux
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{py_sitedir}/selinux
|
|
|
|
%{py_sitedir}/selinux/*
|
|
|
|
|
|
|
|
%files -n ruby-selinux
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/ruby/site_ruby/%{rb_ver}/%{rb_arch}/selinux.so
|
|
|
|
|
|
|
|
%changelog
|