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