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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
|
# spec file for qelectrotech
#
# Copyright (c) 2009-2015 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/3.0/
#
# Please, preserve the changelog entries
#
%global svnrel 3658
%global rdate 20141227
%global upver 0.4
Name: qelectrotech
Summary: An electric diagrams editor
Summary(ar): مُحرّر مخططات كهربائية
Summary(ca): Editar esquemes elèctrics
Summary(cs): Editor výkresů elektrických obvodů
Summary(de): Zeichenprogramm für Schaltpläne
Summary(el): Επεξεργασία ηλεκτρικών διαγραμμάτων
Summary(es): Un editor de esquemas eléctricos
Summary(fr): Un éditeur de schémas électriques
Summary(hr): Uredi elektro sheme
Summary(it): Un programma per disegnare schemi elettrici
Summary(pl): Edytor schematów elektrycznych
Summary(pt): Um editor de esquemas eléctricos
Summary(ru): Редактор электрических схем
# Upstream version is a float so 0.11 < 0.2 < 0.21 < 0.3
# So use %.2f with upstream acknowledgment
# Remember to check rdate and upver macro on each update
Version: 0.40
%if 0%{?svnrel}
Release: 0.5.svn%{svnrel}%{?dist}
%else
Release: 0.4.rc2%{?dist}
%endif
Group: Applications/Engineering
# Prog is GPLv2 - Symbols/Elements are Creative Commons Attribution
License: GPLv2+
Url: http://qelectrotech.org/
%if 0%{?svnrel}
# svn export -r 2287 svn://svn.tuxfamily.org/svnroot/qet/qet/trunk qelectrotech-0.3-svn2287
# tar czf qelectrotech-0.3a-svn2287.tgz qelectrotech-0.3a-svn2287
Source0: qelectrotech-%{upver}-svn%{?svnrel}.tgz
%else
Source0: http://download.tuxfamily.org/qet/tags/%{rdate}/qelectrotech-%{upver}-src.tar.gz
%endif
BuildRequires: desktop-file-utils
BuildRequires: qt4-devel >= 4.8
Requires: qelectrotech-symbols = %{version}-%{release}
Requires: electronics-menu
%description
QElectroTech is a Qt4 application to design electric diagrams. It uses XML
files for elements and diagrams, and includes both a diagram editor and an
element editor.
%description -l cs
QElectroTech je aplikací Qt4 určenou pro návrh nákresů elektrických obvodů.
Pro prvky a nákresy používá soubory XML, a zahrnuje v sobě jak editor nákresů,
tak editor prvků.
%description -l el
Το QElectroTech είναι μια εφαρμογή Qt4 για σχεδίαση ηλεκτρικών διαγραμμάτων.
Χρησιμοποιεί αρχεία XML για στοιχεία και διαγράμματα, και περιλαμβάνει
επεξεργαστή διαγραμμάτων καθώς και επεξεργαστή στοιχείων.
%description -l es
QElectroTech es una aplicación Qt4 para diseñar esquemas eléctricos.
Utiliza archivos XML para los elementos y esquemas, e incluye un editor
de esquemas y un editor de elemento.
%description -l fr
QElectroTech est une application Qt4 pour réaliser des schémas électriques.
QET utilise le format XML pour ses éléments et ses schémas et inclut un
éditeur de schémas ainsi qu'un éditeur d'élément.
%description -l it
QElectroTech è una applicazione fatta in Qt4 per disegnare schemi elettrici.
QET usa il formato XML per i suoi elementi e schemi, includendo anche un
editor per gli stessi.
%description -l pl
QElectroTech to aplikacja napisana w Qt4, przeznaczona do tworzenia schematów
elektrycznych. Wykorzystuje XML do zapisywania plików elementów i projektów.
Posiada edytor schematów i elementów.
%description -l pt
QElectroTech é uma aplicação baseada em Qt4 para desenhar esquemas eléctricos.
QET utiliza ficheiros XML para os elementos e para os esquemas e inclui um
editor de esquemas e um editor de elementos.
%description -l ru
QElectroTech - приложение написанное на Qt4 и предназначенное для разработки
электрических схем. Оно использует XML-файлы для элементов и схем, и включает,
как редактор схем, так и редактор элементов.
%package symbols
Summary: Elements collection for QElectroTech
Summary(cs): Sbírka prvků pro QElectroTech
Summary(el): Συλλογή στοιχείων του QElectroTech
Summary(es): Collección de elementos para QElectroTech
Summary(fr): Collection d'éléments pour QElectroTech
Summary(it): Collezione di elementi per QElectroTech
Summary(pl): Kolekcja elementów QElectroTech
Summary(pt): Colecção de elementos para QElectroTech
Summary(ru): Коллекция элементов для QElectroTech
Group: Applications/Productivity
License: CC-BY
BuildArch: noarch
Requires: qelectrotech = %{version}-%{release}
%description symbols
Elements collection for QElectroTech.
%description -l cs symbols
Sbírka prvků pro QElectroTech.
%description -l el symbols
Συλλογή στοιχείων του QElectroTech.
%description -l es symbols
Collección de elementos para QElectroTech.
%description -l fr symbols
Collection d'éléments pour QElectroTech.
%description -l it symbols
Collezione di elementi per QElectroTech.
%description -l pl symbols
Kolekcja elementów QElectroTech.
%description -l pt symbols
Colecção de elementos para QElectroTech.
%description -l ru symbols
Коллекция элементов для QElectroTech.
%prep
%if 0%{?svnrel}
%setup -q -n %{name}-%{upver}-svn%{svnrel}
%else
%setup -q -n %{name}-%{upver}-src
%endif
sed -e s,/usr/local/,%{_prefix}/, \
-e /QET_MAN_PATH/s,'man/','share/man', \
-e /QET_MIME/s,../,, \
-i %{name}.pro
qmake-qt4 %{name}.pro
%build
make %{?_smp_mflags}
%install
rm -f *.lang
INSTALL_ROOT=%{buildroot} make install
# We only provides UTF-8 files
rm -rf %{buildroot}/usr/doc/%{name} \
%{buildroot}%{_datadir}/%{name}/examples \
%{buildroot}%{_mandir}/fr.ISO8859-1 \
%{buildroot}%{_mandir}/fr
mv %{buildroot}%{_mandir}/fr.UTF-8 %{buildroot}%{_mandir}/fr
desktop-file-install --vendor="" \
--add-category=Electronics \
--dir=%{buildroot}%{_datadir}/applications/ \
%{buildroot}%{_datadir}/applications/%{name}.desktop
# QT translation provided by QT.
rm -f %{buildroot}%{_datadir}/%{name}/lang/qt_*.qm
%find_lang qet --with-qt
%find_lang qelectrotech --with-man
cat qet.lang >>qelectrotech.lang
%post
/usr/bin/update-desktop-database &>/dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor
/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
%postun
/usr/bin/update-desktop-database &>/dev/null || :
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
fi
%posttrans
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%{!?_licensedir:%global license %%doc}
%files -f %{name}.lang
%doc CREDIT examples
%license LICENSE
%{_bindir}/%{name}
%if 0%{?fedora} < 20
%exclude %{_datadir}/appdata/%{name}.appdata.xml
%else
%{_datadir}/appdata/%{name}.appdata.xml
%endif
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/application/x-qet-*.xml
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/mimelnk/application/x-qet-*.desktop
%{_datadir}/icons/hicolor/*/*/*.png
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/lang
%{_mandir}/man1/%{name}.*
%files symbols
%license ELEMENTS.LICENSE
%{_datadir}/%{name}/elements
%{_datadir}/%{name}/titleblocks
%changelog
* Fri Jan 30 2015 Remi Collet <remi@fedoraproject.org> - 0.40-0.5.svn3658
- Update to 0.4 snapshot revision 3658
* Sat Dec 27 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.4.rc2
- Update to 0.4rc1
* Mon Nov 10 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.3.rc1
- Update to 0.4rc1
* Mon Nov 3 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.2.beta
- Update to 0.4b
* Sun Oct 12 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.1.svn3371
- Update to 0.4 snapshot revision 3371
* Wed Oct 01 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.1.svn3340
- Update to 0.4 snapshot revision 3340
* Sat Sep 13 2014 Remi Collet <remi@fedoraproject.org> - 0,40-0.1.svn3309
- Update to 0.4 snapshot revision 3309
* Wed Aug 20 2014 Remi Collet <remi@fedoraproject.org> - 0,40-0.1.svn3288
- Update to 0.4 snapshot revision 3288
- update mime scriptlets, drop extraneous scriptlet deps
* Sun Aug 17 2014 Remi Collet <remi@fedoraproject.org> - 0,40-0.1.svn3278
- Update to 0.4 snapshot revision 3278
- fix license handling
* Fri Jul 18 2014 Remi Collet <remi@fedoraproject.org> - 0,40-0.1.svn3221
- Update to 0.4 snapshot revision 3221
* Tue Jun 17 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.1.svn3144
- Update to 0.4 snapshot revision 3144
* Fri May 09 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.1.svn3060
- Update to 0.4 snapshot revision 3060
* Thu Apr 24 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.1.svn3024
- Update to 0.4 snapshot revision 3024
* Fri Mar 21 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.1.svn2946
- Update to 0.4 snapshot revision 2946
* Thu Mar 20 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.1.svn2943
- Update to 0.4 snapshot revision 2943
* Mon Mar 10 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.1.svn2920
- Update to 0.4 snapshot revision 2920
* Thu Feb 27 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.1.svn2878
- Update to 0.4 snapshot revision 2878
* Thu Feb 20 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.1.svn2865
- Update to 0.4 snapshot revision 2865
* Wed Jan 29 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.1.svn2788
- Update to 0.4 snapshot revision 2788
* Tue Jan 28 2014 Remi Collet <remi@fedoraproject.org> - 0.30-2.svn2786
- Update to 0.3 snapshot revision 2786
* Sat Sep 28 2013 Remi Collet <remi@fedoraproject.org> - 0.30-1
- Version 0.3 finale
* Tue Sep 10 2013 Remi Collet <remi@fedoraproject.org> - 0.30-0.10.rc
- 0.3 Release Candidate
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-0.9.beta
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Tue Jun 18 2013 Remi Collet <remi@fedoraproject.org> - 0.30-0.8.beta
- 0.3beta
* Tue Apr 16 2013 Remi Collet <remi@fedoraproject.org> - 0.30-0.7.svn2116
- pull latest changes from SVN
* Sun Feb 24 2013 Remi Collet <remi@fedoraproject.org> - 0.30-0.6.svn2045
- pull latest changes from SVN (gcc 4.8 fixes)
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-0.5.svn1844
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-0.4.svn1844
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue May 15 2012 Remi Collet <remi@fedoraproject.org> - 0.30-0.3.svn1844
- pull latest change (packaging request) from SVN
- preserve timestamps on elements collection
- add missing titleblocks
- add cs + pl summary and description
* Sun May 13 2012 Remi Collet <remi@fedoraproject.org> - 0.30-0.2.alpha
- modernize scriptlets
* Sun May 13 2012 Remi Collet <remi@fedoraproject.org> - 0.30-0.1.alpha
- update to 0.3a
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-4.1
- Rebuilt for c++ ABI breakage
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-3.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Tue Sep 07 2010 Remi Collet <Fedora@FamilleCollet.com> - 0.22-1.1
- set symbols as noarch on EL-6
* Sat Mar 13 2010 Remi Collet <Fedora@FamilleCollet.com> - 0.22-1
- update to 0.22
* Sat Mar 06 2010 Remi Collet <Fedora@FamilleCollet.com> - 0.21-1
- update to 0.21
- more translations (sumnary and description)
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Sat Jun 27 2009 Remi Collet <Fedora@FamilleCollet.com> - 0.20-1
- update to 0.2 finale
* Sat Jun 20 2009 Remi Collet <Fedora@FamilleCollet.com> - 0.20-0.2.rc2
- update to RC2
* Thu Jun 18 2009 Remi Collet <Fedora@FamilleCollet.com> - 0.20-0.2.rc1
- changes from review (#505867)
- add multi-lang sumnary (taken from .desktop)
- add multi-lang description (taken from README)
- rename qlectrotech-elements to -symbols
- use electronics-menu
* Sun Jun 14 2009 Remi Collet <Fedora@FamilleCollet.com> - 0.20-0.1.rc1
- initial RPM for fedora
|