pspp-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. %define pkg_name pspp
  2. %define pkg_version 1.0.1
  3. %define pkg_release 3%{?_dist_release}
  4. Summary: A program for statistical analysis of sampled data
  5. Summary(ja): データ統計解析用プログラム
  6. Name: %{pkg_name}
  7. Version: %{pkg_version}
  8. Release: %{pkg_release}
  9. License: GPLv3 or later
  10. Group: Applications/Edutainment
  11. URL: http://www.gnu.org/software/pspp/
  12. Source0: http://public.p-knowledge.co.jp/gnu-mirror/pspp/pspp-%{version}.tar.gz
  13. Buildroot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: texinfo
  15. BuildRequires: readline-devel
  16. BuildRequires: gtk3-devel gtksourceview3-devel
  17. BuildRequires: gsl-devel
  18. BuildRequires: plotutils-devel
  19. Requires: gtk3 gtksourceview3
  20. Requires: gsl
  21. Requires: plotutils
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: ara_t
  25. %description
  26. PSPP is a program for statistical analysis of sampled data.
  27. It is a free replacement for the proprietary program SPSS.
  28. PSPP supports t-tests, ANOVA, GLM, factor analysis, non-parametric tests,
  29. and other statistical features. PSPP produces statistical reports
  30. in plain text, PDF, PostScript, CSV, HTML, SVG, and OpenDocument formats.
  31. PSPP has both text-based and graphical user interfaces.
  32. The PSPP user interface has been translated into a number of languages.
  33. %prep
  34. %{__rm} -rf ${RPM_BUILD_ROOT}
  35. %setup -q
  36. %build
  37. %{configure} \
  38. --disable-static \
  39. --docdir=%{_docdir}/%{name}-%{version}
  40. %{__make} %{?_smp_mflags}
  41. %check
  42. %{__make} check
  43. %install
  44. %{make_install}
  45. %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/pspp/*.la
  46. %{__rm} ${RPM_BUILD_ROOT}%{_infodir}/dir
  47. %{__cp} AUTHORS COPYING ChangeLog NEWS ONEWS README THANKS TODO \
  48. ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}
  49. # modify desktop file
  50. %{__perl} -pi -e s/"Education;Science;Math;"/"Education;Science;"/g \
  51. ${RPM_BUILD_ROOT}%{_datadir}/applications/pspp.desktop
  52. %clean
  53. %{__rm} -rf ${RPM_BUILD_ROOT}
  54. %post
  55. for doc in pspp pspp-dev; do
  56. file=%{_infodir}/${doc}.info.gz
  57. if [ -e ${file} ]; then
  58. /sbin/install-info ${file} %{_infodir}/dir 2>/dev/null
  59. fi
  60. done
  61. %{_syssbindir}/ldconfig
  62. %preun
  63. if [ $1 = 0 ]; then
  64. for doc in pspp pspp-dev; do
  65. file=%{_infodir}/${doc}.info.gz
  66. if [ -e ${file} ]; then
  67. /sbin/install-info --delete ${file} %{_infodir}/dir 2>/dev/null
  68. fi
  69. done
  70. fi
  71. %postun -p %{_syssbindir}/ldconfig
  72. %files
  73. %defattr(-,root,root)
  74. %{_bindir}/
  75. %{_libdir}/pspp/
  76. %{_datadir}/appdata/
  77. %{_datadir}/applications/
  78. %{_datadir}/icons/
  79. %{_datadir}/locale/
  80. %{_datadir}/pspp
  81. %{_infodir}/
  82. %{_mandir}/man1/
  83. %{_docdir}/
  84. %changelog
  85. * Mon Jun 04 2018 Toshiaki Ara <ara_t@384.jp> 1.0.1-3
  86. - correct description
  87. - add Packager: ara_t
  88. * Sun Jun 03 2018 Toshiaki Ara <ara_t@384.jp> 1.0.1-2
  89. - rebuild under gsl-2.4
  90. * Sun Oct 15 2017 Toshiaki Ara <ara_t@384.jp> 1.0.1-1
  91. - new package