summaryrefslogtreecommitdiffstats
path: root/glpi-behaviors.spec
blob: 39200a0167fe48875bbd575171a8e100c36f7bb7 (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# remirepo spec file for glpi-behaviors
#
# Copyright (c) 2012-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
%global pluginname   behaviors

Name:           glpi-behaviors
Version:        1.6.1
Release:        1%{?dist}
Summary:        Plugin to add optional behaviors to GLPI
Summary(fr):    Extension ajoutant des comportements optionnels à GLPI

Group:          Applications/Internet
License:        AGPLv3+
URL:            https://forge.glpi-project.org/projects/behaviors

Source0:        https://forge.glpi-project.org/attachments/download/2219/glpi-behaviors-1.6.1.tar.gz

BuildArch:      noarch
BuildRequires:  gettext

Requires:       glpi >= 9.1.5
Requires:       glpi <  9.2


%description
This plugin allows you to add optional behaviors to GLPI.

%description -l fr
Cette extension permet d’ajouter des comportements optionnels à GLPI.


%prep
%setup -q -c

# Create link to LICENSE for standard doc folder
ln -s %{_datadir}/glpi/plugins/%{pluginname}/LICENSE LICENSE

# For developer only
rm -rf %{pluginname}/tools


%build
# Regenerate the locales
for po in %{pluginname}/locales/*.po
do
   msgfmt $po -o $(dirname $po)/$(basename $po .po).mo
done


%install
mkdir -p %{buildroot}/%{_datadir}/glpi/plugins
cp -ar %{pluginname} %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}

for i in %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}/locales/*
do
  lang=$(basename $i)
  echo "%lang(${lang:0:2}) %{_datadir}/glpi/plugins/%{pluginname}/locales/${lang}"
done | tee %{name}.lang


%files -f %{name}.lang
%{!?_licensedir:%global license %%doc}
%license LICENSE
%dir %{_datadir}/glpi/plugins/%{pluginname}
%dir %{_datadir}/glpi/plugins/%{pluginname}/locales
%{_datadir}/glpi/plugins/%{pluginname}/*.php
%{_datadir}/glpi/plugins/%{pluginname}/front
%{_datadir}/glpi/plugins/%{pluginname}/inc
# Keep here as required from interface
%{_datadir}/glpi/plugins/%{pluginname}/LICENSE


%changelog
* Fri Jan 12 2018 Remi Collet <remi@remirepo.net> - 1.6.1-1
- version 1.6.1 for GLPI 9.1
  https://forge.glpi-project.org/versions/1251

* Wed Oct 18 2017 Remi Collet <remi@remirepo.net> - 1.6.0-1
- version 1.6.0 for GLPI 9.1
  https://forge.glpi-project.org/versions/1245

* Tue Oct  3 2017 Remi Collet <remi@remirepo.net> - 1.5.2-1
- version 1.5.2 for GLPI 9.1.5 and 9.2
  https://forge.glpi-project.org/versions/1240

* Tue Oct  3 2017 Remi Collet <remi@remirepo.net> - 1.5.1-1
- version 1.5.1 for GLPI 9.1.5 and 9.2
  https://forge.glpi-project.org/versions/1239

* Wed Aug 16 2017 Remi Collet <remi@remirepo.net> - 1.5.0-1
- version 1.5.0 for GLPI 9.1.5
  https://forge.glpi-project.org/versions/1230

* Tue Jul  4 2017 Remi Collet <remi@remirepo.net> - 1.4.0-1
- version 1.4.0 for GLPI 9.1
  https://forge.glpi-project.org/versions/1230

* Fri Mar 03 2017 Johan Cwiklinski <jcwiklinski AT teclib DOT com> - 1.3-1
- version 1.3 got GLPI 9.1
  https://forge.glpi-project.org/versions/1224

* Tue Nov  8 2016 Remi Collet <remi@fedoraproject.org> - 1.2-1
- version 1.2 for GLPI 9.1
  https://forge.glpi-project.org/versions/1214

* Tue Nov  8 2016 Remi Collet <remi@fedoraproject.org> - 1.1-1
- version 1.1
  https://forge.glpi-project.org/versions/1209

* Thu Feb 25 2016 Remi Collet <remi@fedoraproject.org> - 1.0-1
- version 1.0
  https://forge.glpi-project.org/versions/1182

* Tue Oct  6 2015 Remi Collet <remi@fedoraproject.org> - 0.90-1
- version 0.90
  https://forge.glpi-project.org/versions/1101

* Wed Dec 17 2014 Remi Collet <remi@fedoraproject.org> - 0.85-1
- version 0.85
  https://forge.indepnet.net/versions/922

* Mon Nov 17 2014 Remi Collet <remi@fedoraproject.org> - 0.84.3-1
- version 0.84.3
  https://forge.indepnet.net/versions/1100

* Mon Sep  8 2014 Remi Collet <remi@fedoraproject.org> - 0.84.2-1
- version 0.84.2 for GLPI 0.84
  https://forge.indepnet.net/versions/1021

* Mon Sep 30 2013 Remi Collet <remi@fedoraproject.org> - 0.84.1-1
- version 0.84.1 for GLPI 0.84

* Fri Jan 11 2013 Remi Collet <Fedora@FamilleCollet.com> - 0.83.4-1
- version 0.83.4 for GLPI >= 0.83.4
  https://forge.indepnet.net/projects/behaviors/versions/787

* Thu Jul 12 2012 Remi Collet <Fedora@FamilleCollet.com> - 0.83.3-1
- version 0.83.3 for GLPI 0.83.3
  https://forge.indepnet.net/projects/behaviors/versions/752

* Thu Apr 19 2012 Remi Collet <Fedora@FamilleCollet.com> - 0.83.0-1
- Initial RPM