eb57ab
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
eb57ab
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} 
eb57ab
eb57ab
Name: rubber
eb57ab
Version: 1.1
ce68a1
Release: 8%{?dist}
eb57ab
Summary: An automated system for building LaTeX documents
eb57ab
eb57ab
Group: Applications/Publishing
eb57ab
License: GPL+
eb57ab
eb57ab
URL: http://rubber.sourceforge.net/
eb57ab
Source0: http://rubber.sourceforge.net/%{name}-%{version}.tar.gz
ab48c9
Patch0: rubber-python26.patch
eb57ab
BuildRoot:  %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
eb57ab
BuildArch: noarch
eb57ab
BuildRequires: python-devel texinfo
595d20
Requires: tex(latex)
eb57ab
eb57ab
Requires(post): /sbin/install-info
eb57ab
Requires(preun): /sbin/install-info
eb57ab
eb57ab
%description
eb57ab
This is a building system for LaTeX documents. It is based on a routine that
eb57ab
runs just as many compilations as necessary. The module system provides a
eb57ab
great flexibility that virtually allows support for any package with no user
eb57ab
intervention, as well as pre- and post-processing of the document. The
eb57ab
standard modules currently provide support for bibtex, dvips, dvipdfm, pdftex,
eb57ab
makeindex. A good number of standard packages are supported, including
eb57ab
graphics/graphicx (with automatic conversion between various formats and
eb57ab
Metapost compilation).
eb57ab
eb57ab
%prep
eb57ab
%setup -q
ab48c9
%patch0 -p1
eb57ab
for file in doc/man-fr/*; do
eb57ab
iconv -f ISO88591 -t utf8 $file -o $file
eb57ab
done
eb57ab
eb57ab
%build
eb57ab
%configure
eb57ab
%{__make} %{?_smp_mflags}
eb57ab
eb57ab
%install
eb57ab
%{__rm} -fr %{buildroot}
eb57ab
%{__python} setup.py install --root  %{buildroot}
eb57ab
eb57ab
%clean
eb57ab
%{__rm} -fr %{buildroot}
eb57ab
eb57ab
%post 
eb57ab
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
eb57ab
eb57ab
%preun 
eb57ab
if [ $1 = 0 ]; then
eb57ab
    /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
eb57ab
fi
eb57ab
eb57ab
%files
eb57ab
%defattr(-,root,root,-)
eb57ab
%doc COPYING NEWS README
eb57ab
%{_bindir}/*
eb57ab
%{_datadir}/rubber
eb57ab
%{_datadir}/info/*
eb57ab
%{python_sitelib}/*
eb57ab
%{_mandir}/man1/*.gz
eb57ab
%{_mandir}/fr/man1/*.gz
eb57ab
eb57ab
%changelog
ce68a1
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.1-8
ce68a1
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
ce68a1
595d20
* Mon Dec 28 2009 Sergio Pascual <sergiopr@fedoraproject.org> - 1.1-7
595d20
- Adding virtual dependency on latex (bz #550792)
595d20
45a0f8
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6
45a0f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
45a0f8
595d20
* Mon Jun 15 2009 Sergio Pascual <sergiopr@fedoraproject.org> - 1.1-5
ab48c9
- Patch to remove a Deprecation Warning in Python 2.6 (bz #506053)
ab48c9
7e6acd
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-4
7e6acd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7e6acd
f8d149
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.1-3
f8d149
- Rebuild for Python 2.6
f8d149
595d20
* Wed Sep 17 2008 Sergio Pascual <sergiopr@fedoraproject.org> - 1.1-2
eb57ab
- ***
eb57ab
595d20
* Wed Sep 17 2008 Sergio Pascual <sergiopr@fedoraproject.org> - 1.1-1
eb57ab
- Initial specfile
eb57ab