- 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 Summary: SELinux library and simple utilities
Name: libselinux Name: libselinux
Version: 2.0.47 Version: 2.0.47
Release: 2%{?dist} Release: 4%{?dist}
License: Public Domain License: Public Domain
Group: System Environment/Libraries Group: System Environment/Libraries
Source: http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz Source: http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz
Patch: libselinux-rhat.patch Patch: libselinux-rhat.patch
URL: http://www.nsa.gov/selinux URL: http://www.nsa.gov/selinux
BuildRequires: python-devel libsepol-devel >= %{libsepolver} swig BuildRequires: python-devel libsepol-static >= %{libsepolver} swig
Requires: libsepol >= %{libsepolver} Requires: libsepol >= %{libsepolver}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -44,7 +46,16 @@ Requires: libselinux = %{version}-%{release}
Requires: libsepol-devel >= %{libsepolver} Requires: libsepol-devel >= %{libsepolver}
%description devel %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. needed for developing SELinux applications.
%prep %prep
@ -96,7 +107,7 @@ exit 0
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%defattr(-,root,root,0755) %defattr(-,root,root,-)
/%{_lib}/libselinux.so.* /%{_lib}/libselinux.so.*
%{_sbindir}/avcstat %{_sbindir}/avcstat
%{_sbindir}/getenforce %{_sbindir}/getenforce
@ -110,19 +121,29 @@ exit 0
/var/run/setrans /var/run/setrans
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root,-)
%{_libdir}/libselinux.a
%{_libdir}/libselinux.so %{_libdir}/libselinux.so
%dir %{_includedir}/selinux %dir %{_includedir}/selinux
%{_includedir}/selinux/* %{_includedir}/selinux/*
%{_mandir}/man3/* %{_mandir}/man3/*
%files static
%defattr(-,root,root,-)
%{_libdir}/libselinux.a
%files python %files python
%defattr(-,root,root,0755) %defattr(-,root,root,-)
%dir %{_libdir}/python*/site-packages/selinux %dir %{python_sitearch}/selinux
%{_libdir}/python*/site-packages/selinux/* %{python_sitearch}/selinux/*
%changelog %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 * Tue Jan 15 2008 Dan Walsh <dwalsh@redhat.com> - 2.0.47-2
- Put back libselinux.a - Put back libselinux.a