checkpolicy/checkpolicy.spec

101 lines
2.5 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:35:06 -04:00
Name: checkpolicy
2023-02-02 15:40:57 +08:00
Version: 3.4
2023-03-10 16:20:38 +08:00
Release: 2
2019-09-30 10:35:06 -04:00
Summary: SELinux policy compiler
License: GPLv2
URL: https://github.com/SELinuxProject/selinux
2023-02-02 15:40:57 +08:00
Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/checkpolicy-%{version}.tar.gz
2019-09-30 10:35:06 -04:00
2023-03-10 16:20:38 +08:00
Patch0: backport-checkpolicy-Improve-error-message-for-type-bounds.patch
Patch1: backport-checkpolicy-delete-invalid-spaces.patch
2022-01-12 14:18:28 +08:00
BuildRequires: gcc byacc bison flex flex-static libsepol-static >= %{version} libselinux-devel >= %{version}
2019-09-30 10:35:06 -04:00
Conflicts: selinux-policy-base < 3.13.1-138
%description
checkpolicy is the SELinux policy compiler. It uses libsepol to
generate the binary policy.
(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.)
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
2019-09-30 10:35:06 -04:00
%build
make clean
make LIBDIR="%{_libdir}" CFLAGS="%{optflags}" LDFLAGS="$RPM_LD_FLAGS"
make -C test LIBDIR="%{_libdir}" CFLAGS="%{optflags}" LDFLAGS="$RPM_LD_FLAGS"
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
%make_install LIBDIR="%{_libdir}"
install test/dismod %{buildroot}%{_bindir}/sedismod
install test/dispol %{buildroot}%{_bindir}/sedispol
%pre
%preun
%post
%postun
%files
%defattr(-,root,root)
%license COPYING
%{_bindir}/*
%files help
%defattr(-,root,root)
%{_mandir}/*/*
%changelog
2023-03-10 16:20:38 +08:00
* Fri Mar 10 2023 zhangchenfeng <zhangchenfeng1@huawei.com> - 3.4-2
- backport upstrem bugfix
2023-02-02 15:40:57 +08:00
* Thu Feb 2 2023 zhangguangzhi <zhangguangzhi3@huawei.com> - 3.4-1
- update version to 3.4
2022-01-12 14:18:28 +08:00
* Tue Jan 18 2022 yixiangzhike <yixiangzhike007@163.com> - 3.3-1
- update to 3.3
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 3.1-2
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
2020-07-22 20:50:51 +08:00
* Fri Jul 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.1-1
- update to 3.1
2019-09-30 10:35:06 -04:00
* Sat Sep 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.8-6
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:revise description
* Fri Aug 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.8-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:strengthen spec
* Tue Aug 20 2019 guoxiaoqi<guoxiaoqi2@huawei.com> - 2.8-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:rename patches
* Tue Jul 9 2019 zhangyujing <zhangyujing1@huawei.com> - 2.8-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Destroy the class datum if it fails to initialize
* Thu Jul 12 2018 openEuler Buildteam <buildteam@openeuler.org> - 2.8-2
- Package init