|
|
3bcc703 |
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
|
|
|
3bcc703 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
3bcc703 |
|
|
|
3bcc703 |
Name: rubber
|
|
|
3bcc703 |
Version: 1.1
|
|
|
3bcc703 |
Release: 2%{?dist}
|
|
|
3bcc703 |
Summary: An automated system for building LaTeX documents
|
|
|
3bcc703 |
|
|
|
3bcc703 |
Group: Applications/Publishing
|
|
|
3bcc703 |
License: GPL+
|
|
|
3bcc703 |
|
|
|
3bcc703 |
URL: http://rubber.sourceforge.net/
|
|
|
3bcc703 |
Source0: http://rubber.sourceforge.net/%{name}-%{version}.tar.gz
|
|
|
3bcc703 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
3bcc703 |
BuildArch: noarch
|
|
|
3bcc703 |
BuildRequires: python-devel texinfo
|
|
|
3bcc703 |
|
|
|
3bcc703 |
Requires(post): /sbin/install-info
|
|
|
3bcc703 |
Requires(preun): /sbin/install-info
|
|
|
3bcc703 |
|
|
|
3bcc703 |
%description
|
|
|
3bcc703 |
This is a building system for LaTeX documents. It is based on a routine that
|
|
|
3bcc703 |
runs just as many compilations as necessary. The module system provides a
|
|
|
3bcc703 |
great flexibility that virtually allows support for any package with no user
|
|
|
3bcc703 |
intervention, as well as pre- and post-processing of the document. The
|
|
|
3bcc703 |
standard modules currently provide support for bibtex, dvips, dvipdfm, pdftex,
|
|
|
3bcc703 |
makeindex. A good number of standard packages are supported, including
|
|
|
3bcc703 |
graphics/graphicx (with automatic conversion between various formats and
|
|
|
3bcc703 |
Metapost compilation).
|
|
|
3bcc703 |
|
|
|
3bcc703 |
%prep
|
|
|
3bcc703 |
%setup -q
|
|
|
3bcc703 |
for file in doc/man-fr/*; do
|
|
|
3bcc703 |
iconv -f ISO88591 -t utf8 $file -o $file
|
|
|
3bcc703 |
done
|
|
|
3bcc703 |
|
|
|
3bcc703 |
%build
|
|
|
3bcc703 |
%configure
|
|
|
3bcc703 |
%{__make} %{?_smp_mflags}
|
|
|
3bcc703 |
|
|
|
3bcc703 |
%install
|
|
|
3bcc703 |
%{__rm} -fr %{buildroot}
|
|
|
3bcc703 |
%{__python} setup.py install --root %{buildroot}
|
|
|
3bcc703 |
|
|
|
3bcc703 |
%clean
|
|
|
3bcc703 |
%{__rm} -fr %{buildroot}
|
|
|
3bcc703 |
|
|
|
3bcc703 |
%post
|
|
|
3bcc703 |
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
3bcc703 |
|
|
|
3bcc703 |
%preun
|
|
|
3bcc703 |
if [ $1 = 0 ]; then
|
|
|
3bcc703 |
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
3bcc703 |
fi
|
|
|
3bcc703 |
|
|
|
3bcc703 |
%files
|
|
|
3bcc703 |
%defattr(-,root,root,-)
|
|
|
3bcc703 |
%doc COPYING NEWS README
|
|
|
3bcc703 |
%{_bindir}/*
|
|
|
3bcc703 |
%{_datadir}/rubber
|
|
|
3bcc703 |
%{_datadir}/info/*
|
|
|
3bcc703 |
%{python_sitelib}/*
|
|
|
3bcc703 |
%{_mandir}/man1/*.gz
|
|
|
3bcc703 |
%{_mandir}/fr/man1/*.gz
|
|
|
3bcc703 |
|
|
|
3bcc703 |
%changelog
|
|
|
3bcc703 |
* Wed Sep 17 2008 Sergio Pascual <sergiops@fedoraproject.org> - 1.1-2
|
|
|
3bcc703 |
- ***
|
|
|
3bcc703 |
|
|
|
3bcc703 |
* Wed Sep 17 2008 Sergio Pascual <sergiops@fedoraproject.org> - 1.1-1
|
|
|
3bcc703 |
- Initial specfile
|
|
|
3bcc703 |
|