]> git.pld-linux.org Git - packages/cacti-plugin-tools.git/blame - cacti-plugin-tools.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cacti-plugin-tools.git] / cacti-plugin-tools.spec
CommitLineData
96713cb8 1%define plugin tools
2c4206b0 2%define php_min_version 5.0.0
2c4206b0 3Summary: Plugin for Cacti - Network Tools
d8062bf5 4Summary(pl.UTF-8): Wtyczka do Cacti - Tools
2c4206b0 5Name: cacti-plugin-%{plugin}
9bd3f6dd 6Version: 0.3
4c7b0c27 7Release: 7
80a580fe
MWP
8License: GPL v2
9Group: Applications/WWW
2c4206b0
ER
10Source0: http://mirror.cactiusers.org/downloads/plugins/%{plugin}-%{version}.tar.gz
11# Source0-md5: 3011d05efeca1a0d3485fe6f7d328bc1
80a580fe 12URL: http://www.cactiusers.org/
2c4206b0 13BuildRequires: rpmbuild(macros) >= 1.554
80a580fe 14Requires: cacti
4c7b0c27 15Requires: php(core) >= %{php_min_version}
e1f6cc48 16Requires: php(pcre)
80a580fe
MWP
17BuildArch: noarch
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
96713cb8
ER
20%define cactidir /usr/share/cacti
21%define plugindir %{cactidir}/plugins/%{plugin}
80a580fe
MWP
22
23%description
2c4206b0 24This plugin adds Network Tools to the Utilities section of Cacti.
80a580fe 25
9bf30a47 26%description -l pl.UTF-8
487f63db 27Wtyczka do Cacti - Tools.
80a580fe
MWP
28
29%prep
2c4206b0
ER
30%setup -qc
31mv %{plugin}/{LICENSE,README} .
80a580fe
MWP
32
33%install
34rm -rf $RPM_BUILD_ROOT
96713cb8 35install -d $RPM_BUILD_ROOT%{plugindir}
2c4206b0 36cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
80a580fe
MWP
37
38%clean
39rm -rf $RPM_BUILD_ROOT
40
41%files
42%defattr(644,root,root,755)
94e3570f 43%doc README
96713cb8 44%{plugindir}
This page took 0.066649 seconds and 4 git commands to generate.