Package init
This commit is contained in:
commit
4fd252dff4
BIN
libsepol-2.9.tar.gz
Normal file
BIN
libsepol-2.9.tar.gz
Normal file
Binary file not shown.
71
libsepol.spec
Normal file
71
libsepol.spec
Normal file
@ -0,0 +1,71 @@
|
||||
Name: libsepol
|
||||
Version: 2.9
|
||||
Release: 1
|
||||
Summary: SELinux binary policy manipulation library
|
||||
License: LGPLv2+
|
||||
URL: https://github.com/SELinuxProject/selinux/wiki/Releases
|
||||
Source0: https://github.com/SELinuxProject/selinux/releases/download/20190315/libsepol-2.9.tar.gz
|
||||
|
||||
BuildRequires: gcc flex
|
||||
|
||||
%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
|
||||
specific transformations on binary policies such as customizing
|
||||
policy boolean settings.
|
||||
|
||||
%package devel
|
||||
Summary: Header files and libraries for %{name}
|
||||
Requires:%{name} = %{version}-%{release}
|
||||
Provides:%{name}-static = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Header files and libraries for %{name}
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
make clean
|
||||
make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}"
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" install
|
||||
|
||||
%pre
|
||||
|
||||
%preun
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
[ -x /sbin/telinit ] && [ -p /dev/initctl ] && /sbin/telinit U
|
||||
exit 0
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license COPYING
|
||||
%{_libdir}/libsepol.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/libsepol.pc
|
||||
%{_libdir}/*.a
|
||||
%exclude %{_bindir}/chkcon
|
||||
|
||||
%files help
|
||||
%defattr(-,root,root)
|
||||
%{_mandir}/man8/*
|
||||
%{_mandir}/ru/man8/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Tue Sep 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.9-1
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user