- Update to use libsepol-static library

This commit is contained in:
Daniel J Walsh 2008-01-21 21:42:38 +00:00
parent 45460445ad
commit c097aeffd4

View File

@ -1,15 +1,17 @@
%define libsepolver 2.0.10-1
%define libsepolver 2.0.18-2
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Summary: SELinux library and simple utilities
Name: libselinux
Version: 2.0.47
Release: 2%{?dist}
Release: 4%{?dist}
License: Public Domain
Group: System Environment/Libraries
Source: http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz
Patch: libselinux-rhat.patch
URL: http://www.nsa.gov/selinux
BuildRequires: python-devel libsepol-devel >= %{libsepolver} swig
BuildRequires: python-devel libsepol-static >= %{libsepolver} swig
Requires: libsepol >= %{libsepolver}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -44,7 +46,16 @@ Requires: libselinux = %{version}-%{release}
Requires: libsepol-devel >= %{libsepolver}
%description devel
The libselinux-devel package contains the static libraries and header files
The libselinux-devel package contains the libraries and header files
needed for developing SELinux applications.
%package static
Summary: Static libraries used to build SELinux
Group: Development/Libraries
Requires: libselinux-devel = %{version}-%{release}
%description static
The libselinux-static package contains the static libraries
needed for developing SELinux applications.
%prep
@ -96,7 +107,7 @@ exit 0
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,0755)
%defattr(-,root,root,-)
/%{_lib}/libselinux.so.*
%{_sbindir}/avcstat
%{_sbindir}/getenforce
@ -110,19 +121,29 @@ exit 0
/var/run/setrans
%files devel
%defattr(-,root,root)
%{_libdir}/libselinux.a
%defattr(-,root,root,-)
%{_libdir}/libselinux.so
%dir %{_includedir}/selinux
%{_includedir}/selinux/*
%{_mandir}/man3/*
%files static
%defattr(-,root,root,-)
%{_libdir}/libselinux.a
%files python
%defattr(-,root,root,0755)
%dir %{_libdir}/python*/site-packages/selinux
%{_libdir}/python*/site-packages/selinux/*
%defattr(-,root,root,-)
%dir %{python_sitearch}/selinux
%{python_sitearch}/selinux/*
%changelog
* Mon Jan 21 2008 Dan Walsh <dwalsh@redhat.com> - 2.0.47-4
- Update to use libsepol-static library
* Wed Jan 16 2008 Adel Gadllah <adel.gadllah@gmail.com> - 2.0.47-3
- Move libselinux.a to -static package
- Spec cleanups
* Tue Jan 15 2008 Dan Walsh <dwalsh@redhat.com> - 2.0.47-2
- Put back libselinux.a