From: Elan Ruusamäe Date: Mon, 12 Jul 2010 09:36:58 +0000 (+0000) Subject: - up to 0.8.7g, pa patch needs updating (not available on website) X-Git-Tag: auto/ac/cacti-0_8_7g-1~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcacti.git;a=commitdiff_plain;h=bb0e5568037e18b8110521842a734bfb69a5be92 - up to 0.8.7g, pa patch needs updating (not available on website) Changed files: cacti.spec -> 1.125 --- diff --git a/cacti.spec b/cacti.spec index 26fd8dd..997a95a 100644 --- a/cacti.spec +++ b/cacti.spec @@ -1,13 +1,17 @@ +# +# Conditional build: +%bcond_without pa # without plugin archidecture patch + %include /usr/lib/rpm/macros.perl Summary: Cacti is a PHP frontend for rrdtool Summary(pl.UTF-8): Cacti - frontend w PHP do rrdtoola Name: cacti -Version: 0.8.7f -Release: 1 +Version: 0.8.7g +Release: 0.1 License: GPL Group: Applications/WWW Source0: http://www.cacti.net/downloads/%{name}-%{version}.tar.gz -# Source0-md5: c50a49e3b439dba1fd44ddc34276d4df +# Source0-md5: 268421cb1a58d3444f7ecbddb4c4b016 Source1: %{name}.cfg.php Source2: %{name}.crontab Source3: %{name}-apache.conf @@ -112,7 +116,7 @@ Dokumentacja do Cacti w formacie HTML. %prep %setup -q -%patch0 -p1 +%{?with_pa:%patch0 -p1} %patch1 -p1 %patch2 -p1 %patch3 -p1 @@ -134,6 +138,7 @@ rm -rf lib/adodb rm -f log/.htaccess rm -f cli/.htaccess rm -f rra/.placeholder +rm -f rra/.htaccess # must require libs to get fatals on missing files, not include %{__sed} -i -e ' @@ -150,7 +155,6 @@ chmod a+rx scripts/*.php cli/*.php find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f - # make sure cacti runs out of the box sed -e "s,new_install,%{version}," -i sql/cacti.sql