]> git.pld-linux.org Git - packages/rrdtool.git/blobdiff - rrdtool.spec
- updated to 1.2.27
[packages/rrdtool.git] / rrdtool.spec
index cde60c12c003ac17861eef6725331c4404899c06..4095477ae92ec8a799f10c831bae72b05047dff8 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without python  # Python binding
+#
 %include       /usr/lib/rpm/macros.perl
 %define        pdir    RRDp
 Summary:       RRDtool - round robin database
@@ -6,12 +10,12 @@ Summary(pt_BR.UTF-8):        Round Robin Database, uma ferramenta para construção de
 Summary(ru.UTF-8):     RRDtool - база данных с "циклическим обновлением"
 Summary(uk.UTF-8):     RRDtool - це система зберігання та показу серійних даних
 Name:          rrdtool
-Version:       1.2.23
+Version:       1.2.27
 Release:       1
-License:       GPL
+License:       GPL v2+ + FLOSS exception
 Group:         Applications/Databases
 Source0:       http://oss.oetiker.ch/rrdtool/pub/%{name}-%{version}.tar.gz
-# Source0-md5: dafa161bc9c61e57636a6085c87c1fe8
+# Source0-md5: 841ca303c88f7184cf0aaab07e52dec4
 Patch0:                %{name}-tcl-path.patch
 URL:           http://oss.oetiker.ch/rrdtool/  
 BuildRequires: autoconf
@@ -21,8 +25,10 @@ BuildRequires:       libart_lgpl-devel >= 2.3.17
 BuildRequires: libpng-devel >= 2:1.2.8
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: pkgconfig
-BuildRequires: python
-BuildRequires: python-devel
+%if %{with python}
+BuildRequires: python >= 1:2.5
+BuildRequires: python-devel >= 1:2.5
+%endif
 BuildRequires: rpm-perlprov
 BuildRequires: rpm-pythonprov
 BuildRequires: tcl-devel
@@ -206,7 +212,10 @@ Rozszerzenie Tcl-a pozwalające na dostęp do biblioteki Tcl.
        --with-perl=%{__perl} \
        --with-perl-options="INSTALLDIRS=vendor"
 
-%{__make}
+# empty RUBY_MAKE_OPTIONS as workaround for some make weirdness
+# (tried to install without DESTDIR on plain make)
+%{__make} \
+       RUBY_MAKE_OPTIONS=
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -239,8 +248,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
-%{_libdir}/librrd.so
-%{_libdir}/librrd_th.so
+%attr(755,root,root) %{_libdir}/librrd.so
+%attr(755,root,root) %{_libdir}/librrd_th.so
 %{_libdir}/librrd.la
 %{_libdir}/librrd_th.la
 %{_includedir}/rrd.h
@@ -261,9 +270,12 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/RRDp.3*
 %{_mandir}/man3/RRDs.3*
 
+%if %{with python}
 %files -n python-rrdtool
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/rrdtoolmodule.so
+%{py_sitedir}/py_rrdtool-*.egg-info
+%endif
 
 %files -n tcl-rrdtool
 %defattr(644,root,root,755)
This page took 0.074554 seconds and 4 git commands to generate.