2008-08-22 19:31:21 +02:00
|
|
|
#
|
2011-10-06 17:08:08 +02:00
|
|
|
# spec file for package libselinux-bindings
|
2008-08-22 19:31:21 +02:00
|
|
|
#
|
2017-11-27 10:18:52 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-11-27 10:18:52 +01:00
|
|
|
%define libsepol_ver 2.6
|
2008-08-22 19:31:21 +02:00
|
|
|
|
|
|
|
Name: libselinux-bindings
|
2017-11-27 10:18:52 +01:00
|
|
|
Version: 2.6
|
2012-06-04 15:46:09 +02:00
|
|
|
Release: 0
|
2016-07-26 16:56:29 +02:00
|
|
|
Summary: SELinux runtime library and simple utilities
|
2012-11-27 15:46:54 +01:00
|
|
|
License: GPL-2.0 and SUSE-Public-Domain
|
2016-07-26 16:56:29 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Url: https://github.com/SELinuxProject/selinux/wiki/Releases
|
2013-05-27 10:46:56 +02:00
|
|
|
|
2013-04-05 10:24:08 +02:00
|
|
|
# embedded is the MD5
|
2017-11-27 10:18:52 +01:00
|
|
|
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014/libselinux-%{version}.tar.gz
|
2010-03-12 17:35:22 +01:00
|
|
|
Source1: selinux-ready
|
|
|
|
Source2: baselibs.conf
|
2017-08-03 10:16:09 +02:00
|
|
|
# PATCH-FIX-UPSTREAM Include <sys/uio.h> for readv prototype
|
|
|
|
Patch4: readv-proto.patch
|
2008-08-22 19:31:21 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-05-27 10:46:56 +02:00
|
|
|
BuildRequires: libsepol-devel-static >= %{libsepol_ver}
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
BuildRequires: swig
|
2008-08-22 19:31:21 +02:00
|
|
|
|
|
|
|
%description
|
2016-07-26 16:56:29 +02:00
|
|
|
libselinux provides an interface to get and set process and file
|
|
|
|
security contexts and to obtain security policy decisions.
|
2008-08-22 19:31:21 +02:00
|
|
|
|
|
|
|
%package -n python-selinux
|
2016-07-26 16:56:29 +02:00
|
|
|
Summary: Python bindings for the SELinux runtime library
|
2012-06-04 15:46:09 +02:00
|
|
|
License: SUSE-Public-Domain
|
|
|
|
Group: Development/Libraries/Python
|
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
|
2016-07-26 16:56:29 +02:00
|
|
|
libselinux provides an interface to get and set process and file
|
|
|
|
security contexts and to obtain security policy decisions.
|
2008-08-22 19:31:21 +02:00
|
|
|
|
2016-07-26 16:56:29 +02:00
|
|
|
This subpackage contains Python extensions to use SELinux from that
|
|
|
|
language.
|
2008-08-22 19:31:21 +02:00
|
|
|
|
|
|
|
%package -n ruby-selinux
|
2016-07-26 16:56:29 +02:00
|
|
|
Summary: Ruby bindings for the SELinux runtime library
|
2012-06-04 15:46:09 +02:00
|
|
|
License: SUSE-Public-Domain
|
|
|
|
Group: Development/Languages/Ruby
|
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
|
2016-07-26 16:56:29 +02:00
|
|
|
libselinux provides an interface to get and set process and file
|
|
|
|
security contexts and to obtain security policy decisions.
|
2008-08-22 19:31:21 +02:00
|
|
|
|
2016-07-26 16:56:29 +02:00
|
|
|
This subpackage contains Ruby extensions to use SELinux from that
|
|
|
|
language.
|
2008-08-22 19:31:21 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n libselinux-%{version}
|
2017-08-03 10:16:09 +02:00
|
|
|
%patch4 -p1
|
2008-08-22 19:31:21 +02:00
|
|
|
|
|
|
|
%build
|
2011-10-06 17:08:08 +02:00
|
|
|
make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src
|
|
|
|
make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src swigify
|
|
|
|
make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src pywrap
|
|
|
|
make %{?_smp_mflags} 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
|
2010-03-12 17:35:22 +01:00
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_lib} $RPM_BUILD_ROOT%{_libdir}/libselinux.* $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
2008-08-22 19:31:21 +02:00
|
|
|
|
|
|
|
%files -n python-selinux
|
|
|
|
%defattr(-,root,root,-)
|
2016-07-26 16:56:29 +02:00
|
|
|
%{py_sitedir}/selinux/
|
2016-07-13 09:22:28 +02:00
|
|
|
%{py_sitedir}/_selinux.so
|
2008-08-22 19:31:21 +02:00
|
|
|
|
|
|
|
%files -n ruby-selinux
|
|
|
|
%defattr(-,root,root,-)
|
2012-06-04 15:46:09 +02:00
|
|
|
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/selinux.so
|
2008-08-22 19:31:21 +02:00
|
|
|
|
|
|
|
%changelog
|