2008-08-05 04:43:01 +02:00
|
|
|
#
|
2011-10-06 17:08:31 +02:00
|
|
|
# spec file for package libsepol
|
2008-08-05 04:43:01 +02:00
|
|
|
#
|
2018-05-23 09:58:06 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-08-05 04:43:01 +02:00
|
|
|
#
|
2008-08-22 19:30:05 +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.
|
|
|
|
|
2008-08-05 04:43:01 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libsepol
|
2018-10-23 14:13:45 +02:00
|
|
|
Version: 2.8
|
2012-07-25 13:17:16 +02:00
|
|
|
Release: 0
|
2008-08-05 04:43:01 +02:00
|
|
|
Summary: SELinux binary policy manipulation library
|
2018-05-23 09:58:06 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2016-07-26 14:10:49 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Url: https://github.com/SELinuxProject/selinux/wiki/Releases
|
2018-05-23 09:58:06 +02:00
|
|
|
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/%{name}-%{version}.tar.gz
|
2010-02-11 19:03:52 +01:00
|
|
|
Source2: baselibs.conf
|
2016-07-14 10:42:10 +02:00
|
|
|
BuildRequires: flex
|
2016-07-15 14:59:30 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-08-05 04:43:01 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
libsepol provides an API for the manipulation of SELinux binary
|
|
|
|
policies. It is used by checkpolicy (the policy compiler) and similar
|
|
|
|
tools, as well as by programs like load_policy that need to perform
|
2016-07-26 14:10:49 +02:00
|
|
|
specific transformations on binary policies such as customizing
|
|
|
|
policy boolean settings.
|
2008-08-05 04:43:01 +02:00
|
|
|
|
2016-07-15 14:59:30 +02:00
|
|
|
%package utils
|
|
|
|
Summary: SELinux binary policy manipulation tools
|
|
|
|
Group: System/Base
|
|
|
|
|
|
|
|
%description utils
|
|
|
|
libsepol provides an API for the manipulation of SELinux binary
|
|
|
|
policies. It is used by checkpolicy (the policy compiler) and similar
|
|
|
|
tools, as well as by programs like load_policy that need to perform
|
2016-07-26 14:10:49 +02:00
|
|
|
specific transformations on binary policies such as customizing
|
|
|
|
policy boolean settings.
|
2008-08-05 04:43:01 +02:00
|
|
|
|
|
|
|
%package -n libsepol1
|
|
|
|
Summary: SELinux binary policy manipulation library
|
2012-07-25 13:17:16 +02:00
|
|
|
Group: System/Libraries
|
2008-08-05 04:43:01 +02:00
|
|
|
|
|
|
|
%description -n libsepol1
|
|
|
|
libsepol provides an API for the manipulation of SELinux binary
|
|
|
|
policies. It is used by checkpolicy (the policy compiler) and similar
|
|
|
|
tools, as well as by programs like load_policy that need to perform
|
2016-07-26 14:10:49 +02:00
|
|
|
specific transformations on binary policies such as customizing
|
|
|
|
policy boolean settings.
|
|
|
|
|
|
|
|
(Security-enhanced Linux is a feature of the kernel and some
|
|
|
|
utilities that implement mandatory access control policies, such as
|
|
|
|
Type Enforcement, Role-based Access Control and Multi-Level
|
|
|
|
Security.)
|
2008-08-05 04:43:01 +02:00
|
|
|
|
|
|
|
%package devel
|
2016-07-26 14:10:49 +02:00
|
|
|
Summary: Development files for SELinux's binary policy manipulation library
|
2008-08-05 04:43:01 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-07-25 13:17:16 +02:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libsepol1 = %{version}
|
2008-08-05 04:43:01 +02:00
|
|
|
|
|
|
|
%description devel
|
2016-07-26 14:10:49 +02:00
|
|
|
The libsepol-devel package contains the libraries and header files
|
|
|
|
needed for developing applications that manipulate binary SELinux
|
2008-08-05 04:43:01 +02:00
|
|
|
policies.
|
|
|
|
|
2009-06-29 14:15:10 +02:00
|
|
|
%package devel-static
|
2016-07-26 14:10:49 +02:00
|
|
|
Summary: Static archives for SELinux's binary policy manipulation library
|
2009-06-29 14:15:10 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libsepol-devel = %{version}
|
|
|
|
|
|
|
|
%description devel-static
|
|
|
|
The libsepol-devel-static package contains the static libraries
|
2016-07-26 14:10:49 +02:00
|
|
|
needed for developing applications that manipulate binary SELinux
|
2009-06-29 14:15:10 +02:00
|
|
|
policies.
|
|
|
|
|
2008-08-05 04:43:01 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2016-07-15 14:59:30 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
make %{?_smp_mflags}
|
2008-08-05 04:43:01 +02:00
|
|
|
|
|
|
|
%install
|
2018-10-23 14:13:45 +02:00
|
|
|
make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" install
|
2008-08-05 04:43:01 +02:00
|
|
|
|
|
|
|
%post -n libsepol1 -p /sbin/ldconfig
|
|
|
|
%postun -n libsepol1 -p /sbin/ldconfig
|
|
|
|
|
2016-07-15 14:59:30 +02:00
|
|
|
%files utils
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/chkcon
|
2016-07-26 14:10:49 +02:00
|
|
|
%{_mandir}/man8/*.8%{ext_man}
|
2016-07-15 14:59:30 +02:00
|
|
|
|
2008-08-05 04:43:01 +02:00
|
|
|
%files -n libsepol1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/%{_lib}/libsepol.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libsepol.so
|
2016-07-26 14:10:49 +02:00
|
|
|
%{_mandir}/man3/*.3%{ext_man}
|
|
|
|
%{_includedir}/sepol/
|
2010-04-24 14:10:34 +02:00
|
|
|
%{_libdir}/pkgconfig/libsepol.pc
|
2008-08-05 04:43:01 +02:00
|
|
|
|
2009-06-29 14:15:10 +02:00
|
|
|
%files devel-static
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libsepol.a
|
|
|
|
|
2008-08-05 04:43:01 +02:00
|
|
|
%changelog
|