/[pkgs]/devel/LabPlot/LabPlot.spec
ViewVC logotype

Contents of /devel/LabPlot/LabPlot.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.20 - (show annotations) (download)
Wed Oct 28 10:57:56 2009 UTC (3 weeks, 6 days ago) by kkofler
Branch: MAIN
CVS Tags: HEAD
Changes since 1.19: +8 -3 lines
* Wed Oct 28 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.6.0.2-8
- fix FTBFS with current GSL (GSL_CONST_CGSM_GAUSS undefined, patch from Debian)
1 Name: LabPlot
2 Version: 1.6.0.2
3 Release: 8%{?dist}
4 Summary: Data Analysis and Visualization
5
6 License: GPLv2+
7 Group: Applications/Engineering
8 URL: http://labplot.sourceforge.net/
9
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11 Source0: http://downloads.sourceforge.net/labplot/%{name}-%{version}.tar.bz2
12
13 Patch0: LabPlot-20080225.patch
14 Patch1: LabPlot-1.6.0.2-define-missing-constant.patch
15
16 BuildRequires: kdelibs3-devel libselinux-devel desktop-file-utils libexif-devel netcdf-devel
17 BuildRequires: gsl-devel ImageMagick-c++-devel fftw-devel jasper-devel qwtplot3d-devel
18 BuildRequires: pstoedit libtool qt-qsa-devel gettext htmldoc audiofile-devel ocaml
19 BuildRequires: liborigin-devel qhull-devel
20
21 ExcludeArch: sparc64 s390 s390x
22
23 Requires: electronics-menu
24
25 %description
26 LabPlot is for scientific 2D and 3D data and function plotting.
27 The various display and analysis functions are explained in the
28 handbook (KDE help center). LabPlot also provides a component
29 for easily viewing the project files in Konqueror.
30
31
32
33 %package doc
34 Summary: Documentation for LabPlot, a Data Analysis and Visualization software
35 Group: Documentation
36 Requires: %{name} = %{version}-%{release}
37
38
39 %description doc
40 This package contains the documentation of LabPlot, a Data Analysis and
41 Visualization software and examples.
42
43
44 %package doc-br
45 Summary: Documentation for LabPlot in Brasilian
46 Group: Documentation
47 Requires: %{name}-doc = %{version}-%{release}
48
49 %description doc-br
50 This package contains the brasilian documentation of LabPlot,
51 a Data Analysis and Visualization software in the PDF format.
52
53
54 %package doc-de
55 Summary: Documentation for LabPlot in German
56 Group: Documentation
57 Requires: %{name}-doc = %{version}-%{release}
58
59 %description doc-de
60 This package contains the german documentation of LabPlot,
61 a Data Analysis and Visualization software in the PDF format.
62
63
64 %package doc-fr
65 Summary: Documentation for LabPlot in French
66 Group: Documentation
67 Requires: %{name}-doc = %{version}-%{release}
68
69 %description doc-fr
70 This package contains the german documentation of LabPlot,
71 a Data Analysis and Visualization software in the PDF format.
72
73
74 %package doc-it
75 Summary: Documentation for LabPlot in Italian
76 Group: Documentation
77 Requires: %{name}-doc = %{version}-%{release}
78
79 %description doc-it
80 This package contains the Italian documentation of LabPlot,
81 a Data Analysis and Visualization software in the PDF format.
82
83
84 %package doc-nl
85 Summary: Documentation for LabPlot in Dutch
86 Group: Documentation
87 Requires: %{name}-doc = %{version}-%{release}
88
89 %description doc-nl
90 This package contains the Dutch documentation of LabPlot,
91 a Data Analysis and Visualization software in the PDF format.
92
93
94 %package doc-pl
95 Summary: Documentation for LabPlot in Polish
96 Group: Documentation
97 Requires: %{name}-doc = %{version}-%{release}
98
99 %description doc-pl
100 This package contains the Polish documentation of LabPlot,
101 a Data Analysis and Visualization software in the PDF format.
102
103 %package doc-sv
104 Summary: Documentation for LabPlot in Swedish
105 Group: Documentation
106 Requires: %{name}-doc = %{version}-%{release}
107
108 %description doc-sv
109 This package contains the Swedish documentation of LabPlot,
110 a Data Analysis and Visualization software in the PDF format.
111
112
113 %prep
114 %setup -q -n %{name}-%{version}
115
116 %patch0 -p1 -b .orig
117 %patch1 -p1 -b .define-missing-constant
118
119
120 %{__sed} -i.system-wide -e 's|\.\./liborigin/libLabPlotorigin.la||' src/Makefile.in
121 %{__sed} -i -e '/^libLabPlot_la_LDFLAGS/s|^\(.*\) \\$|\1 -lorigin \\|' src/Makefile.in
122 %{__sed} -i -e 's|-I../liborigin|-I%{_includedir}/liborigin|' src/Makefile.in
123 %{__sed} -i.symbol -e '/^LIBS =/s|^\(.*\)|\1 -lm|' cephes/Makefile.in
124
125 %{__sed} -i.subdir -e '/^SUBDIR/s|liborigin||' Makefile.in
126 %{__sed} -i "s|Terminal=yes|Terminal=false|" src/%{name}.desktop
127
128 set +x
129 for f in `find . -name \*.map -or -name \*.MAP | sort` ; do
130 echo -n -e "... Fixing the end-of-line encodings of $f \t"
131 sed -i.bak -e 's|\r||g' $f
132 touch -r $f.bak $f
133 %{__rm} -f $f.bak
134 echo "done"
135 done
136 set -x
137
138 %build
139 # for netcdf
140 export CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -I%{_includedir}/netcdf-3"
141 export LDFLAGS="$LDFLAGS -L%{_libdir}/netcdf-3"
142
143 # for qwtplot3d
144 export QWT3D_PATH="$QTDIR"
145
146 # Use of --enable-final: The gsl version 1.7 has a bug which may cause problems.
147 %configure \
148 --disable-final \
149 --disable-static \
150 --disable-texvc \
151 --enable-gsl \
152 --enable-tiff \
153 --enable-fftw3 \
154 --enable-jasper \
155 --enable-ImageMagick \
156 --enable-netcdf \
157 --enable-qhull \
158 --enable-system-netcdf \
159 --enable-audiofile \
160 --enable-gl \
161 --enable-system-qwtplot3d \
162 --enable-libundo \
163 --enable-system-liborigin \
164 --with-qt-librairies=%{_libdir}/qt3
165
166 # clean unused-direct-shlib-dependencies
167 sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
168
169
170 %{__make}
171
172
173 %install
174 %{__rm} -rf %{buildroot}
175 %{__make} DESTDIR=%{buildroot} install
176
177 # LabPlot is considered to be part of Fedora Electronic LAb
178 # Compared to qtiplot, LabPlot provides support to various Oscilloscopes.
179 desktop-file-install --vendor fedora \
180 --delete-original \
181 --remove-category Education \
182 --remove-category Science \
183 --remove-category Physics \
184 --remove-category Math \
185 --add-category "Electronics" \
186 --dir %{buildroot}%{_datadir}/applications \
187 %{buildroot}%{_datadir}/applications/kde/%{name}.desktop
188
189
190 #Building pdf handbook for different languages
191 pushd doc
192 for LANG in * ; do
193 if [ -d $LANG -a $LANG != small_pics -a $LANG != html -a $LANG != fr -a $LANG != Scripting ]; then
194 echo "[Fedora-%{name}] building pdf handbook for %{name}-%{version} (language $LANG) ..."
195
196 %{__mkdir} -p tmp/
197 %{__cp} -p $LANG/index.docbook tmp/
198 %{__cp} -pRL en/common/ en/small_pics/ tmp/
199
200 pushd tmp/
201 meinproc --stylesheet %{_datadir}/apps/ksgmltools2/customization/kde-nochunk.xsl index.docbook
202 ../makedoc.sh
203
204 htmldoc -f ../%{name}-%{version}-$LANG.pdf index.html
205
206 popd
207 %{__rm} -rf emp/
208
209 echo "Done"
210 fi
211 done
212 popd
213
214 %{__mkdir} -p %{buildroot}%{_datadir}/apps/%{name}/handbook
215 %{__cp} -p doc/%{name}-%{version}-*.pdf %{buildroot}%{_datadir}/apps/%{name}/handbook
216
217
218 # For the doc package
219 chmod 644 doc/cephes.doc
220 %{__rm} -f examples/Makefile*
221
222 # make sure the examples are UTF-8...
223 pushd examples
224 for nonUTF8 in {axeslabel,rydberg,qwt,fit,analysis}.lpl.gz ; do
225 /usr/bin/iconv -f iso8859-1 -t utf-8 $nonUTF8 > $nonUTF8.conv && /bin/mv -f $nonUTF8.conv $nonUTF8
226 done
227 popd
228
229 ## File lists
230 # locale's
231 %find_lang %{name} || touch %{name}.lang
232 # HTML (1.0)
233 HTML_DIR=$(kde-config --expandvars --install html)
234 if [ -d %{buildroot}$HTML_DIR ]; then
235 for lang_dir in %{buildroot}$HTML_DIR/* ; do
236 if [ -d $lang_dir -a $lang_dir != %{buildroot}$HTML_DIR/en ]; then
237 lang=$(basename $lang_dir)
238 #echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
239 # replace absolute symlinks with relative ones
240 pushd $lang_dir
241 for i in *; do
242 echo "LANGUAGE $i"
243 [ -d $i -a -L $i/small_pics ] && \
244 %{__rm} -f $i/small_pics && ln -sf ../../en/%{name}/small_pics $i/small_pics
245 done
246 popd
247 fi
248 done
249 fi
250
251 # iconv
252 for f in BUGS ChangeLog TODO WISHLIST ; do
253 iconv -f ISO-8859-1 -t UTF-8 $f > $f.tmp && \
254 ( touch -r $f $f.tmp ; %{__mv} -f $f.tmp $f ) || \
255 %{__rm} -f $f.tmp
256 done
257
258 # Remove useless symbolic links
259 %{__rm} -f %{buildroot}%{_docdir}/HTML/*/labplot
260
261 %{__rm} -f %{buildroot}%{_libdir}/lib*.la
262
263 %{__rm} -f %{buildroot}%{_libdir}/lib%{name}.so
264 %{__rm} -f %{buildroot}%{_libdir}/lib%{name}cephes.so
265 %{__rm} -f %{buildroot}%{_libdir}/lib%{name}netCDF.so
266
267
268 %clean
269 %{__rm} -rf %{buildroot}
270
271
272 %post
273 /sbin/ldconfig
274 touch --no-create %{_datadir}/icons/hicolor || :
275 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
276 update-desktop-database &> /dev/null ||:
277
278
279 %postun
280 /sbin/ldconfig
281 touch --no-create %{_datadir}/icons/hicolor || :
282 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
283 update-desktop-database &> /dev/null ||:
284
285
286 %files -f %{name}.lang
287 %defattr(-,root,root,-)
288 %doc COPYING README ChangeLog CHANGES FEATURES CREDITS doc/labplot.png
289 %doc AUTHORS TODO BUGS WISHLIST BUGFIXES LabPlot.lsm doc/cephes.doc
290 %exclude %{_datadir}/apps/%{name}/handbook/
291 %{_mandir}/man1/%{name}.*
292 %{_mandir}/man1/labplot.*
293 %{_bindir}/%{name}
294 %{_bindir}/labplot
295 %{_bindir}/texvc
296 %{_datadir}/applications/fedora-%{name}.desktop
297 %{_datadir}/apps/%{name}/
298 %{_datadir}/icons/??color/??x??/apps/%{name}.png
299 %{_datadir}/icons/??color/??x??/mimetypes/lpl.png
300 %{_datadir}/mimelnk/application/x-l?l.desktop
301 %{_libdir}/lib%{name}.so.1*
302 %{_libdir}/lib%{name}cephes.so.1*
303 %if 0%{?fedora} > 9
304 %{_libdir}/lib%{name}netCDF.so.*
305 %endif
306 # needed on Help -> LabPlot Handbook
307 %{_docdir}/HTML/en/%{name}/
308
309 %files doc
310 %defattr(-,root,root,-)
311 %doc doc/html/
312 %dir %{_datadir}/apps/%{name}/handbook/
313 %{_datadir}/apps/%{name}/handbook/%{name}-%{version}-en.pdf
314
315
316
317 %files doc-fr
318 %defattr(-,root,root,-)
319 %{_docdir}/HTML/fr/%{name}/
320
321
322 %files doc-br
323 %defattr(-,root,root,-)
324 %{_datadir}/apps/%{name}/handbook/%{name}-%{version}-br.pdf
325 %{_docdir}/HTML/br/%{name}/
326
327
328 %files doc-de
329 %defattr(-,root,root,-)
330 %{_datadir}/apps/%{name}/handbook/%{name}-%{version}-de.pdf
331 %{_docdir}/HTML/de/%{name}/
332
333
334 %files doc-it
335 %defattr(-,root,root,-)
336 %{_datadir}/apps/%{name}/handbook/%{name}-%{version}-it.pdf
337 %{_docdir}/HTML/it/%{name}/
338
339
340 %files doc-nl
341 %defattr(-,root,root,-)
342 %{_datadir}/apps/%{name}/handbook/%{name}-%{version}-nl.pdf
343 %{_docdir}/HTML/nl/%{name}/
344
345
346 %files doc-pl
347 %defattr(-,root,root,-)
348 %{_datadir}/apps/%{name}/handbook/%{name}-%{version}-pl.pdf
349 %{_docdir}/HTML/pl/%{name}/
350
351 %files doc-sv
352 %defattr(-,root,root,-)
353 %{_datadir}/apps/%{name}/handbook/%{name}-%{version}-sv.pdf
354 %{_docdir}/HTML/sv/%{name}/
355
356
357 %Changelog
358 * Wed Oct 28 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.6.0.2-8
359 - fix FTBFS with current GSL (GSL_CONST_CGSM_GAUSS undefined, patch from Debian)
360
361 * Sat Oct 24 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.6.0.2-7
362 - drop ExcludeArch ppc64, OCaml is available for ppc64 these days
363
364 * Tue Sep 22 2009 Dennis Gilmore <dennis@ausil.us> - 1.6.0.2-6
365 - ExcludeArch s390 s390x and sparc64 no ocaml
366
367 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0.2-5
368 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
369
370 * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0.2-4
371 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
372
373 * Sun Nov 16 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.6.0.2-3
374 - handle libLabPlotnetCDF.so* on F-8 and F-9
375
376 * Wed Sep 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.6.0.2-2
377 - handle libLabPlotnetCDF.so*
378
379 * Wed Sep 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.6.0.2-1
380 - update to 1.6.0.2
381 - drop useless gcc43 patch, init-smg-before-open-files patch
382
383 * Tue Jun 10 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.6.0.1-1
384 - New upstream release 1.6.0.1
385 - Now compatible with liborigin 20080225
386 - Bugfix: #449653: FTBFS LabPlot-1.5.1.6-6.fc9
387 - Bugfix: #434019: LabPlot failed massrebuild attempt for GCC 4.3
388 - Added qhull-devel as BR
389
390 * Tue Jun 10 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.5.1.6-7
391 - fix build against latest liborigin on F10 (backported from 1.6.0)
392
393 * Sun Apr 12 2008 Thibault North <tnorth [AT] fedoraproject DOT org> - 1.5.1.6-6
394 - Fixes for GCC 4.3
395 - Updated dependencies
396 - Now requires electronics-menu
397
398 * Thu Aug 23 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.5.1.6-4
399 - complying to freedesktop policies - categories
400 - queued for mass rebuild for Fedora 8 - BuildID
401 - dropped duplicates - examples/
402
403 * Mon Aug 06 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.5.1.6-3
404 - Excluding PPC64 since it misses ocaml
405
406 * Mon Aug 06 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.5.1.6-2
407 - Update License tag for new Licensing Guidelines compliance
408
409 * Mon Jul 30 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.5.1.6-1
410 - New upstream release
411
412 * Mon Apr 23 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.5.1.5-7
413 - removed parallel build for ppc
414
415 * Mon Apr 23 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.5.1.5-6
416 - added texvc back in %%files
417 - removed useless .so
418
419 * Thu Apr 12 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.5.1.5-5
420 - split for doc-fr
421 - duplicate kmenu entries - removed category Science
422 - corrected missing index.html file from Help -> LabPlot Handbook
423 - merge -devel package with the main package
424
425 * Thu Apr 12 2007 Mamoru Tasaka <mtasaka [AT] ioa.s.u-tokyo.ac.jp> - 1.5.1.5-4.2
426 - Use system liborigin library
427 - Shut up undefined non-weak symbols
428 - Fix end-of-line encodings of [Mm]ap file
429 - Change the encoding of a part of documents
430
431 * Tue Feb 27 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.5.1.5-4
432 - Added mediawiki and koffice-devel as BR
433 - using liborigin system wide
434 - Dropped mediawiki as BR
435 - Fixed presence on gnome menu
436
437 * Sat Jan 13 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.5.1.5-3
438 - manual dependencies removed
439 - dropped additional arguments for x86_64 sparc64 ppc64 amd64
440
441 * Wed Jan 03 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.5.1.5-2
442 - Added audiofile-devel, qwtplot3d-devel, ocaml and netcdf-devel as BR
443 - using qwtplot3d and netcdf system wide #221022
444 - Fixed qt-qsa headers
445
446 * Sun Dec 31 2006 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.5.1.5-1
447 - New stable release 1.5.1.5
448 - Fixed symlink-should-be-relative rpmlint issues
449 - Removed numerous entries on kmenu
450 - Added examples in a new -doc package
451 - Building pdf handbook for different languages
452 - Breaking down -doc package for different languages
453
454 * Sun Nov 19 2006 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.5.1.4-1
455 - Initial package

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2