SPECS: libprelude.spec - up to 0.9.12 by Tomasz Rutkowski
arekm
arekm at pld-linux.org
Fri Jan 5 18:57:24 CET 2007
Author: arekm Date: Fri Jan 5 17:57:24 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- up to 0.9.12 by Tomasz Rutkowski
---- Files affected:
SPECS:
libprelude.spec (1.9 -> 1.10)
---- Diffs:
================================================================
Index: SPECS/libprelude.spec
diff -u SPECS/libprelude.spec:1.9 SPECS/libprelude.spec:1.10
--- SPECS/libprelude.spec:1.9 Tue May 16 13:06:11 2006
+++ SPECS/libprelude.spec Fri Jan 5 18:57:19 2007
@@ -1,21 +1,24 @@
# $Revision$, $Date$
+%bcond_without perl
+%bcond_without python # required by prewikka
+
%include /usr/lib/rpm/macros.perl
Summary: The Prelude library
Summary(pl): Biblioteka Prelude
Name: libprelude
-Version: 0.9.8
+Version: 0.9.12
Release: 1
License: GPL
Group: Libraries
Source0: http://www.prelude-ids.org/download/releases/%{name}-%{version}.tar.gz
-# Source0-md5: d46527e7b036d20c3cc72c887486d773
+# Source0-md5: 2e8769cd05d51d3e69380bf234e6efef
URL: http://www.prelude-ids.org/
BuildRequires: bison
BuildRequires: flex
-BuildRequires: gnutls-devel >= 1.2.5
+BuildRequires: gnutls-devel >= 1.0.17
BuildRequires: gtk-doc
-BuildRequires: perl-devel
-BuildRequires: python-devel
+%{?with_perl:BuildRequires: perl-devel}
+%{?with_python:BuildRequires: python-devel}
BuildRequires: rpm-perlprov
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -104,14 +107,16 @@
%configure \
--enable-shared \
--enable-static \
- --enable-perl \
- --enable-python \
--enable-gtk-doc \
+ --with-perl%{!?with_perl:=no} \
+ --with-python%{!?with_python:=no} \
--with-html-dir=%{_gtkdocdir}/libprelude
# first make the perl makefile otherwise with jobserver strange things happen:
# Makefile out-of-date with respect to Makefile.PL
+%if %{with perl}
%{__make} -C bindings perl/Makefile
+%endif
%{__make}
@@ -121,14 +126,18 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%if %{with perl}
cd bindings/perl && %{__perl} Makefile.PL \
INSTALLDIRS=vendor
cd ../..
%{__make} -C bindings/perl install \
DESTDIR=$RPM_BUILD_ROOT
+%endif
+%if %{with python}
%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
@@ -148,12 +157,13 @@
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/prelude-adduser
%attr(755,root,root) %{_libdir}/lib*.so.*.*
+# needed in normal operational
+%{_libdir}/lib*.la
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/libprelude-config
%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
%{_includedir}/libprelude
%{_aclocaldir}/*.m4
%{_gtkdocdir}/libprelude
@@ -162,17 +172,21 @@
%defattr(644,root,root,755)
%{_libdir}/lib*.a
+%if %{with perl}
%files -n perl-libprelude
%defattr(644,root,root,755)
%dir %{perl_vendorarch}/auto/Prelude
%attr(755,root,root) %{perl_vendorarch}/auto/Prelude/*.so
%{perl_vendorarch}/auto/Prelude/*.bs
%{perl_vendorarch}/Prelude.pm
+%endif
+%if %{with python}
%files -n python-libprelude
%defattr(644,root,root,755)
%attr(755,root,root) %{py_sitedir}/*.so
%{py_sitedir}/*.py[co]
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -180,6 +194,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.10 2007/01/05 17:57:19 arekm
+- up to 0.9.12 by Tomasz Rutkowski
+
Revision 1.9 2006/05/16 11:06:11 mguevara
- 0.9.8-1
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/libprelude.spec?r1=1.9&r2=1.10&f=u
More information about the pld-cvs-commit
mailing list