KMatplot – a gnuplot-like tool for plotting data sets in either two or three dimensions
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

88 lines
2.7 KiB

  1. # You might want to change the next line, the rest should be ok
  2. %define qtdir /usr/local/qt
  3. Name: kmatplot
  4. URL: http://kmatplot.sourceforge.net
  5. Summary: Science plotting tool
  6. Version: 0.4
  7. Release: 1
  8. Copyright: GPL
  9. Vendor: kamil <kamildobk@poczta.onet.pl>
  10. Packager: kamil <kamildobk@poczta.onet.pl>
  11. Group: Applications/Engineering
  12. Source: kmatplot-0.4.tar.gz
  13. BuildRoot: /var/tmp/%{name}-root
  14. %description
  15. KMatplot is an Origin-like tool to generate scientific plots either in two or three dimensions.
  16. Source package contains also Scilab support.
  17. %prep
  18. rm -rf $RPM_BUILD_ROOT
  19. %setup -q
  20. %build
  21. export QTDIR=%{qtdir}
  22. CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS -DNO_DEBUG -DNDEBUG" ./configure --prefix=/usr/local
  23. make
  24. %install
  25. make DESTDIR=$RPM_BUILD_ROOT install-strip
  26. cd $RPM_BUILD_ROOT
  27. find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \
  28. $RPM_BUILD_DIR/file.list.%{name}
  29. find . -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \
  30. -e '/\/config\//s|^|%config|' >> \
  31. $RPM_BUILD_DIR/file.list.%{name}
  32. find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> \
  33. $RPM_BUILD_DIR/file.list.%{name}
  34. grep "\.oct$" $RPM_BUILD_DIR/file.list.%{name} > \
  35. $RPM_BUILD_DIR/file.list.%{name}-octave
  36. grep "\.py$" $RPM_BUILD_DIR/file.list.%{name} > \
  37. $RPM_BUILD_DIR/file.list.%{name}-python
  38. grep "\.pth$" $RPM_BUILD_DIR/file.list.%{name} >> \
  39. $RPM_BUILD_DIR/file.list.%{name}-python
  40. egrep -v "\.oct$|\.py$|\.pth$" $RPM_BUILD_DIR/file.list.%{name} > \
  41. $RPM_BUILD_DIR/file.list.%{name}-main
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/files.list.%{name} $RPM_BUILD_ROOT $RPM_BUILD_DIR/files.list.%{name}-main $RPM_BUILD_ROOT $RPM_BUILD_DIR/files.list.%{name}-octave $RPM_BUILD_ROOT $RPM_BUILD_DIR/files.list.%{name}-python
  44. %files -f ../file.list.%{name}-main
  45. %package octave
  46. Summary: Functions to transfer data from Octave to KMatplot
  47. Vendor: kamil <kamildobk@poczta.onet.pl>
  48. Group: Applications/Engineering
  49. %description octave
  50. This package contains Octave support, so it is possible to make plots directly from
  51. Octave using 'kplot', 'kimage', 'kmesh' and other functions. Those functions transfer data from
  52. Octave to KMatplot through an Unix socket.
  53. %files octave -f ../file.list.%{name}-octave
  54. %package python
  55. Requires: Numeric
  56. Summary: Functions to transfer data from Python applications to KMatplot
  57. Vendor: Martin Wiechert <martin.wiechert@gmx.de>
  58. Group: Applications/Engineering
  59. %description python
  60. This package contains Python support, so it is possible to make plots directly from
  61. Python using 'kplot', 'kimage', 'kmesh' and other functions. Those functions transfer data from
  62. Numeric Python application to KMatplot through an Unix socket.
  63. %files python -f ../file.list.%{name}-python