File rubber.spec of Package rubber

#
# spec file for package rubber (Version 1.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           rubber
Version:        1.1
Release:        1
License:        GPLv2
Summary:        An automated system for building LaTeX documents
Url:            http://rubber.sourceforge.net/
Group:          Productivity/Publishing/TeX/Utilities
Source:         %{name}-%{version}.tar.gz
BuildRequires:  python-devel >= 2.5
Requires:       python >= 2.5
Requires:       python-base >= 2.5
Requires:       texlive-latex
%if 0%{?suse_version} >= 1120
BuildArch:      noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires

%if %suse_version <= 1110  
%define python_sitelib %{py_sitedir}  
%endif  

%description
This is a building system for LaTeX documents. It is based on a routine that
runs just as many compilations as necessary. The module system provides a
great flexibility that virtually allows support for any package with no user
intervention, as well as pre- and post-processing of the document. The
standard modules currently provide support for bibtex, dvips, dvipdfm, pdftex,
makeindex. A good number of standard packages are supported, including
graphics/graphicx (with automatic conversion between various formats and
Metapost compilation).

%prep
%setup -q

%build
./configure --prefix=%{_prefix} --mandir='%{_mandir}' --infodir='%{_infodir}'
make %{?_smp_mflags}

%install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-lib=%{python_sitelib}
%{__rm} %{buildroot}%{_mandir}/fr/man1/rubber*

%clean
rm -rf %{buildroot}

%post    
install-info %{_infodir}/rubber.info.gz %{_infodir}/dir

%postun    
install-info --delete %{_infodir}/rubber.info.gz %{_infodir}/dir

%files
%defattr(-,root,root,-)
%doc COPYING NEWS README
%{_bindir}/rubber
%{_bindir}/rubber-pipe
%{_bindir}/rubber-info
%{_datadir}/rubber
%{python_sitelib}/rubber
%{python_sitelib}/rubber-%{version}-py%{py_ver}.egg-info
%{_mandir}/man1/rubber-info.1*
%{_mandir}/man1/rubber-pipe.1*
%{_mandir}/man1/rubber.1*
%{_infodir}/rubber.info.gz

%changelog
openSUSE Build Service is sponsored by