blob: 192882761facbbca7a9f6b92d26cf4438436f550 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
%global pluginname reports
#global svnrelease 215
Name: glpi-reports
Version: 1.6.0
%if 0%{?svnrelease}
Release: 0.1.svn%{svnrelease}%{?dist}
%else
Release: 1%{?dist}
%endif
Summary: GLPI Plugin providing additional reports
Summary(fr): Extension GLPI fournissant des rapports supplémentaires
Group: Applications/Internet
License: GPLv2+
URL: https://forge.indepnet.net/projects/reports
%if 0%{?svnrelease}
# svn export -r 215 https://forge.indepnet.net/svn/reports/trunk reports
# tar czf glpi-reports-1.6.0-215.tar.gz reports
Source0: glpi-%{pluginname}-%{version}-%{svnrelease}.tar.gz
%else
Source0: https://forge.indepnet.net/attachments/download/1094/glpi-reports-1.6.0.tar.gz
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: glpi >= 0.83
Requires: glpi < 0.84
%description
This plugin enables additional reports.
Main features :
* It also plugin allow you to add new reports in a simply way
(one PHP script for the report and one for the translation).
* It handle the right for each new report
* It provides some new reports (as sample)
%description -l fr
Ce plugin fournit des rapports supplémentaires.
Fonctionnalités principales :
* Il permet d’ajouter très facilement de nouveaux rapports (via l’ajout d’un
fichier PHP pour le rapport et un fichier de langue associé).
* Il prend en charge la gestion de droits de tout nouveau rapport ajouté.
* Il fournit quelques rapports (pour exemple)
%prep
%setup -q -c
mv %{pluginname}/docs docs
# dos2unix to avoid rpmlint warnings
for doc in docs/* ; do
sed -i -e 's/\r//' $doc
done
%build
# empty build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_datadir}/glpi/plugins
cp -ar %{pluginname} %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc docs/* %{pluginname}/LICENSE
%{_datadir}/glpi/plugins/%{pluginname}
%changelog
* Fri Apr 06 2012 Remi Collet <Fedora@FamilleCollet.com> - 1.6.0-1
- version 1.6.0
https://forge.indepnet.net/projects/reports/versions/636
* Sun Feb 26 2012 Remi Collet <Fedora@FamilleCollet.com> - 1.6.0-0.1.svn215
- version 1.6.0 for glpi 0.83RC (svn snapshot)
* Thu Jun 30 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.5.0-1
- version 1.5.0 released
* Tue Jun 28 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.5.0-0.1.svn158
- version 1.5.0 for glpi 0.80 (svn snapshot)
* Tue Oct 12 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.4.0-1
- version 1.4.0 and GLPI 0.78 released
* Sat Sep 18 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.4.0-0.1.svn100
- new snapshot
* Sat Sep 04 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.4.0-0.1.svn95
- version 1.4.0 for glpi 0.78 RC (svn snapshot)
- initial RPM
|