pspp-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. %define pkg_name pspp
  2. %define pkg_version 1.2.0
  3. %define pkg_release 1%{?_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+
  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. # PATCH-FIX-UPSTREAM CVE-2018-20230.patch bnc#1120061 CVE-2018-20230
  14. Patch0: CVE-2018-20230.patch
  15. # PATCH-FIX-UPSTREAM CVE-2019-9211.patch boo#1127343 CVE-2019-9211
  16. Patch1: CVE-2019-9211.patch
  17. # Fix build with Texinfo 4.13 for openSUSE Leap 42.*
  18. Patch2: avoid_old_Texinfo_4.13.patch
  19. Buildroot: %{_tmppath}/%{name}-%{version}-root
  20. BuildRequires: m4
  21. BuildRequires: gettext
  22. BuildRequires: texinfo
  23. BuildRequires: desktop-file-utils
  24. BuildRequires: gtk3-devel >= 3.14.5
  25. BuildRequires: gtksourceview3-devel
  26. BuildRequires: spread-sheet-widget-devel >= 0.3
  27. BuildRequires: readline-devel
  28. BuildRequires: pango-devel
  29. BuildRequires: cairo-devel
  30. BuildRequires: gsl-devel >= 1.12
  31. BuildRequires: libglade2-devel
  32. BuildRequires: libxml2-devel
  33. BuildRequires: postgresql-devel
  34. BuildRequires: zlib-devel
  35. Vendor: Project Vine
  36. Distribution: Vine Linux
  37. Packager: ara_t
  38. %description
  39. PSPP is a program for statistical analysis of sampled data.
  40. It is a free replacement for the proprietary program SPSS.
  41. PSPP supports t-tests, ANOVA, GLM, factor analysis, non-parametric tests,
  42. and other statistical features. PSPP produces statistical reports
  43. in plain text, PDF, PostScript, CSV, HTML, SVG, and OpenDocument formats.
  44. PSPP has both text-based and graphical user interfaces.
  45. The PSPP user interface has been translated into a number of languages.
  46. %prep
  47. %{__rm} -rf ${RPM_BUILD_ROOT}
  48. %setup -q
  49. %patch0 -p1
  50. %patch1 -p1
  51. %patch2 -p1
  52. %build
  53. autoreconf -f -i
  54. %configure \
  55. --disable-relocatable \
  56. --disable-static \
  57. --disable-rpath \
  58. --enable-debug \
  59. --without-libreadline-prefix \
  60. --docdir=%{_docdir}/%{name}-%{version}
  61. %{__make} %{?_smp_mflags}
  62. %install
  63. %{make_install}
  64. %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/pspp/*.la
  65. %{__rm} ${RPM_BUILD_ROOT}%{_infodir}/dir
  66. # modify desktop file
  67. %{__perl} -pi -e s/"Education;Science;Math;"/"Education;Science;"/g \
  68. ${RPM_BUILD_ROOT}%{_datadir}/applications/pspp.desktop
  69. #Config for ld
  70. %{__mkdir_p} %{buildroot}/etc/ld.so.conf.d
  71. cat >${RPM_BUILD_ROOT}/etc/ld.so.conf.d/pspp.conf << EOF
  72. %{_libdir}/pspp
  73. EOF
  74. # localization
  75. %find_lang pspp
  76. # %check
  77. # %%{__make} check || cat ./tests/testsuite.log
  78. %post
  79. for doc in pspp pspp-dev; do
  80. file=%{_infodir}/${doc}.info.gz
  81. if [ -e ${file} ]; then
  82. /sbin/install-info ${file} %{_infodir}/dir 2>/dev/null
  83. fi
  84. done
  85. %{_syssbindir}/ldconfig
  86. %preun
  87. if [ $1 = 0 ]; then
  88. for doc in pspp pspp-dev; do
  89. file=%{_infodir}/${doc}.info.gz
  90. if [ -e ${file} ]; then
  91. /sbin/install-info --delete ${file} %{_infodir}/dir 2>/dev/null
  92. fi
  93. done
  94. fi
  95. %postun -p %{_syssbindir}/ldconfig
  96. %files -f pspp.lang
  97. %defattr(-,root,root,-)
  98. %doc README COPYING THANKS AUTHORS
  99. # tests/testsuite.log
  100. %config(noreplace) /etc/ld.so.conf.d/pspp.conf
  101. %{_bindir}/pspp
  102. %{_bindir}/psppire
  103. %{_bindir}/pspp-dump-sav
  104. %{_bindir}/pspp-convert
  105. %dir %{_libdir}/pspp
  106. %{_libdir}/pspp/*.so
  107. %{_datadir}/applications/pspp.desktop
  108. %{_datadir}/appdata/pspp.appdata.xml
  109. %{_datadir}/icons/
  110. %dir %{_datadir}/pspp
  111. %{_datadir}/pspp/
  112. %{_infodir}/pspp*
  113. %{_mandir}/man1/
  114. %{_docdir}/
  115. %changelog
  116. * Sun Oct 27 2019 Toshiaki Ara <ara_t@384.jp> 1.2.0-1
  117. - update to 1.2.0
  118. * Mon Jun 04 2018 Toshiaki Ara <ara_t@384.jp> 1.0.1-3
  119. - correct description
  120. - add Packager: ara_t
  121. * Sun Jun 03 2018 Toshiaki Ara <ara_t@384.jp> 1.0.1-2
  122. - rebuild under gsl-2.4
  123. * Sun Oct 15 2017 Toshiaki Ara <ara_t@384.jp> 1.0.1-1
  124. - new package