Spec file cleanup
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/MRWOMRZ6KPCV25EFHJ2O67BCCP3L4Y6N/
This commit is contained in:
parent
0de70f05fe
commit
89aa58d422
@ -3,7 +3,6 @@ Name: libsepol
|
||||
Version: 2.7
|
||||
Release: 4%{?dist}
|
||||
License: LGPLv2+
|
||||
Group: System Environment/Libraries
|
||||
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/libsepol-2.7.tar.gz
|
||||
# download https://raw.githubusercontent.com/fedora-selinux/scripts/master/selinux/make-fedora-selinux-patch.sh
|
||||
# run:
|
||||
@ -31,7 +30,6 @@ on binary policies such as customizing policy boolean settings.
|
||||
|
||||
%package devel
|
||||
Summary: Header files and libraries used to build policy manipulation tools
|
||||
Group: Development/Libraries
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
@ -40,7 +38,6 @@ needed for developing applications that manipulate binary policies.
|
||||
|
||||
%package static
|
||||
Summary: static libraries used to build policy manipulation tools
|
||||
Group: Development/Libraries
|
||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description static
|
||||
@ -60,7 +57,6 @@ make clean
|
||||
make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}"
|
||||
|
||||
%install
|
||||
rm -rf ${RPM_BUILD_ROOT}
|
||||
mkdir -p ${RPM_BUILD_ROOT}/%{_lib}
|
||||
mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}
|
||||
@ -81,11 +77,9 @@ exit 0
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files static
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libsepol.a
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libsepol.so
|
||||
%{_libdir}/pkgconfig/libsepol.pc
|
||||
%{_includedir}/sepol/*.h
|
||||
@ -97,7 +91,6 @@ exit 0
|
||||
%{_includedir}/sepol/cil/*.h
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license COPYING
|
||||
%{_libdir}/libsepol.so.1
|
||||
|
Loading…
Reference in New Issue
Block a user