diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-12-17 14:00:29 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-12-17 14:00:29 +0100 |
commit | 8db60e0987f1aeeb9693db807908c4e5a34b5b9c (patch) | |
tree | cc624fda0a2b6252a47bfdcad82853b961b2db7d /glpi-behaviors-dev.spec | |
parent | 50da6b8a683967df56ad1b181b8739234d69fe9c (diff) |
glpi-behaviors: duplicate spec
Diffstat (limited to 'glpi-behaviors-dev.spec')
-rw-r--r-- | glpi-behaviors-dev.spec | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/glpi-behaviors-dev.spec b/glpi-behaviors-dev.spec new file mode 100644 index 0000000..ecb0ab6 --- /dev/null +++ b/glpi-behaviors-dev.spec @@ -0,0 +1,108 @@ +# spec file for glpi-behaviors +# +# Copyright (c) 2012-2014 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/3.0/ +# +# Please, preserve the changelog entries +# +%global pluginname behaviors + +Name: glpi-behaviors +Version: 0.84.3 +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.indepnet.net/projects/behaviors + +Source0: https://forge.indepnet.net/attachments/download/1904/glpi-behaviors-0.84.3.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: gettext + +Requires: glpi >= 0.84 +Requires: glpi < 0.85 + + +%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 +rm -rf %{buildroot} + +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 + + +%clean +rm -rf %{buildroot} + + +%files -f %{name}.lang +%defattr(-,root,root,-) +%{!?_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 +* 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 + |