]>
Commit | Line | Data |
---|---|---|
6c762cc3 JB |
1 | # |
2 | # Conditional build: | |
e6d9fa0a | 3 | %bcond_with glade # Glade extensions for PSPP development (broken in 1.4.1) |
6c762cc3 JB |
4 | %bcond_without perl # Perl module |
5 | ||
b68d06e7 JB |
6 | Summary: GNU PSPP - program for statistical analysis of sampled data |
7 | Summary(pl.UTF-8): GNU PSPP - program do analizy statystycznej danych próbkowanych | |
8 | Name: pspp | |
35ea0f5e JB |
9 | Version: 2.0.0 |
10 | Release: 1 | |
b68d06e7 JB |
11 | License: GPL v3+ |
12 | Group: Applications/Science | |
36eeab05 | 13 | Source0: https://ftp.gnu.org/gnu/pspp/%{name}-%{version}.tar.gz |
35ea0f5e | 14 | # Source0-md5: 11f5949311bfe66a44999b9d7db6c99b |
b68d06e7 | 15 | Patch0: %{name}-info.patch |
6c762cc3 | 16 | Patch1: %{name}-perl.patch |
b68d06e7 | 17 | URL: http://www.gnu.org/software/pspp/ |
f0ca7162 JB |
18 | BuildRequires: autoconf >= 2.64 |
19 | BuildRequires: automake >= 1:1.14 | |
b68d06e7 | 20 | BuildRequires: cairo-devel >= 1.5 |
e6d9fa0a | 21 | BuildRequires: gettext-tools >= 0.20 |
f65953c8 | 22 | BuildRequires: glib2-devel >= 1:2.44 |
b68d06e7 | 23 | BuildRequires: gsl-devel >= 1.13 |
36eeab05 | 24 | BuildRequires: gtk+3-devel >= 3.22.0 |
f0ca7162 | 25 | BuildRequires: gtksourceview4-devel >= 4.0 |
5df43fdf | 26 | %{?with_glade:BuildRequires: glade-devel >= 3.0} |
35ea0f5e | 27 | BuildRequires: libtool >= 2:2 |
b68d06e7 | 28 | BuildRequires: libxml2-devel >= 2.0 |
35ea0f5e | 29 | BuildRequires: openssl-devel |
b68d06e7 JB |
30 | BuildRequires: pango-devel >= 1:1.22 |
31 | BuildRequires: perl-base >= 5.005_03 | |
6c762cc3 | 32 | %{?with_perl:BuildRequires: perl-devel >= 1:5.8} |
b68d06e7 JB |
33 | BuildRequires: pkgconfig |
34 | BuildRequires: postgresql-devel | |
f0ca7162 | 35 | BuildRequires: python3 >= 1:3 |
b68d06e7 | 36 | BuildRequires: readline-devel |
6c762cc3 | 37 | BuildRequires: rpm-perlprov >= 4.1-13 |
db608690 | 38 | BuildRequires: rpmbuild(macros) >= 1.745 |
f0ca7162 | 39 | BuildRequires: spread-sheet-widget-devel >= 0.7 |
b68d06e7 | 40 | BuildRequires: texinfo |
35ea0f5e JB |
41 | # tex |
42 | BuildRequires: texlive | |
b68d06e7 | 43 | BuildRequires: zlib-devel |
36eeab05 JB |
44 | Requires(post,postun): desktop-file-utils |
45 | Requires(post,postun): gtk-update-icon-cache | |
f2f3e11f | 46 | Requires: %{name}-libs = %{version}-%{release} |
b68d06e7 | 47 | Requires: cairo >= 1.5 |
36eeab05 JB |
48 | Requires: glib2 >= 1:2.44 |
49 | Requires: gtk+3 >= 3.22.0 | |
f0ca7162 | 50 | Requires: gtksourceview4 >= 4.0 |
b68d06e7 | 51 | Requires: pango >= 1:1.22 |
36eeab05 | 52 | Requires: shared-mime-info |
f0ca7162 | 53 | Requires: spread-sheet-widget >= 0.7 |
e6d9fa0a JB |
54 | %if %{without glade} |
55 | Obsoletes: pspp-glade < 1.4.1 | |
56 | %endif | |
b68d06e7 JB |
57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
58 | ||
59 | %description | |
60 | GNU PSPP is a program for statistical analysis of sampled data. It is | |
61 | a Free replacement for the proprietary program SPSS, and appears very | |
62 | similar to it with a few exceptions. | |
63 | ||
64 | %description -l pl.UTF-8 | |
65 | GNU PSPP to program do analizy statystycznej danych próbkowanych. Jest | |
66 | to wolnodostępny zamiennik własnościowego programu SPSS; jest do niego | |
67 | dosyć podobny z kilkoma wyjątkami. | |
68 | ||
35dbdc34 | 69 | %package libs |
f2f3e11f | 70 | Summary: GNU PSPP libraries and command line tools |
41738d5f | 71 | Summary(pl.UTF-8): Biblioteki GNU PSPP i narzędzia linii poleceń |
35dbdc34 | 72 | Group: Applications/Science |
73 | Requires: gsl >= 1.13 | |
f2f3e11f | 74 | Conflicts: pspp < 0.8.5-1 |
35dbdc34 | 75 | |
76 | %description libs | |
41738d5f JB |
77 | GNU PSP libraries command line tools. |
78 | ||
79 | %description libs -l pl.UTF-8 | |
80 | Biblioteki GNU PSPP i narzędzia linii poleceń. | |
35dbdc34 | 81 | |
6c762cc3 JB |
82 | %package -n perl-PSPP |
83 | Summary: PSPP module for Perl | |
84 | Summary(pl.UTF-8): Moduł PSPP dla Perla | |
85 | Group: Development/Languages/Perl | |
86 | Requires: %{name}-libs = %{version}-%{release} | |
87 | ||
88 | %description -n perl-PSPP | |
89 | PSPP Perl module provides an interface to the libraries used by pspp | |
90 | to read and write system files. | |
91 | ||
92 | %description -n perl-PSPP -l pl.UTF-8 | |
93 | Moduł Perla PSPP udostępnia interfejs do bibliotek wykorzystywanych | |
94 | przez pspp do odczytu i zapisu plików systemowych. | |
95 | ||
5df43fdf JB |
96 | %package glade |
97 | Summary: Glade extensions for PSPP development | |
98 | Summary(pl.UTF-8): Rozszerzenia Glade do rozwijania PSPP | |
6c762cc3 | 99 | Group: X11/Development/Libraries |
5df43fdf | 100 | Requires: glade >= 3.0 |
6c762cc3 | 101 | |
5df43fdf JB |
102 | %description glade |
103 | Glade extensions for PSPP development. | |
6c762cc3 | 104 | |
5df43fdf JB |
105 | %description glade -l pl.UTF-8 |
106 | Rozszerzenia Glade do rozwijania PSPP. | |
6c762cc3 | 107 | |
b68d06e7 JB |
108 | %prep |
109 | %setup -q | |
110 | %patch0 -p1 | |
2f690d7d | 111 | %patch1 -p1 |
b68d06e7 JB |
112 | |
113 | %build | |
6c762cc3 JB |
114 | %{__libtoolize} |
115 | %{__aclocal} -I gl/m4 | |
116 | %{__autoconf} | |
117 | %{__autoheader} | |
118 | %{__automake} | |
b68d06e7 | 119 | %configure \ |
35dbdc34 | 120 | --disable-static \ |
6c762cc3 | 121 | %{?with_glade:--with-gui-tools} \ |
6c762cc3 JB |
122 | --with-packager="PLD Linux (http://pld-linux.org/)" \ |
123 | %{!?with_perl:--without-perl-module} | |
35dbdc34 | 124 | |
b68d06e7 JB |
125 | %{__make} |
126 | ||
127 | %install | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %{__make} install \ | |
131 | DESTDIR=$RPM_BUILD_ROOT | |
132 | ||
35ea0f5e JB |
133 | # program no longer installed, but manual still is... restore for now |
134 | install utilities/pspp-dump-sav $RPM_BUILD_ROOT%{_bindir} | |
135 | ||
6c762cc3 JB |
136 | %if %{with perl} |
137 | %{__make} -C perl-module install \ | |
138 | DESTDIR=$RPM_BUILD_ROOT | |
139 | %endif | |
140 | ||
b68d06e7 JB |
141 | # API not exported |
142 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/pspp/lib{pspp,pspp-core}.{la,so} | |
6c762cc3 JB |
143 | %if %{with glade} |
144 | # loadable module | |
5df43fdf | 145 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/glade/modules/*.la |
6c762cc3 | 146 | %endif |
b68d06e7 JB |
147 | |
148 | %find_lang %{name} | |
149 | ||
f65953c8 AG |
150 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
151 | ||
b68d06e7 JB |
152 | %clean |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
36eeab05 JB |
155 | %post |
156 | %update_desktop_database | |
157 | %update_icon_cache hicolor | |
158 | %update_mime_database | |
159 | ||
160 | %postun | |
161 | %update_desktop_database | |
162 | %update_icon_cache hicolor | |
163 | %update_mime_database | |
164 | ||
b68d06e7 JB |
165 | %files -f %{name}.lang |
166 | %defattr(644,root,root,755) | |
b68d06e7 | 167 | %attr(755,root,root) %{_bindir}/pspp |
36eeab05 | 168 | %attr(755,root,root) %{_bindir}/pspp-output |
b68d06e7 | 169 | %attr(755,root,root) %{_bindir}/psppire |
b68d06e7 | 170 | %{_datadir}/pspp |
6a86c6ea JB |
171 | %{_datadir}/metainfo/org.gnu.pspp.metainfo.xml |
172 | %{_datadir}/mime/packages/org.gnu.pspp.xml | |
173 | %{_desktopdir}/org.gnu.pspp.desktop | |
174 | %{_iconsdir}/hicolor/*/apps/org.gnu.pspp.* | |
f0ca7162 | 175 | %{_iconsdir}/hicolor/*x*/mimetypes/application-x-spss-*.png |
b68d06e7 JB |
176 | %{_infodir}/pspp.info* |
177 | %{_infodir}/pspp-dev.info* | |
f0ca7162 JB |
178 | %{_infodir}/pspp-figures |
179 | %{_infodir}/screenshots | |
35dbdc34 | 180 | %{_mandir}/man1/pspp.1* |
36eeab05 | 181 | %{_mandir}/man1/pspp-output.1* |
35dbdc34 | 182 | %{_mandir}/man1/psppire.1* |
183 | ||
184 | %files libs | |
f2f3e11f | 185 | %defattr(644,root,root,755) |
f65953c8 | 186 | %doc AUTHORS ChangeLog NEWS ONEWS README THANKS |
35dbdc34 | 187 | %attr(755,root,root) %{_bindir}/pspp-convert |
188 | %attr(755,root,root) %{_bindir}/pspp-dump-sav | |
189 | %dir %{_libdir}/pspp | |
190 | %attr(755,root,root) %{_libdir}/pspp/libpspp-%{version}.so | |
191 | %attr(755,root,root) %{_libdir}/pspp/libpspp-core-%{version}.so | |
b68d06e7 JB |
192 | %{_mandir}/man1/pspp-convert.1* |
193 | %{_mandir}/man1/pspp-dump-sav.1* | |
6c762cc3 JB |
194 | |
195 | %if %{with perl} | |
196 | %files -n perl-PSPP | |
197 | %defattr(644,root,root,755) | |
198 | %{perl_vendorarch}/PSPP.pm | |
199 | %dir %{perl_vendorarch}/auto/PSPP | |
200 | %attr(755,root,root) %{perl_vendorarch}/auto/PSPP/PSPP.so | |
201 | %{_mandir}/man3/PSPP.3pm* | |
202 | %{_mandir}/man3/PSPP::Examples.3pm* | |
203 | %endif | |
204 | ||
205 | %if %{with glade} | |
5df43fdf | 206 | %files glade |
6c762cc3 | 207 | %defattr(644,root,root,755) |
5df43fdf JB |
208 | %attr(755,root,root) %{_libdir}/glade/modules/libglade-psppire.so |
209 | %{_datadir}/glade/catalogs/psppire.xml | |
210 | %{_datadir}/glade/pixmaps/hicolor/16x16/actions/widget-psppire-psppire-*.png | |
211 | %{_datadir}/glade/pixmaps/hicolor/22x22/actions/widget-psppire-psppire-*.png | |
6c762cc3 | 212 | %endif |