]> git.pld-linux.org Git - packages/libprelude.git/commitdiff
- up to 0.9.12 by Tomasz Rutkowski
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 5 Jan 2007 17:57:19 +0000 (17:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libprelude.spec -> 1.10

libprelude.spec

index dafd0d22b9278ef8d7235597501bdd3f7936a111..3cdc48a636fb93003cafee0d5371c524bc53e249 100644 (file)
@@ -1,20 +1,23 @@
+%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)
 
@@ -103,14 +106,16 @@ Dowi
 %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}
 
@@ -120,14 +125,18 @@ rm -rf $RPM_BUILD_ROOT
 %{__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
@@ -147,12 +156,13 @@ rm -rf $RPM_BUILD_ROOT
 %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
@@ -161,14 +171,18 @@ rm -rf $RPM_BUILD_ROOT
 %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
This page took 0.057696 seconds and 4 git commands to generate.