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