2008-08-02 04:29:10 +02:00
|
|
|
#
|
2011-09-19 15:56:03 +02:00
|
|
|
# spec file for package checkpolicy
|
2008-08-02 04:29:10 +02:00
|
|
|
#
|
2022-05-20 16:53:42 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2008-08-02 04:29:10 +02:00
|
|
|
#
|
2008-10-22 17:42:41 +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.
|
|
|
|
|
2020-01-15 15:40:03 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-08-02 04:29:10 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-05-20 16:53:42 +02:00
|
|
|
%define libsepol_ver 3.4
|
2008-08-02 04:29:10 +02:00
|
|
|
Name: checkpolicy
|
2022-05-20 16:53:42 +02:00
|
|
|
Version: 3.4
|
2012-07-25 13:25:05 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: SELinux policy compiler
|
2018-05-23 10:27:50 +02:00
|
|
|
License: GPL-2.0-or-later
|
2008-08-02 04:29:10 +02:00
|
|
|
Group: Productivity/Security
|
2020-03-05 11:13:36 +01:00
|
|
|
URL: https://github.com/SELinuxProject/selinux
|
2021-03-12 08:59:12 +01:00
|
|
|
Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz
|
2022-05-20 16:53:42 +02:00
|
|
|
Source1: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz.asc
|
|
|
|
Source2: checkpolicy.keyring
|
|
|
|
Source3: checkpolicy-tests.tar.gz
|
2016-07-13 09:19:09 +02:00
|
|
|
BuildRequires: bison
|
2017-07-04 10:43:51 +02:00
|
|
|
BuildRequires: flex
|
2016-07-13 09:19:09 +02:00
|
|
|
BuildRequires: libselinux-devel
|
2018-05-23 10:27:50 +02:00
|
|
|
BuildRequires: libsepol-devel-static => %{libsepol_ver}
|
2008-08-02 04:29:10 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2016-07-26 14:14:20 +02:00
|
|
|
checkpolicy is the SELinux policy compiler. It uses libsepol to
|
|
|
|
generate the binary policy.
|
2008-08-02 04:29:10 +02:00
|
|
|
|
2016-07-26 14:14:20 +02:00
|
|
|
(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-02 04:29:10 +02:00
|
|
|
|
2018-05-23 10:27:50 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for SELinux policy compiler
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
checkpolicy is the SELinux policy compiler. It uses libsepol to
|
|
|
|
generate the binary policy.
|
|
|
|
|
|
|
|
This package contains the development files, which are
|
|
|
|
necessary to develop your own software using checkpolicy.
|
|
|
|
|
|
|
|
%package -n python3-%{name}
|
|
|
|
Summary: Python bindings for SELinux policy compiler
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description -n python3-%{name}
|
|
|
|
checkpolicy is the SELinux policy compiler. It uses libsepol to
|
|
|
|
generate the binary policy.
|
|
|
|
|
|
|
|
This package contains the Python bindindgs, which are necessary
|
|
|
|
to use checkpolicy from Python.
|
|
|
|
|
2008-08-02 04:29:10 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2018-05-23 10:27:50 +02:00
|
|
|
make clean
|
2018-11-22 15:14:20 +01:00
|
|
|
make LIBDIR="%{_libdir}" CFLAGS="%{optflags}" %{?_smp_mflags}
|
|
|
|
make -C test LIBDIR="%{_libdir}" CFLAGS="%{optflags}" %{?_smp_mflags}
|
2008-08-02 04:29:10 +02:00
|
|
|
|
|
|
|
%install
|
2018-11-22 15:14:20 +01:00
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
|
|
%make_install LIBDIR="%{_libdir}"
|
|
|
|
install test/dismod %{buildroot}/%{_bindir}/sedismod
|
|
|
|
install test/dispol %{buildroot}/%{_bindir}/sedispol
|
2008-08-02 04:29:10 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/checkpolicy
|
|
|
|
%{_bindir}/checkmodule
|
|
|
|
%{_bindir}/sedismod
|
|
|
|
%{_bindir}/sedispol
|
2018-05-23 10:27:50 +02:00
|
|
|
%{_mandir}/man8/check*.*%{ext_man}
|
2019-03-21 10:41:15 +01:00
|
|
|
%{_mandir}/ru/man8/check*.*%{ext_man}
|
2008-08-02 04:29:10 +02:00
|
|
|
|
|
|
|
%changelog
|