scilab-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. Summary: The open source platform for numerical computation
  2. Summary(ja): オープンソースの数値計算システム
  3. Name: scilab
  4. Version: 4.1.2
  5. Release: 2%{?_dist_release}
  6. License: INRIA
  7. Group: Applications/Engineering
  8. URL: http://scilabsoft.inria.fr/
  9. Source: http://scilabsoft.inria.fr/download/stable/scilab-%{version}-src.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: tcl tk perl Xaw3d-devel libpng-devel
  12. BuildRequires: gtkhtml2-devel gtk2-devel
  13. BuildRequires: libxslt vte-devel readline-devel
  14. BuildRequires: gcc-c++
  15. %if %{?_dist_release}!="vl4"
  16. BuildRequires: gcc-gfortran
  17. %else
  18. BuildRequires: gcc-g77
  19. %endif
  20. BuildRequires: pkgconfig
  21. %description
  22. Scilab a numerical computation system similiar to matlab or simulink. Scilab
  23. includes hundreds of mathematical functions, and programs from various
  24. languages (such as C or Fortran) can be added interactively. It has
  25. sophisticated data structures (including lists, polynomials, rational
  26. functions, and linear systems), an interpreter, and a high-level programming
  27. language. Scilab has been designed to be an open system where the user can
  28. define new data types and operations on these data types by using
  29. overloading. A number of toolboxes are available with the system.
  30. %prep
  31. %setup -q
  32. %build
  33. perl -pi.orig -e 's|-fwritable-strings||g;' configure
  34. %configure \
  35. --with-gcc \
  36. --with-gfortran \
  37. --with-gnu \
  38. --with-gtk2 \
  39. --with-x \
  40. --without-java \
  41. --with-tcl-library="%{_libdir}"
  42. # ../include/pvmtev.h nodig in pvm3/src/global.h
  43. (echo '#include "../include/pvmtev.h"'; cat pvm3/src/global.h) > pvm3/src/global.h.temp
  44. mv pvm3/src/global.h.temp pvm3/src/global.h
  45. #make %{?_smp_mflags} all
  46. make all
  47. %install
  48. rm -rf %{buildroot}
  49. install -d %{buildroot}%{_libdir} \
  50. %{buildroot}%{_bindir}
  51. perl -pi.orig -e '
  52. s|/usr/bin|%{buildroot}%{_bindir}|g;
  53. s|ln -fs \$\(PREFIX\)/lib|ln -fs %{_libdir}|g;
  54. ' Makefile
  55. perl -pi -e '
  56. s|/bin/sh5|/bin/sh|g;
  57. ' bin/dold
  58. %makeinstall PREFIX=%{buildroot}%{_prefix} LIBPREFIX=%{buildroot}%{_libdir}
  59. perl -pi -e '
  60. s|%{buildroot}||g;
  61. ' %{buildroot}%{_libdir}/scilab-%{version}/bin/* \
  62. config/configuration \
  63. util/Blatdoc* Makefile* Path.incl
  64. %clean
  65. rm -rf %{buildroot}
  66. %files
  67. %doc ACKNOWLEDGEMENTS CHANGES README_Unix Version.incl licence.txt
  68. %defattr(-, root, root, 0755)
  69. %{_bindir}/*
  70. #%{_libdir}/scilab-%{version}/
  71. #%exclude %{_libdir}/scilab-%{version}/examples/mex-examples/mexglx
  72. %{_prefix}/lib/scilab-%{version}/
  73. %exclude %{_prefix}/lib/scilab-%{version}/examples/mex-examples/mexglx
  74. %changelog
  75. * Tue Jul 14 2009 Shu KONNO <owa@bg.wakwak.com> 4.1.2-2
  76. - fix %%files: %%{_libdir}/scilab... to %%{_prefix}/lib/scilab...
  77. * Tue Apr 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.1.2-1
  78. - applied new versioning policy
  79. - updated to 4.1.2
  80. * Sun Jun 03 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.1.1-0vl2
  81. - don't use smp_mflags on compilation
  82. * Sun Jun 3 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.1.1-0vl1
  83. - new upstream release
  84. - rebuilt with gfortran
  85. * Thu Jul 27 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1.1-2vl3
  86. - rebuilt with Xaw3d-1.5-17vl3
  87. * Wed Apr 26 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1.1-2vl2
  88. - rebuilt with readline 5.1
  89. * Sun Sep 25 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1.1-2vl1
  90. - update to 3.1.1 based on DAG packages
  91. (http://dag.wieers.com/packages/scilab/)
  92. * Mon Aug 01 2005 Dries Verachtert <dries@ulyssis.org> - 3.1.1-2 - 3450/dries
  93. - Rebuild.
  94. * Thu Jun 09 2005 Dries Verachtert <dries@ulyssis.org> - 3.1.1-1
  95. - Update to release 3.1.1.
  96. * Wed Jul 14 2004 Dries Verachtert <dries@ulyssis.org> - 3.0-1
  97. - Initial package.
  98. * Fri May 2 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-0vl1
  99. - update to 2.7
  100. - dropped scilab-2.6-ppc.patch
  101. * Fri Mar 22 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.6-0vl2
  102. - removed obsolete ppc patch
  103. * Sun Mar 3 2002 Jun Nishii <jun@vinelinux.org> 2.6-0v1
  104. - ver.up
  105. * Wed Sep 27 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  106. - 2.4.1-4vl2
  107. - added a patch for ppc archtecture
  108. * Wed Aug 18 1999 Tim Powers <timp@redhat.com>
  109. - exludearch alpha
  110. * Wed Jul 21 1999 Tim Powers <timp@redhat.com>
  111. - rebuilt for 6.1
  112. * Wed May 12 1999 Bill Nottingham <notting@redhat.com>
  113. - clean up dependencies
  114. * Wed May 05 1999 Bill Nottingham <notting@redhat.com>
  115. - update to 2.4.1
  116. * Fri Oct 23 1998 Jeff Johnson <jbj@redhat.com>
  117. - Upgrade to 2.4.
  118. * Thu Oct 22 1998 Jeff Johnson <jbj@redhat.com>
  119. - Fixes to permit compile on alpha.
  120. - Eliminate lurking dependencies on /bin/sh5 and SCILABGS.
  121. - Modify default value of SCI variable to be correct for users.
  122. - Add /usr/bin/scilab symlink.
  123. * Sat Jul 11 1998 Jeff Johnson <jbj@redhat.com>
  124. - Create powertools package.