Author: qboosh Date: Tue Dec 27 09:03:02 2005 GMT Module: SPECS Tag: HEAD ---- Log message: - added python bcond - pass LIBDIR to make to avoid -L/usr/lib on lib64-based platforms - release 2
---- Files affected: SPECS: libselinux.spec (1.46 -> 1.47) ---- Diffs: ================================================================ Index: SPECS/libselinux.spec diff -u SPECS/libselinux.spec:1.46 SPECS/libselinux.spec:1.47 --- SPECS/libselinux.spec:1.46 Wed Dec 21 23:49:47 2005 +++ SPECS/libselinux.spec Tue Dec 27 10:02:57 2005 @@ -1,9 +1,13 @@ # $Revision$, $Date$ +# +# Conditional build: +%bcond_without python +# Summary: SELinux library and simple utilities Summary(pl): Biblioteka SELinux i proste narzędzia Name: libselinux Version: 1.28 -Release: 1 +Release: 2 Epoch: 0 License: Public Domain Group: Libraries @@ -12,7 +16,8 @@ URL: http://www.nsa.gov/selinux/ BuildRequires: glibc-devel >= 6:2.3 BuildRequires: libsepol-devel >= 1.10 -BuildRequires: rpm-pythonprov +%{?with_python:BuildRequires: python-devel} +%{?with_python:BuildRequires: rpm-pythonprov} Requires: libsepol >= 1.10 Obsoletes: selinux-libs Conflicts: SysVinit < 2.86-4 @@ -108,7 +113,9 @@ %build %{__make} \ CC="%{__cc}" \ - CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64" + CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64" \ + LIBDIR=%{_libdir} \ + %{!?with_python:SWIGSO=} %install rm -rf $RPM_BUILD_ROOT @@ -116,7 +123,8 @@ %{__make} install \ LIBDIR="$RPM_BUILD_ROOT%{_libdir}" \ SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" \ - DESTDIR="$RPM_BUILD_ROOT" + DESTDIR="$RPM_BUILD_ROOT" \ + %{!?with_python:SWIGSO= SWIGFILES="-d"} # make symlink across / absolute ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib} ; echo libselinux.so.*) \ @@ -148,10 +156,12 @@ %attr(755,root,root) %{_sbindir}/* %{_mandir}/man8/*.8* +%if %{with python} %files -n python-selinux %defattr(644,root,root,755) %attr(755,root,root) %{py_sitedir}/_selinux.so %{py_sitedir}/selinux.py +%endif %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -159,6 +169,11 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.47 2005/12/27 09:02:57 qboosh +- added python bcond +- pass LIBDIR to make to avoid -L/usr/lib on lib64-based platforms +- release 2 + Revision 1.46 2005/12/21 22:49:47 qboosh - updated to 1.28; depends on libsepol now ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/libselinux.spec?r1=1.46&r2=1.47&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
