scigraphica-vl.spec 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. %{!?python_siteinc: %define python_siteinc %(%{__python} -c "from distutils.sysconfig import get_python_inc; print get_python_inc()")}
  2. Summary: Scientific application for data analysis and technical graphics
  3. Summary(ja): 科学データ分析・視覚化に優れたアプリケーション
  4. Name: scigraphica
  5. Version: 2.1.0
  6. Release: 2%{?_dist_release}
  7. License: GPLv2+
  8. Group: Applications/Productivity
  9. Url: http://scigraphica.sourceforge.net
  10. Source: http://dl.sourceforge.net/scigraphica/%{name}-%{version}.tar.gz
  11. Patch0: scigraphica-desktop.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  13. BuildRequires: libxml2-devel imlib-devel
  14. BuildRequires: python-devel python-numeric
  15. BuildRequires: libscigraphica-devel
  16. BuildRequires: gettext perl(XML::Parser)
  17. BuildRequires: desktop-file-utils
  18. Requires: python-numarray
  19. %description
  20. SciGraphica is a free (GPL) scientific application for data analysis and
  21. technical graphics. It pretends to be a clone of the popular commercial
  22. (and expensive) application "Microcal Origin". It fully supplies plotting
  23. features for 2D, 3D and polar charts
  24. %prep
  25. %setup -q
  26. %patch0 -p0 -b .desktop
  27. %build
  28. %configure --disable-static --with-python-numeric-path=%{python_siteinc}/Numeric
  29. make %{?_smp_mflags}
  30. %install
  31. rm -rf %{buildroot}
  32. make DESTDIR=%{buildroot} INSTALL="%{__install} -c -p" install
  33. find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
  34. #Removing this pixmaps here as it is also packaged in libscigraphica
  35. rm -rf %{buildroot}%{_datadir}/pixmaps/sg_icon.xpm
  36. desktop-file-install --delete-original \
  37. --vendor fedora \
  38. --dir=%{buildroot}%{_datadir}/applications \
  39. %{buildroot}%{_datadir}/gnome/apps/Applications/sg.desktop
  40. %clean
  41. rm -rf %{buildroot}
  42. %files
  43. %defattr(-,root,root,-)
  44. %doc AUTHORS COPYING ChangeLog TODO
  45. %{_bindir}/%{name}
  46. %{_libdir}/%{name}/%{version}/plugins/project/
  47. %{_datadir}/applications/*.desktop
  48. %{_datadir}/gnome/help/%{name}/
  49. %{_datadir}/pixmaps/%{name}/
  50. %{_datadir}/%{name}/
  51. %{_mandir}/man1/%{name}.1.gz
  52. %changelog
  53. * Mon Apr 19 2010 Shu KONNO <owa@bg.wakwak.com> 2.1.0-2
  54. - rebuilt with python-2.6
  55. * Fri Oct 10 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.1.0-1
  56. - updated to 2.1.0 release
  57. - previous Vine package was pretty old (version 0.8.0)
  58. * Sun Feb 10 2008 Deji Akingunola <dakingun@gmail.com> - 2.1.0-6
  59. - Rebuild for gcc43
  60. * Wed Aug 22 2007 Deji Akingunola <dakingun@gmail.com> - 2.1.0-5
  61. - Update License tag and rebuild
  62. * Mon Jan 01 2007 Deji Akingunola <dakingun@gmail.com> - 2.1.0-4
  63. - Specify python-numeric path to avoid collisions with python-numarray
  64. * Sun Dec 31 2006 Deji Akingunola <dakingun@gmail.com> - 2.1.0-3
  65. - Fix the BRs and remove the unnecessary post and postun sections
  66. * Sun Dec 31 2006 Deji Akingunola <dakingun@gmail.com> - 2.1.0-2
  67. - Don't allow scigraphica to own $(libdir)/scigraphical, it is already
  68. owned by libscigraphica
  69. * Sat Dec 09 2006 Deji Akingunola <dakingun@gmail.com> - 2.1.0-1
  70. - Initial build for Fedora Extras