summaryrefslogtreecommitdiffstats
path: root/glpi-dumpentity.spec
blob: 27025d0a027243c329772eb4a084261652091441 (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
%global pluginname   dumpentity
#global svnrelease   101

Name:           glpi-dumpentity
Version:        1.3.1
%if 0%{?svnrelease}
Release:        0.1.svn%{svnrelease}%{?dist}
%else
Release:        1.1%{?dist}
%endif
Summary:        GLPI Plugin for entity export
Summary(fr):    Extension GLPI d'export d'entité

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

%if 0%{?svnrelease}
# svn export -r 101 https://forge.glpi-project.org/svn/dumpentity/trunk dumpentity
# tar czf glpi-dumpentity-1.2.0-101.tar.gz dumpentity
Source0:        glpi-dumpentity-%{version}-%{svnrelease}.tar.gz
%else
Source0:        https://forge.glpi-project.org/attachments/download/1216/glpi-dumpentity-1.3.1.tar.gz
%endif


BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

Requires:       glpi >= 0.83.3
Requires:       glpi <  0.84


%description
Plugin which allow to export data from a entity to CSV.

Designed to work with client using loadentity.


%description -l fr
Extension permettant de réaliser une exportation des données 
d'une entité en CSV.

Conçue pour fonctionner avec les clients utilisant loadentity.


%prep
%setup -q -c

# dos2unix to avoid rpmlint warnings
for doc in %{pluginname}/docs/* ; do
    sed -i -e 's/\r//' $doc
done
mv %{pluginname}/docs docs

sed -i -e s/mysql_escape_string/mysql_real_escape_string/ \
    %{pluginname}/inc/model.class.php


%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
* Tue Jun 28 2016 Johan Cwiklinski <jcwiklinski AT teclib DOT com> - 1.3.1-1.1
- Change URL and Source

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

* Fri Apr 06 2012 Remi Collet <Fedora@FamilleCollet.com> - 1.3.0-1
- version 1.3.0 for GLPI 0.83
  https://forge.indepnet.net/projects/dumpentity/versions/651

* Tue Oct 12 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.2.0-1
- version 1.2.0 and GLPI 0.78 released

* Wed Jul 07 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.2.0-0.1.svn101
- new snapshot

* Fri Jun 18 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.2.0-0.1.svn100
- update to 1.2.0 for glpi 0.78 RC (svn snapshot)

* Mon Jul 20 2009 Remi Collet <RPMS@FamilleCollet.com> - 1.0.1-1
- update to 1.0.1 for glpi 0.72

* Sat Jul 12 2008 Remi Collet <RPMS@FamilleCollet.com> - 0.2-1
- update to 0.2 for glpi 0.71

* Wed Jan 02 2008 Remi Collet <RPMS@FamilleCollet.com> - 0.2-0.20080102
- new SVN snapshot
- requires GLPI >= 0.71

* Sun Nov 11 2007 Remi Collet <RPMS@FamilleCollet.com> - 0.1-0.20071111
- new SVN snapshot

* Wed Oct 24 2007 Remi Collet <RPMS@FamilleCollet.com> - 0.1-0.20071024
- new SVN snapshot

* Sat Oct 20 2007 Remi Collet <RPMS@FamilleCollet.com> - 0.1-0.20071020
- Initial RPM