]>
Commit | Line | Data |
---|---|---|
281c382c | 1 | %define plugin update |
e4a7ad87 MWP |
2 | %include /usr/lib/rpm/macros.perl |
3 | Summary: Plugin for Cacti - Update | |
756c6a5c | 4 | Summary(pl.UTF-8): Wtyczka do Cacti - Update |
e4a7ad87 | 5 | Name: cacti-plugin-update |
e80170b2 | 6 | Version: 0.4 |
5a727527 | 7 | Release: 2 |
e4a7ad87 MWP |
8 | License: GPL v2 |
9 | Group: Applications/WWW | |
281c382c | 10 | Source0: http://mirror.cactiusers.org/downloads/plugins//%{plugin}-%{version}.zip |
e80170b2 | 11 | # Source0-md5: e594f4fd5ac9d35faac5fa5cdebe043e |
5a727527 | 12 | Patch0: %{name}-adodb.patch |
e4a7ad87 MWP |
13 | URL: http://www.cactiusers.org/ |
14 | BuildRequires: rpm-perlprov | |
a74cb45a | 15 | BuildRequires: unzip |
e4a7ad87 MWP |
16 | Requires: cacti |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
281c382c ER |
20 | %define cactidir /usr/share/cacti |
21 | %define plugindir %{cactidir}/plugins/%{plugin} | |
e4a7ad87 MWP |
22 | |
23 | %description | |
f158eb0e JB |
24 | It's an "administrative" plugin to help you keep track of all your |
25 | plugin versions. It will also check for Updates to Cacti, the Plugin | |
e4a7ad87 | 26 | Architecture, and your Plugins and will alert you when it finds new |
d2182777 | 27 | versions. |
e4a7ad87 | 28 | |
d2b52da4 JR |
29 | %description -l pl.UTF-8 |
30 | To jest wtyczka "administracyjna" pomagająca śledzić wersje wszystkich | |
f158eb0e JB |
31 | posiadanych wtyczek. Ponadto sprawdza uaktualnienia do Cacti, |
32 | architektury wtyczek oraz samych wtyczek i ostrzega, kiedy znajdzie | |
d2182777 | 33 | nowe wersje. |
e4a7ad87 MWP |
34 | |
35 | %prep | |
e80170b2 | 36 | %setup -q -c |
5a727527 | 37 | %patch0 -p1 |
e4a7ad87 MWP |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
281c382c ER |
41 | install -d $RPM_BUILD_ROOT%{plugindir} |
42 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
e4a7ad87 MWP |
43 | |
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
0e040556 | 49 | %doc README |
281c382c | 50 | %{plugindir} |