]> git.pld-linux.org Git - projects/template-specs.git/blame - cacti-template.spec
- fix doc packaging
[projects/template-specs.git] / cacti-template.spec
CommitLineData
776aa482
ER
1%define template TEMPLATE_NAME
2Summary: Template for Cacti -
3Name: cacti-template-%{template}
30a2f564
MWP
4Version: 0.1
5Release: 0.1
6License: GPL v2
7Group: Applications/WWW
776aa482 8Source0: http://mirror.cactiusers.org/downloads/templates/%{namesrc}-%{version}.zip
1a1cbbee 9# Source0-md5:
30a2f564 10URL: http://www.cactiusers.org/
d0c82de0
ER
11BuildRequires: rpmbuild(macros) >= 1.554
12Requires: cacti >= 0.8.7e-8
30a2f564
MWP
13BuildArch: noarch
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
0fa09347
ER
16%define cactidir /usr/share/cacti
17%define resourcedir %{cactidir}/resource
18%define scriptsdir %{cactidir}/scripts
30a2f564
MWP
19
20%description
776aa482 21Template for Cacti -
30a2f564 22
4fc7041e
JB
23#%description -l pl.UTF-8
24#Wtyczka do Cacti -
30a2f564
MWP
25
26%prep
10e6155d 27%setup -q -c
776aa482 28%setup -q -n cacti-%{template}-%{version}
30a2f564 29
9c42ca44
MWP
30# undos the source
31find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
32
30a2f564
MWP
33%install
34rm -rf $RPM_BUILD_ROOT
0fa09347
ER
35install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}}
36cp -a *.xml $RPM_BUILD_ROOT%{resourcedir}
d0c82de0 37install -p *.php $RPM_BUILD_ROOT%{scriptsdir}
0fa09347
ER
38
39%post
d0c82de0 40%cacti_import_template %{resourcedir}/TEMPLATE_NAME.xml
30a2f564
MWP
41
42%clean
43rm -rf $RPM_BUILD_ROOT
44
45%files
46%defattr(644,root,root,755)
1a1cbbee 47%doc LICENSE README
776aa482
ER
48%attr(755,root,root) %{scriptsdir}/TEMPLATE_NAME.php
49%{resourcedir}/TEMPLATE_NAME.xml
This page took 0.747965 seconds and 4 git commands to generate.