]>
Commit | Line | Data |
---|---|---|
1 | %define plugin passwd | |
2 | %define php_min_version 5.0.0 | |
3 | Summary: Plugin for Cacti - passwd | |
4 | Summary(pl.UTF-8): Wtyczka do Cacti - passwd | |
5 | Name: cacti-plugin-passwd | |
6 | Version: 0.2 | |
7 | Release: 1 | |
8 | License: GPL v2 | |
9 | Group: Applications/WWW | |
10 | Source0: http://gilles.boulon.free.fr/passwd/%{plugin}-0.1-modified-%{version}.zip | |
11 | # Source0-md5: 8c94eefb399b3b904e6c0ba5994d752c | |
12 | URL: http://forums.cacti.net/viewtopic.php?t=14751 | |
13 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
14 | BuildRequires: rpmbuild(macros) >= 1.553 | |
15 | BuildRequires: unzip | |
16 | Requires: cacti | |
17 | Requires: php-common >= 4:%{php_min_version} | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %define cactidir /usr/share/cacti | |
22 | %define plugindir %{cactidir}/plugins/%{plugin} | |
23 | ||
24 | %description | |
25 | Plugin for Cacti - user changing passwords. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Wtyczka do Cacti - zmiana hasła przez użytkownika. | |
29 | ||
30 | %prep | |
31 | %setup -qc | |
32 | ||
33 | %undos -f php,inc | |
34 | mv %{plugin}/{LICENSE,README} . | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | install -d $RPM_BUILD_ROOT%{plugindir} | |
39 | cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir} | |
40 | ||
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %doc README | |
47 | %{plugindir} |