116c029
Name:           pspp
edfe85b
Version:        0.6.2
edfe85b
Release:        1%{?dist}
116c029
Summary:        A program for statistical analysis of sampled data
116c029
116c029
Group:          Applications/Engineering
116c029
License:        GPLv3+
116c029
URL:            http://www.gnu.org/software/pspp/
116c029
Source0:        ftp://ftp.gnu.org/pub/gnu/pspp/pspp-%{version}.tar.gz
116c029
Source1:        pspp-psppire-desktop.txt
e57eb3a
Source2:        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
116c029
Requires(post): info
116c029
Requires(preun): info
116c029
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
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
116c029
%build
ed322de
%configure CFLAGS="${CFLAGS:-%optflags} -fgnu89-inline" \
ed322de
    --disable-static --disable-rpath
116c029
make %{?_smp_mflags}
116c029
cp -p %{SOURCE1} psppire.desktop
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
116c029
# icon file
116c029
desktop-file-install --vendor="fedora" \
116c029
    --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
116c029
    psppire.desktop
116c029
116c029
# localization
116c029
%find_lang %{name}
116c029
116c029
%check
116c029
make check
116c029
116c029
%post
116c029
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
116c029
116c029
%preun
116c029
if [ $1 = 0 ] ; then
19b211f
    /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
116c029
fi
116c029
116c029
%clean
116c029
rm -rf $RPM_BUILD_ROOT
116c029
116c029
%files -f %{name}.lang
116c029
%defattr(-,root,root,-)
116c029
%doc README COPYING examples/ THANKS TODO AUTHORS
116c029
%config(noreplace) %{_sysconfdir}/pspp/*
116c029
%dir %{_sysconfdir}/pspp
116c029
%{_bindir}/pspp
116c029
%{_bindir}/psppire
116c029
%{_infodir}/pspp*
116c029
%{_libdir}/pspp
116c029
%{_datadir}/pspp
116c029
%{_datadir}/applications/fedora-psppire.desktop
116c029
116c029
%changelog
edfe85b
* Fri Oct 16 2009 Peter Lemenkov <lemenkov@gmail.com> 0.6.2-1
edfe85b
- Ver. 0.6.2
edfe85b
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.