116c029
Name:           pspp
fda565f
Version:        0.7.9
460786c
Release:        2%{?dist}
116c029
Summary:        A program for statistical analysis of sampled data
116c029
Group:          Applications/Engineering
116c029
License:        GPLv3+
116c029
URL:            http://www.gnu.org/software/pspp/
c7e4173
Source0:        ftp://alpha.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
c7e4173
Source1:        ftp://alpha.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz.sig
c7e4173
Source3:        pspp.svg
116c029
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
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
fda565f
BuildRequires:	gtksourceview2-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
116c029
%setup -q
116c029
116c029
TMPTHANKS=$(mktemp %{name}.XXXXXXXX)
116c029
iconv -f ISO-8859-1 -t UTF-8 THANKS >$TMPTHANKS
116c029
chmod --reference=THANKS $TMPTHANKS
116c029
touch --reference=THANKS $TMPTHANKS
116c029
mv $TMPTHANKS THANKS
e298f95
find . -exec chmod g-s '{}' \;
116c029
c7e4173
116c029
%build
c7e4173
autoreconf -ifv
ed322de
%configure CFLAGS="${CFLAGS:-%optflags} -fgnu89-inline" \
ed322de
    --disable-static --disable-rpath
116c029
make %{?_smp_mflags}
c7e4173
116c029
116c029
%install
116c029
rm -rf $RPM_BUILD_ROOT
116c029
make install DESTDIR=$RPM_BUILD_ROOT
116c029
# don't own /usr/share/info/dir
116c029
rm $RPM_BUILD_ROOT%{_infodir}/dir
116c029
116c029
# don't lala
116c029
find $RPM_BUILD_ROOT%{_libdir}/ \
a3e3036
   -name \*.la -delete
116c029
c7e4173
# desktop file
c7e4173
desktop-file-validate ${RPM_BUILD_ROOT}%{_datadir}/applications/pspp.desktop
116c029
116c029
# localization
116c029
%find_lang %{name}
116c029
c7e4173
# clean up some stuff
c7e4173
rm -f ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/icon-theme.cache
c7e4173
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/doc/pspp/
fda565f
#rm -f ${RPM_BUILD_ROOT}%{_libdir}/libpspp.so
fda565f
#rm -f ${RPM_BUILD_ROOT}%{_libdir}/libpspp-core.so
c7e4173
c7e4173
116c029
%check
c7e4173
make check || true
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
%clean
116c029
rm -rf $RPM_BUILD_ROOT
116c029
c7e4173
116c029
%files -f %{name}.lang
116c029
%defattr(-,root,root,-)
fda565f
%doc AUTHORS COPYING NEWS ONEWS README THANKS
116c029
%{_bindir}/pspp
116c029
%{_bindir}/psppire
fda565f
%{_bindir}/pspp-dump-sav
116c029
%{_infodir}/pspp*
fda565f
%{_libdir}/%{name}/
fda565f
%{_mandir}/man1/pspp-dump-sav.*
c7e4173
%{_datadir}/applications/pspp.desktop
fda565f
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
fda565f
%{_datadir}/icons/hicolor/16x16/%{name}/
fda565f
%{_datadir}/pspp/
c7e4173
116c029
116c029
%changelog
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
116c029
* Thu 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.