From 5a4510047d4a806c19eddcc4eb20aa129b89eabe Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Wed, 29 Apr 2020 22:44:30 +0200 Subject: [PATCH] - partial PLD merge --- rrdtool.spec | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/rrdtool.spec b/rrdtool.spec index 64c31fb..caeb8c8 100644 --- a/rrdtool.spec +++ b/rrdtool.spec @@ -21,7 +21,6 @@ %endif %define pdir RRDp -%include /usr/lib/rpm/macros.perl Summary: RRDtool - round robin database Summary(pl.UTF-8): RRDtool - baza danych typu round-robin Summary(pt_BR.UTF-8): Round Robin Database, uma ferramenta para construção de gráficos @@ -29,7 +28,7 @@ Summary(ru.UTF-8): RRDtool - база данных с "циклическим о Summary(uk.UTF-8): RRDtool - це система зберігання та показу серійних даних Name: rrdtool Version: 1.7.2 -Release: 1 +Release: 2 License: GPL v2+ + FLOSS exception Group: Applications/Databases Source0: https://oss.oetiker.ch/rrdtool/pub/%{name}-%{version}.tar.gz @@ -69,6 +68,7 @@ BuildRequires: python >= 1:2.3 BuildRequires: python-devel >= 1:2.3 %endif %if %{with ruby} +BuildRequires: rpm-rubyprov BuildRequires: ruby-devel %endif %if %{with tcl} @@ -310,8 +310,14 @@ Rozszerzenie Tcl-a pozwalające na dostęp do biblioteki Tcl. %patch1 -p1 %patch2 -p1 -sed -i -e 's#\$TCL_PACKAGE_PATH#%{_prefix}/lib#g' configure.ac -sed -i -e 's#/lib/lua/#/%{_lib}/lua/#g' configure.ac +%{__sed} -i -e 's#\$TCL_PACKAGE_PATH#%{_prefix}/lib#g' configure.ac +%{__sed} -i -e 's#/lib/lua/#/%{_lib}/lua/#g' configure.ac + +%{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \ + examples/stripes.py + +%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+tclsh@TCL_VERSION@(\s|$),#!%{__tclsh}\1,' \ + bindings/tcl/ifOctets.tcl.in # We only want .txt and .html files for the main documentation install -d docs/{html,/txt} -- 2.44.0