]> git.pld-linux.org Git - packages/cacti-plugin-superlinks.git/commitdiff
- up to 1.3, update deps, enhance desc auto/ac/cacti-plugin-superlinks-1_3-1 auto/th/cacti-plugin-superlinks-1_3-1
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 27 Oct 2011 20:48:33 +0000 (20:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-plugin-superlinks.spec -> 1.8

cacti-plugin-superlinks.spec

index 4d09ef9064a48a5f83f9beeaf7a00aeb8729bfe4..2c03df3f74fdbe243d88e65e1518dda087b10484 100644 (file)
@@ -1,18 +1,29 @@
+# TODO
+# - use system fonts package for dejavu fonts
+# - use system jquery package
 %define                plugin  superlinks
-%include       /usr/lib/rpm/macros.perl
+%define                php_min_version 5.1.1
+%include       /usr/lib/rpm/macros.php
 Summary:       Plugin for Cacti - SuperLinks
 Summary(pl.UTF-8):     Wtyczka do Cacti - SuperLinks (dodatkowe odnośniki)
-Name:          cacti-plugin-superlinks
-Version:       0.72
+Name:          cacti-plugin-%{plugin}
+Version:       1.3
 Release:       1
 License:       GPL v2
 Group:         Applications/WWW
-Source0:       http://wotsit.thingy.com/haj/cacti/%{plugin}-%{version}.zip
-# Source0-md5: 02fb63902642b496d68824358fabeced
-URL:           http://wotsit.thingy.com/haj/cacti/superlinks-plugin.html
-BuildRequires: rpm-perlprov
-BuildRequires: unzip
+Source0:       http://docs.cacti.net/_media/plugin:superlinks-v%{version}-1.tgz
+# Source0-md5: bed336cf2271d0e1159220e8e9624aa2
+URL:           http://docs.cacti.net/plugin:superlinks
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
+BuildRequires: rpmbuild(macros) >= 1.553
 Requires:      cacti
+Requires:      cacti(pia) >= 2.9
+Requires:      php-common >= 4:%{php_min_version}
+Requires:      php-date
+Requires:      php-gd
+Requires:      php-mysql
+Requires:      php-pcre
+Requires:      php-session
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -20,34 +31,29 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                plugindir               %{cactidir}/plugins/%{plugin}
 
 %description
-This is a plugin for the Cacti Plugin Architecture created by Jimmy
-Conner for Cacti 0.8.x (0.9.0 is slated to have a new plugin system
-from the start). It it lets you have any number of pages of arbitrary
-HTML content behind tabs at the top of the page or extra entries on
-the Console menu. You could use this to integrate other tools into
-Cacti - say you want to have links to Smokeping, or Request Tracker,
-or Nagios...
+Cacti plugin that allows the Cacti UI to be extended in ways that make
+it easy for non plugin developers to use.
 
-It is intended as a replacement for the Links plugin that I wrote some
-time ago, but with the following key improvements:
-
-- Any number of tabs/menu items
-- For tabs, a Cacti-style tab image is generated, so your additional
-  pages are integrated into Cacti better
-- It uses Weathermap's access-control code, so you can make tabs that
-  are only visible to certain users
-- In addition to tabs, there is the option to make Console Menu items,
-  and 'Welcome Page' items.
-- You can embed an external webpage directly, without writing any
-  HTML, if that's all you need.
+Features:
+- It supports ANY number of extra tabs
+- It will dynamically create the Tab graphics as pages are created
+- It has the same user-based access-control as Weathermap
+- It allows you to add new links to the Console menu as well as tabs
+  and also blocks of content to the 'Welcome' front page.
+- Allows you to directly embed another website/application without
+  writing any HTML
+- Allows you to modify the look of the login screen, to add your
+  company's branding.
+- It's also handy if you are a plugin developer, and need some tab
+  graphics!
 
 %description -l pl.UTF-8
 To jest bardzo prosta wtyczka dla architektury wtyczek Cacti
 stworzonej przez Jimmy'ego Smitha dla Cacti 0.8.x (0.9.0 ma mieć nowy
 system wtyczek). Pozwala podpiąć dowolną liczbę stron HTML dowolnej
-treści pod zakładki na górnej części strony lub jako dodatkowe wpisy
-w menu Console. Wtyczki tej można używać do integracji innych narzędzi
-Cacti - w ten sposób można mieć w Cacti odnośniki do Smokepinga,
+treści pod zakładki na górnej części strony lub jako dodatkowe wpisy w
+menu Console. Wtyczki tej można używać do integracji innych narzędzi w
+Cacti - w ten sposób można mieć w Cacti odnośniki do Smokepinga,
 Request Trackera czy Nagiosa.
 
 Wtyczka ma zastąpić wtyczkę Links tego samego autora, napisaną
@@ -63,14 +69,15 @@ wcześniej; ma następujące rozszerzenia:
   jakiegokolwiek HTML-a.
 
 %prep
-%setup -q -n %{plugin}
-# undos the source
-find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
+%setup -qc
+%undos -f php,inc
+
+mv %{plugin}/{README,COPYING} .
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{plugindir}
-cp -a . $RPM_BUILD_ROOT%{plugindir}
+cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.061221 seconds and 4 git commands to generate.