Spec file cleanup
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/MRWOMRZ6KPCV25EFHJ2O67BCCP3L4Y6N/
This commit is contained in:
parent
ec0a79526f
commit
557e34ddd5
@ -6,7 +6,6 @@ Name: checkpolicy
|
|||||||
Version: 2.7
|
Version: 2.7
|
||||||
Release: 4%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: Development/System
|
|
||||||
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/checkpolicy-2.7.tar.gz
|
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/checkpolicy-2.7.tar.gz
|
||||||
# download https://raw.githubusercontent.com/fedora-selinux/scripts/master/selinux/make-fedora-selinux-patch.sh
|
# download https://raw.githubusercontent.com/fedora-selinux/scripts/master/selinux/make-fedora-selinux-patch.sh
|
||||||
# run:
|
# run:
|
||||||
@ -40,14 +39,12 @@ cd test
|
|||||||
make LIBDIR="%{_libdir}" CFLAGS="%{optflags}"
|
make LIBDIR="%{_libdir}" CFLAGS="%{optflags}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
||||||
make LIBDIR="%{_libdir}" DESTDIR="${RPM_BUILD_ROOT}" install
|
make LIBDIR="%{_libdir}" DESTDIR="${RPM_BUILD_ROOT}" install
|
||||||
install test/dismod ${RPM_BUILD_ROOT}%{_bindir}/sedismod
|
install test/dismod ${RPM_BUILD_ROOT}%{_bindir}/sedismod
|
||||||
install test/dispol ${RPM_BUILD_ROOT}%{_bindir}/sedispol
|
install test/dispol ${RPM_BUILD_ROOT}%{_bindir}/sedispol
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_bindir}/checkpolicy
|
%{_bindir}/checkpolicy
|
||||||
|
Loading…
Reference in New Issue
Block a user