SPECS: libsemanage.spec - updated to 1.4, removed outdated printf_...

qboosh qboosh at pld-linux.org
Thu Dec 22 00:11:06 CET 2005


Author: qboosh                       Date: Wed Dec 21 23:11:06 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated to 1.4, removed outdated printf_format patch

---- Files affected:
SPECS:
   libsemanage.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/libsemanage.spec
diff -u SPECS/libsemanage.spec:1.6 SPECS/libsemanage.spec:1.7
--- SPECS/libsemanage.spec:1.6	Tue Sep 27 03:39:59 2005
+++ SPECS/libsemanage.spec	Thu Dec 22 00:11:01 2005
@@ -2,17 +2,17 @@
 Summary:	An interface for SELinux management
 Summary(pl):	Interfejs do zarządzania SELinuksem
 Name:		libsemanage
-Version:	1.2
-Release:	2
+Version:	1.4
+Release:	1
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz
-# Source0-md5:	83c6ab2b45cd35d148615fda3b04ba03
-Patch0:		%{name}-printf_format.patch
+# Source0-md5:	063010d314da724b33de18883b71b8ee
 URL:		http://www.nsa.gov/selinux/
 BuildRequires:	bison
 BuildRequires:	flex
 BuildRequires:	libsepol-devel
+BuildRequires:	rpm-pythonprov
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -45,9 +45,21 @@
 %description static -l pl
 Statyczna wersja biblioteki libsemanage.
 
+%package -n python-semanage
+Summary:	Python binding for semanage library
+Summary(pl):	Wiązania Pythona do biblioteki semanage
+Group:		Libraries/Python
+Requires:	%{name} = %{version}-%{release}
+%pyrequires_eq	python-libs
+
+%description -n python-semanage
+Python binding for semanage library.
+
+%description -n python-semanage -l pl
+Wiązania Pythona do biblioteki semanage.
+
 %prep
 %setup -q
-%patch0 -p1
 
 %build
 %{__make} \
@@ -61,33 +73,45 @@
 	LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# make symlink across / absolute
+ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib} ; echo libsemanage.so.*) \
+	$RPM_BUILD_ROOT%{_libdir}/libsemanage.so
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-#%post	-p /sbin/ldconfig
-#%postun	-p /sbin/ldconfig
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog
-#%attr(755,root,root) %{_libdir}/libsemanage.so.*
-%{_datadir}/semod
+%attr(755,root,root) /%{_lib}/libsemanage.so.*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/selinux/semanage.conf
 
 %files devel
 %defattr(644,root,root,755)
-#%attr(755,root,root) %{_libdir}/libsemanage.so
+%attr(755,root,root) %{_libdir}/libsemanage.so
 %{_includedir}/semanage
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libsemanage.a
 
+%files -n python-semanage
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/_semanage.so
+%{py_sitedir}/semanage.py
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2005/12/21 23:11:01  qboosh
+- updated to 1.4, removed outdated printf_format patch
+
 Revision 1.6  2005/09/27 01:39:59  pluto
 - amd64 install fixed, release 2.
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libsemanage.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list