1 | # sitelib for noarch packages, sitearch for others (remove the unneeded one) |
---|
2 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
3 | |
---|
4 | Name: rubber |
---|
5 | Version: 1.1 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | Summary: An automated system for building LaTeX documents |
---|
8 | |
---|
9 | Group: Applications/Publishing |
---|
10 | License: GPL+ |
---|
11 | |
---|
12 | URL: http://rubber.sourceforge.net/ |
---|
13 | |
---|
14 | Source0: http://rubber.sourceforge.net/%{name}-%{version}.tar.gz |
---|
15 | |
---|
16 | Patch0: rubber-python26.patch |
---|
17 | |
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
19 | |
---|
20 | BuildArch: noarch |
---|
21 | |
---|
22 | BuildRequires: python-devel texinfo |
---|
23 | |
---|
24 | Requires: texlive |
---|
25 | |
---|
26 | Requires(post): /sbin/install-info |
---|
27 | Requires(preun): /sbin/install-info |
---|
28 | |
---|
29 | Vendor: Project Vine |
---|
30 | Distribution: Vine Linux |
---|
31 | |
---|
32 | %description |
---|
33 | This is a building system for LaTeX documents. It is based on a routine that |
---|
34 | runs just as many compilations as necessary. The module system provides a |
---|
35 | great flexibility that virtually allows support for any package with no user |
---|
36 | intervention, as well as pre- and post-processing of the document. The |
---|
37 | standard modules currently provide support for bibtex, dvips, dvipdfm, pdftex, |
---|
38 | makeindex. A good number of standard packages are supported, including |
---|
39 | graphics/graphicx (with automatic conversion between various formats and |
---|
40 | Metapost compilation). |
---|
41 | |
---|
42 | %prep |
---|
43 | %setup -q |
---|
44 | %patch0 -p1 |
---|
45 | for file in doc/man-fr/*; do |
---|
46 | iconv -f ISO88591 -t utf8 $file -o $file |
---|
47 | done |
---|
48 | |
---|
49 | %build |
---|
50 | %configure |
---|
51 | %{__make} %{?_smp_mflags} |
---|
52 | |
---|
53 | %install |
---|
54 | %{__rm} -fr %{buildroot} |
---|
55 | %{__python} setup.py install --root %{buildroot} |
---|
56 | |
---|
57 | %clean |
---|
58 | %{__rm} -fr %{buildroot} |
---|
59 | |
---|
60 | %post |
---|
61 | /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : |
---|
62 | |
---|
63 | %preun |
---|
64 | if [ $1 = 0 ]; then |
---|
65 | /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : |
---|
66 | fi |
---|
67 | |
---|
68 | %files |
---|
69 | %defattr(-,root,root,-) |
---|
70 | %doc COPYING NEWS README |
---|
71 | %{_bindir}/* |
---|
72 | %{_datadir}/rubber |
---|
73 | %{_datadir}/info/* |
---|
74 | %{python_sitelib}/* |
---|
75 | %{_mandir}/man1/*.gz |
---|
76 | %{_mandir}/fr/man1/*.gz |
---|
77 | |
---|
78 | %changelog |
---|
79 | * Mon Oct 10 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1-1 |
---|
80 | - initial build for Vine Linux |
---|
81 | |
---|
82 | |
---|
83 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> |
---|
84 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
85 | |
---|
86 | * Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> |
---|
87 | - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild |
---|
88 | |
---|
89 | * Mon Dec 28 2009 Sergio Pascual <sergiopr@fedoraproject.org> |
---|
90 | - Adding virtual dependency on latex (bz #550792) |
---|
91 | |
---|
92 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> |
---|
93 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
94 | |
---|
95 | * Mon Jun 15 2009 Sergio Pascual <sergiopr@fedoraproject.org> |
---|
96 | - Patch to remove a Deprecation Warning in Python 2.6 (bz #506053) |
---|
97 | |
---|
98 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> |
---|
99 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
100 | |
---|
101 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> |
---|
102 | - Rebuild for Python 2.6 |
---|
103 | |
---|
104 | * Wed Sep 17 2008 Sergio Pascual <sergiopr@fedoraproject.org> |
---|
105 | - *** |
---|
106 | |
---|
107 | * Wed Sep 17 2008 Sergio Pascual <sergiopr@fedoraproject.org> |
---|
108 | - Initial specfile |
---|
109 | |
---|