116c029
Name:           pspp
7f99672
Version:        0.10.2
0c1c733
Release:        5%{?dist}
116c029
Summary:        A program for statistical analysis of sampled data
116c029
Group:          Applications/Engineering
116c029
License:        GPLv3+
d682477
URL:            https://www.gnu.org/software/pspp/
a706fcd
VCS:            scm:git:git://git.savannah.gnu.org/pspp.git
42557a6
Source0:        https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
42557a6
Source1:        https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz.sig
0c1c733
Source2:        pspp-Smake
0c1c733
Patch1:         pspp-0001-sys-file-reader-Avoid-null-dereference-skipping-bad-.patch
0c1c733
Patch2:         pspp-0002-sys-file-reader-Fix-integer-overflows-in-parse_long_.patch
ae29b52
BuildRequires:  plotutils-devel, ncurses-devel, readline-devel
ae29b52
BuildRequires:  gsl-devel >= 1.11-2
116c029
BuildRequires:  postgresql-devel
116c029
BuildRequires:  glade3-libgladeui-devel, libglade2-devel
116c029
BuildRequires:  gettext, desktop-file-utils
c7e4173
BuildRequires:  perl(ExtUtils::MakeMaker)
c7e4173
BuildRequires:	autoconf automake libtool gettext-devel texinfo libxml2
d682477
BuildRequires:	gtksourceview3-devel
0c1c733
BuildRequires:	gnulib-devel
c7e4173
Requires:	hicolor-icon-theme
116c029
Requires(post): info
116c029
Requires(preun): info
116c029
c7e4173
116c029
%description
116c029
PSPP is a program for statistical analysis of sampled data. It
116c029
interprets commands in the SPSS language and produces tabular
116c029
output in ASCII, PostScript, or HTML format.
116c029
116c029
PSPP development is ongoing. It already supports a large subset
116c029
of SPSS's transformation language. Its statistical procedure
116c029
support is currently limited, but growing.
116c029
c7e4173
116c029
%prep
0c1c733
%autosetup -p1
0c1c733
# Remove bundled Gnulib and prepare to import system-wide one
0c1c733
rm -rf gl/
0c1c733
rm -f aclocal.m4
0c1c733
install -D -p -m 0644 %{SOURCE2} Smake
116c029
c7e4173
116c029
%build
0c1c733
# Import and build system-wide Gnulib
0c1c733
make -f Smake GNULIB=%{_datadir}/gnulib/lib GNULIB_TOOL=%{_bindir}/gnulib-tool
0c1c733
c7e4173
autoreconf -ifv
ed322de
%configure CFLAGS="${CFLAGS:-%optflags} -fgnu89-inline" \
ed322de
    --disable-static --disable-rpath
116c029
make %{?_smp_mflags}
c7e4173
116c029
116c029
%install
8bbb837
make install DESTDIR=%{buildroot}
Orion Poplawski 791fbdb
# Install docs
Orion Poplawski 791fbdb
mkdir -p %{buildroot}%{_pkgdocdir}
Orion Poplawski 791fbdb
cp -p AUTHORS NEWS ONEWS README THANKS %{buildroot}%{_pkgdocdir}
116c029
# don't own /usr/share/info/dir
8bbb837
rm %{buildroot}%{_infodir}/dir
116c029
116c029
# don't lala
8bbb837
find %{buildroot}%{_libdir}/ \
a3e3036
   -name \*.la -delete
116c029
c7e4173
# desktop file
8bbb837
desktop-file-validate %{buildroot}%{_datadir}/applications/pspp.desktop
116c029
116c029
# localization
116c029
%find_lang %{name}
116c029
c7e4173
# clean up some stuff
8bbb837
rm -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache
c7e4173
c7e4173
116c029
%check
d682477
make check
c7e4173
116c029
116c029
%post
116c029
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
c7e4173
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
c7e4173
c7e4173
c7e4173
%postun
c7e4173
if [ $1 -eq 0 ] ; then
c7e4173
	/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
c7e4173
	/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
c7e4173
fi
c7e4173
c7e4173
c7e4173
%posttrans
c7e4173
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
c7e4173
116c029
116c029
%preun
116c029
if [ $1 = 0 ] ; then
19b211f
    /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
116c029
fi
116c029
c7e4173
116c029
%files -f %{name}.lang
95c003e
%license COPYING
116c029
%{_bindir}/pspp
116c029
%{_bindir}/psppire
5a8ac02
%{_bindir}/pspp-convert
fda565f
%{_bindir}/pspp-dump-sav
116c029
%{_infodir}/pspp*
fda565f
%{_libdir}/%{name}/
5a8ac02
%{_datadir}/appdata/pspp.appdata.xml
c7e4173
%{_datadir}/applications/pspp.desktop
45322ea
%{_datadir}/icons/hicolor/*/apps/%{name}.png
45322ea
%{_datadir}/icons/hicolor/*/mimetypes/*.png
5a8ac02
%{_datadir}/icons/hicolor/scalable/apps/pspp.svg
fda565f
%{_datadir}/pspp/
Orion Poplawski 791fbdb
%{_pkgdocdir}/
42557a6
%{_mandir}/man1/pspp.1.*
42557a6
%{_mandir}/man1/psppire.1.*
5a8ac02
%{_mandir}/man1/pspp-convert.1.*
42557a6
%{_mandir}/man1/pspp-dump-sav.*
c7e4173
116c029
116c029
%changelog
0c1c733
* Fri Jul 28 2017 Peter Lemenkov <lemenkov@gmail.com> - 0.10.2-5
0c1c733
- Fix FTBFS with recent GCC
0c1c733
- Build using system-wide Gnulib
0c1c733
893dfd3
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-4
893dfd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
893dfd3
effdb83
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-3
effdb83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
effdb83
Igor Gnatenko 3dc99cc
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.10.2-2
Igor Gnatenko 3dc99cc
- Rebuild for readline 7.x
Igor Gnatenko 3dc99cc
7f99672
* Wed Aug 24 2016 Peter Lemenkov <lemenkov@gmail.com> - 0.10.2-1
7f99672
- Ver. 0.10.2
7f99672
d682477
* Fri Apr  8 2016 Peter Lemenkov <lemenkov@gmail.com> - 0.10.1-1
d682477
- Ver. 0.10.1
d682477
- Switched to GTK3
d682477
Orion Poplawski d0c0108
* Mon Feb 22 2016 Orion Poplawski <orion@cora.nwra.com> - 0.8.5-4
Orion Poplawski d0c0108
- Rebuild for gsl 2.1
Orion Poplawski d0c0108
f36d9b4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-3
f36d9b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f36d9b4
Orion Poplawski 791fbdb
* Sat Nov 14 2015 Orion Poplawski <orion@cora.nwra.com> - 0.8.5-2
Orion Poplawski 791fbdb
- Fix documentation install
Orion Poplawski 791fbdb
42557a6
* Sun Jun 21 2015 Peter Lemenkov <lemenkov@gmail.com> - 0.8.5-1
42557a6
- Ver. 0.8.5
42557a6
b19a60c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.4-2
b19a60c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b19a60c
a706fcd
* Sat Nov 08 2014 Peter Lemenkov <lemenkov@gmail.com> - 0.8.4-1
a706fcd
- Ver. 0.8.4
a706fcd
d26e20c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-2
d26e20c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d26e20c
95c003e
* Sun Aug 10 2014 Peter Lemenkov <lemenkov@gmail.com> - 0.8.3-1
95c003e
- Ver. 0.8.3
95c003e
9b28e46
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-2
9b28e46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9b28e46
5a8ac02
* Tue Jan 21 2014 Peter Lemenkov <lemenkov@gmail.com> - 0.8.2-1
5a8ac02
- Ver. 0.8.2
5a8ac02
45322ea
* Tue Sep 24 2013 Peter Lemenkov <lemenkov@gmail.com> - 0.8.1-1
45322ea
- Ver. 0.8.1
45322ea
c012861
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
c012861
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c012861
f80a1e7
* Tue Jul 23 2013 Peter Lemenkov <lemenkov@gmail.com> - 0.8.0-1
f80a1e7
- Ver. 0.8.0
f80a1e7
8bbb837
* Sun Feb 24 2013 Peter Lemenkov <lemenkov@gmail.com> - 0.7.9-5
8bbb837
- Fixed FTBFS in Rawhide / Fedora 19 (see rhbz #914398)
8bbb837
- Added provides(gnulib) (see rhbz #821785)
8bbb837
- Added accidentally removed pspp docs (see rhbz #822610)
8bbb837
1eefb5e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.9-4
1eefb5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1eefb5e
db04e60
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.9-3
db04e60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
db04e60
460786c
* Thu Apr 19 2012 Peter Lemenkov <lemenkov@gmail.com> - 0.7.9-2
460786c
- Drop useless patch
460786c
fda565f
* Sun Apr 15 2012 Peter Lemenkov <lemenkov@gmail.com> - 0.7.9-1
fda565f
- Ver. 0.7.9
fda565f
a052220
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.8-2
a052220
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a052220
c7e4173
* Sat Dec 17 2011 Peter Lemenkov <lemenkov@gmail.com> - 0.7.8-1
c7e4173
- Ver. 0.7.8
c7e4173
db5fa98
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.6.2-5
db5fa98
- Rebuild for new libpng
db5fa98
1a13493
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-4
1a13493
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1a13493
Jesse Keating 9899cc7
* Wed Sep 29 2010 jkeating - 0.6.2-3
Jesse Keating 9899cc7
- Rebuilt for gcc bug 634757
Jesse Keating 9899cc7
c0c5e04
* Thu Sep 23 2010 Peter Lemenkov <lemenkov@gmail.com> 0.6.2-2
c0c5e04
- Rebuild (fixes ftbfs rhbz #599955)
c0c5e04
6eb10d6
* Fri Oct 16 2009 Peter Lemenkov <lemenkov@gmail.com> 0.6.2-1
6eb10d6
- Ver. 0.6.2
6eb10d6
f271e8c
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-4
f271e8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f271e8c
a3e3036
* Sun Mar 22 2009 Matěj Cepl <mcepl@redhat.com> - 0.6.1-3
a3e3036
- Make .so symlink to versioned libraries -- shouldn't be needed
a3e3036
  but helps to fix bug 471180
a3e3036
4918c2d
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
4918c2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4918c2d
e57eb3a
* Fri Nov 28 2008 Matěj Cepl <mcepl@redhat.com> 0.6.1-1
e57eb3a
- New upstream release.
e57eb3a
- Added home made logo.
e298f95
- Fix file permissions.
e57eb3a
19b211f
* Wed Nov 12 2008 Matěj Cepl <mcepl@redhat.com> - 0.6.0-9
19b211f
- Fix in the %%preun script -- install-info wants only .info file
19b211f
  as an argument.
19b211f
ed322de
* Thu Sep 25 2008 Matěj Cepl <mcepl@redhat.com> - 0.6.0-8
ed322de
- Fix wrong CFLAGS -- add -fgnu89-inline
ed322de
ae29b52
* Mon Jul 07 2008 Matej Cepl <mcepl@redhat.com> 0.6.0-7
ae29b52
- Fix BuildRequires.
ae29b52
7c46a74
* Wed Jun 18 2008 Matej Cepl <mcepl@redhat.com> 0.6.0-6
7c46a74
- Bug 451006 has been resolved, so we don't have to munge CFLAGS
7c46a74
  anymore.
7c46a74
116c029
* Sat Jun 14 2008 Matěj Cepl <mcepl@redhat.com> 0.6.0-5
116c029
- Approved version with fixed duplicate %%{_sysconfdir}/pspp
116c029
8bbb837
* Fri Jun 13 2008 Matěj Cepl <mcepl@redhat.com> 0.6.0-4
116c029
- Second wave of Package Review -- .desktop file
116c029
- Mysterious libraries eliminated
116c029
116c029
* Thu Jun 12 2008 Matěj Cepl <mcepl@redhat.com> 0.6.0-3
116c029
- First wave of Package Review nitpicking -- added %%doc and fixed Texinfo
116c029
  handling.
116c029
116c029
* Thu Jun 12 2008 Matěj Cepl <mcepl@redhat.com> 0.6.0-2
116c029
- Upstream release, this build is to be put into the package review.
116c029
116c029
* Tue Apr 22 2008 Matěj Cepl <mcepl@redhat.com> 0.6.0-0.1.pre2
116c029
- Upstream pre-release.
116c029
116c029
* Mon Apr 23 2007 Matej Cepl <mcepl@redhat.com> - 0.4.0-1
116c029
- The first experimental package of PSPP for Fedora.