4a756ff
Name:           pspp
4a756ff
Version:        0.6.0
7f8b7c4
Release:        6%{?dist}
4a756ff
Summary:        A program for statistical analysis of sampled data
4a756ff
4a756ff
Group:          Applications/Engineering
4a756ff
License:        GPLv3+
4a756ff
URL:            http://www.gnu.org/software/pspp/
4a756ff
Source0:        ftp://ftp.gnu.org/pub/gnu/pspp/pspp-%{version}.tar.gz
4a756ff
Source1:        pspp-psppire-desktop.txt
4a756ff
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
4a756ff
BuildRequires:  plotutils-devel, gsl-devel, ncurses-devel, readline-devel
4a756ff
BuildRequires:  postgresql-devel
4a756ff
BuildRequires:  glade3-libgladeui-devel, libglade2-devel
4a756ff
BuildRequires:  gettext, desktop-file-utils
4a756ff
Requires(post): info
4a756ff
Requires(preun): info
4a756ff
4a756ff
%description
4a756ff
PSPP is a program for statistical analysis of sampled data. It
4a756ff
interprets commands in the SPSS language and produces tabular
4a756ff
output in ASCII, PostScript, or HTML format.
4a756ff
4a756ff
PSPP development is ongoing. It already supports a large subset
4a756ff
of SPSS's transformation language. Its statistical procedure
4a756ff
support is currently limited, but growing.
4a756ff
4a756ff
%prep
4a756ff
%setup -q
4a756ff
4a756ff
TMPTHANKS=$(mktemp %{name}.XXXXXXXX)
4a756ff
iconv -f ISO-8859-1 -t UTF-8 THANKS >$TMPTHANKS
4a756ff
chmod --reference=THANKS $TMPTHANKS
4a756ff
touch --reference=THANKS $TMPTHANKS
4a756ff
mv $TMPTHANKS THANKS
4a756ff
4a756ff
%build
4a756ff
%configure CFLAGS="${CFLAGS:-%optflags} -fgnu89-inline" \
4a756ff
    --disable-static --disable-rpath
4a756ff
make %{?_smp_mflags}
4a756ff
cp -p %{SOURCE1} psppire.desktop
4a756ff
4a756ff
%install
4a756ff
rm -rf $RPM_BUILD_ROOT
4a756ff
make install DESTDIR=$RPM_BUILD_ROOT
4a756ff
# don't own /usr/share/info/dir
4a756ff
rm $RPM_BUILD_ROOT%{_infodir}/dir
4a756ff
4a756ff
# don't lala
4a756ff
find $RPM_BUILD_ROOT%{_libdir}/ \
4a756ff
   \( -name \*.la -o -name \*.so \) \
4a756ff
   -delete
4a756ff
4a756ff
# icon file
4a756ff
desktop-file-install --vendor="fedora" \
4a756ff
    --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
4a756ff
    psppire.desktop
4a756ff
4a756ff
# localization
4a756ff
%find_lang %{name}
4a756ff
4a756ff
%check
4a756ff
make check
4a756ff
4a756ff
%post
4a756ff
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
4a756ff
4a756ff
%preun
4a756ff
if [ $1 = 0 ] ; then
7f8b7c4
   /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
4a756ff
fi
4a756ff
4a756ff
%clean
4a756ff
rm -rf $RPM_BUILD_ROOT
4a756ff
4a756ff
%files -f %{name}.lang
4a756ff
%defattr(-,root,root,-)
4a756ff
%doc README COPYING examples/ THANKS TODO AUTHORS
4a756ff
%config(noreplace) %{_sysconfdir}/pspp/*
4a756ff
%dir %{_sysconfdir}/pspp
4a756ff
%{_bindir}/pspp
4a756ff
%{_bindir}/psppire
4a756ff
%{_infodir}/pspp*
4a756ff
%{_libdir}/pspp
4a756ff
%{_datadir}/pspp
4a756ff
%{_datadir}/applications/fedora-psppire.desktop
4a756ff
4a756ff
%changelog
7f8b7c4
* Wed Nov 12 2008 Matěj Cepl <mcepl@redhat.com> - 0.6.0-6
7f8b7c4
- Bad understanding of the role of install-info in the history of
7f8b7c4
  humankind.
7f8b7c4
4a756ff
* Sat Jun 14 2008 Matěj Cepl <mcepl@redhat.com> 0.6.0-5
4a756ff
- Approved version with fixed duplicate %%{_sysconfdir}/pspp
4a756ff
4a756ff
* Thu Jun 13 2008 Matěj Cepl <mcepl@redhat.com> 0.6.0-4
4a756ff
- Second wave of Package Review -- .desktop file
4a756ff
- Mysterious libraries eliminated
4a756ff
4a756ff
* Thu Jun 12 2008 Matěj Cepl <mcepl@redhat.com> 0.6.0-3
4a756ff
- First wave of Package Review nitpicking -- added %%doc and fixed Texinfo
4a756ff
  handling.
4a756ff
4a756ff
* Thu Jun 12 2008 Matěj Cepl <mcepl@redhat.com> 0.6.0-2
4a756ff
- Upstream release, this build is to be put into the package review.
4a756ff
4a756ff
* Tue Apr 22 2008 Matěj Cepl <mcepl@redhat.com> 0.6.0-0.1.pre2
4a756ff
- Upstream pre-release.
4a756ff
4a756ff
* Mon Apr 23 2007 Matej Cepl <mcepl@redhat.com> - 0.4.0-1
4a756ff
- The first experimental package of PSPP for Fedora.