]> git.pld-linux.org Git - packages/cacti-plugin-superlinks.git/blobdiff - cacti-plugin-superlinks.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cacti-plugin-superlinks.git] / cacti-plugin-superlinks.spec
index 562a1771a5ead76c706e8127968e619ded84b948..4e9a4e147130d04b546dfa0ca7efafe80c53cf93 100644 (file)
@@ -1,51 +1,59 @@
-%define                namesrc superlinks
-%include       /usr/lib/rpm/macros.perl
-Summary:       Plugin for Cacti - SuperLinks
+# TODO
+# - use system fonts package for dejavu fonts
+# - use system jquery package
+%define                plugin  superlinks
+%define                php_min_version 5.1.1
+Summary:       Adds Tabs, Menu Items and allows several other UI customisations
 Summary(pl.UTF-8):     Wtyczka do Cacti - SuperLinks (dodatkowe odnośniki)
-Name:          cacti-plugin-superlinks
-Version:       0.71
-Release:       1
+Name:          cacti-plugin-%{plugin}
+Version:       1.4
+Release:       2
 License:       GPL v2
 Group:         Applications/WWW
-Source0:       http://wotsit.thingy.com/haj/cacti/%{namesrc}-%{version}.zip
-# Source0-md5: 2fe58f1fe66071c90b2c4a9a68ed8fdb
-URL:           http://wotsit.thingy.com/haj/cacti/superlinks-plugin.html
-BuildRequires: rpm-perlprov
+Source0:       http://docs.cacti.net/_media/plugin:superlinks-v%{version}-2.tgz
+# Source0-md5: deefccc64a14195a4ebba7f0a16d3262
+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(core) >= %{php_min_version}
+Requires:      php(date)
+Requires:      php(gd)
+Requires:      php(mysql)
+Requires:      php(pcre)
+Requires:      php(session)
+Obsoletes:     cacti-plugin-links
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                webcactipluginroot /usr/share/cacti/plugins/%{namesrc}
+%define                cactidir                /usr/share/cacti
+%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ą
@@ -61,14 +69,15 @@ wcześniej; ma następujące rozszerzenia:
   jakiegokolwiek HTML-a.
 
 %prep
-%setup -q -n %{namesrc}
-# 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%{webcactipluginroot}
-cp -a * $RPM_BUILD_ROOT%{webcactipluginroot}
+install -d $RPM_BUILD_ROOT%{plugindir}
+cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -76,4 +85,4 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README
-%{webcactipluginroot}
+%{plugindir}
This page took 0.090257 seconds and 4 git commands to generate.