scigraphica-vl.spec 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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: 3%{?_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-devel
  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. * Wed Feb 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.0-3
  54. - rebuilt with python-2.7.2
  55. - add BuildRequires: python-numeric-devel
  56. * Mon Apr 19 2010 Shu KONNO <owa@bg.wakwak.com> 2.1.0-2
  57. - rebuilt with python-2.6
  58. * Fri Oct 10 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.1.0-1
  59. - updated to 2.1.0 release
  60. - previous Vine package was pretty old (version 0.8.0)
  61. * Sun Feb 10 2008 Deji Akingunola <dakingun@gmail.com> - 2.1.0-6
  62. - Rebuild for gcc43
  63. * Wed Aug 22 2007 Deji Akingunola <dakingun@gmail.com> - 2.1.0-5
  64. - Update License tag and rebuild
  65. * Mon Jan 01 2007 Deji Akingunola <dakingun@gmail.com> - 2.1.0-4
  66. - Specify python-numeric path to avoid collisions with python-numarray
  67. * Sun Dec 31 2006 Deji Akingunola <dakingun@gmail.com> - 2.1.0-3
  68. - Fix the BRs and remove the unnecessary post and postun sections
  69. * Sun Dec 31 2006 Deji Akingunola <dakingun@gmail.com> - 2.1.0-2
  70. - Don't allow scigraphica to own $(libdir)/scigraphical, it is already
  71. owned by libscigraphica
  72. * Sat Dec 09 2006 Deji Akingunola <dakingun@gmail.com> - 2.1.0-1
  73. - Initial build for Fedora Extras