source: projects/specs/trunk/d/dblatex/dblatex-vl.spec @ 9968

Revision 9968, 8.7 KB checked in by munepi, 8 years ago (diff)

new upstream release

RevLine 
[4375]1%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2
3Name:           dblatex
[9968]4Version:        0.3.7
[9468]5Release:        1%{?_dist_release}
[4375]6Summary:        DocBook to LaTeX/ConTeXt Publishing
7BuildArch:      noarch
8Group:          Applications/Publishing
9License:        GPLv2+
10URL:            http://dblatex.sourceforge.net/
11Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
12#Source1:        http://docbook.sourceforge.net/release/xsl/current/COPYING
13Source1:        COPYING-docbook-xsl
14Patch0:         dblatex-0.2.7-external-which.patch
[7971]15
16##!! ad-hoc patch for no deb
17Patch10:        dblatex-0.3.4-no-deb.patch
18
[4375]19BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20
[8478]21BuildRequires:  texlive-vtlpkg >= 2013
[4375]22BuildRequires:  python-devel
23BuildRequires:  python-which
24BuildRequires:  libxslt docbook-dtds ImageMagick
25## Need epstopdf, fig2dev
26BuildRequires:  texlive-collection-fontutils
27BuildRequires:  transfig
28##BuildRequires:  tex(latex)
29##BuildRequires:  tex(xetex)
[8478]30BuildRequires:  texlive-common >= 2013
[4375]31## appendix.sty, changebar.sty, footmisc.sty, multirow.sty,
32## overpic.sty, subfigure.sty, titlesec.sty
33BuildRequires:  texlive-collection-latexextra
34## stmaryrd.sty
35BuildRequires:  texlive-collection-mathextra
36BuildRequires:  texlive-collection-htmlxml
37Requires:       libxslt docbook-dtds ImageMagick
38##Requires:       tex(xetex)
[9968]39Requires:       texlive-common >= 2013
[4375]40Requires:       texlive-collection-latexextra
41Requires:       transfig
[9968]42Requires:       texlive-collection-mathextra
[4375]43##Requires:     passivetex
44Requires:       texlive-collection-htmlxml
45
[7273]46## $ rpm -qf --qf "%{name}\n" $(kpsewhich $(grep "usepackage" $(rpm -ql dblatex | grep sty) | sed -e "s,.*{,," -e "s,}.*$,.sty,")) | sort | uniq
47Requires:       texlive-collection-langcjk texlive-collection-bibtexextra
48
[4375]49%description
50dblatex is a program that transforms your SGML/XMLDocBook
51documents to DVI, PostScript or PDF by translating them
52into pure LaTeX as a first process.  MathML 2.0 markups
53are supported, too. It started as a clone of DB2LaTeX.
54
55Authors:
56--------
57   Benoît Guillon <marsgui at users dot sourceforge dot net>
58   Andreas Hoenen <andreas dot hoenen at arcor dot de>
59
60
61%prep
62%setup -q
63%patch0 -p1 -b .external-which
[7971]64%patch10 -p1 -b .no-deb
[4375]65%__rm -rf lib/contrib
66
67%build
68%{__python} setup.py build
69
70
71%install
72%__rm -rf $RPM_BUILD_ROOT
73#%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
74%{__python} setup.py install --root $RPM_BUILD_ROOT
75# these are already in tetex-latex:
76for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/ xelatex/; do
77  %__rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/misc/$file
78done
79
[7971]80%__mkdir_p $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/dblatex
[4375]81for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do
[7971]82  %__mv $file $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/dblatex/`basename $file` || exit 1;
[4375]83done
84
85## also move .xetex files
86for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.xetex' ` ; do
[7971]87  %__mv $file $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/dblatex/`basename $file` || exit 1;
[4375]88done
89
90%__rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/{misc,contrib/example,style}
91
92%__mkdir_p $RPM_BUILD_ROOT%{_sysconfdir}/dblatex
93# shipped in %%docs
94%__rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
95
96%__sed -e 's/\r//' xsl/mathml2/README > README-xsltml
97touch -r xsl/mathml2/README README-xsltml
98%__cp -p %{SOURCE1} COPYING-docbook-xsl
99
100 
101%clean
102%__rm -rf $RPM_BUILD_ROOT
103
104
[8478]105%post
106%_tl_touch_run texhash
107exit 0
108
109%postun
110if [ "$1" = 0 ]; then
111   %_tl_touch_run texhash
112fi
113exit 0
114
115%posttrans
116%{_tl_exec_texhash}
117exit 0
118
119
[4375]120%files
121%defattr(-,root,root,-)
122%{_mandir}/man1/dblatex.1*
123%doc COPYRIGHT docs/manual.pdf COPYING-docbook-xsl README-xsltml
124%{python_sitelib}/dbtexmf/
125%{python_sitelib}/dblatex-*.egg-info
126%{_bindir}/dblatex
127%{_datadir}/dblatex/
[7971]128%{_datadir}/texmf/tex/latex/dblatex/
[4375]129%dir %{_sysconfdir}/dblatex
130
[8478]131%changelog
[9968]132* Wed Jan 20 2016 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.7-1
133- new upstream release
134
[9468]135* Wed Mar 25 2015 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.5-1
136- new upstream release
137
[8478]138* Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.4-2
139- added BuildRequires: texlive-vtlpkg >= 2013
140- added some scriptlets to run mktexlsr
[4375]141
[7971]142* Fri Nov  8 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.4-1
143- new upstream release
[4375]144
[7273]145* Fri Dec 28 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.2-3
146- added R: texlive-collection-langcjk texlive-collection-bibtexextra [Vine Linux 0002511]
147
[5774]148* Sat Feb 25 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.2-2
149- rebuild with Python 2.7.2
150
[5429]151* Fri Jan 20 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.2-1
152- new upstream release
153
[4375]154* Thu Jul 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> - 0.3-1
155- initial build
156
157* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-3
158- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
159
160* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3-2
161- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
162
163* Mon Apr 12 2010 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.3-1
164- Update to 0.3
165- Cleanup spec: drop some unnecessary conditionals for old releases (< F-11)
166
167* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.10-3
168- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
169
170* Sun May 10 2009 Neal Becker <ndbecker2@gmail.com> - 0.2.10-2
171- remove dblatex-0.2.9-xetex.patch
172
173* Sun May 10 2009 Neal Becker <ndbecker2@gmail.com> - 0.2.10-1
174- Update to 0.2.10
175
176* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.9-4
177- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
178
179* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.9-3
180- Rebuild for Python 2.6
181
182* Fri Jul  4 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.2.9-2
183- BR: texlive-xetex -> tex(xetex) for F-10 and later
184
185* Thu Jun 12 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.2.9-1
186- Update to latest upstream (0.2.9) (#448953)
187- Remove some redundant Requires and BuildRequires (passivetex pulls
188  in the tetex/tex requires, python dep added automatically)
189- For F-9+ BR on tex(latex) and texlive-xetex, fix the installation
190  scripts to install extra new files.
191- Add patch from dblatex mailing list for better handling of a missing
192  xetex.
193- Conditionally add .egg-info file only if F9+ to allow for unified
194  spec file
195
196* Sun Dec 16 2007 Patrice Dumas <pertusus@free.fr> - 0.2.8-2.1
197- don't install in docbook directory, it is a link to a versioned
198  directory and may break upon docbook update (#425251,#389231)
199
200* Sun Nov 25 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.8-1
201- Update to 0.2.8
202
203* Mon Nov 12 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-16
204- convert spec to utf8
205- change to gplv2+
206
207* Mon Nov 12 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-15
208- Add copyright info
209
210* Mon Nov  5 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-14
211- Req tetex-fonts for texhash
212- Fix post, postun
213
214* Sun Nov  4 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-13
215- Add texhash
216
217* Sun Nov  4 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-12
218- Fix xsl link
219
220* Sat Nov  3 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-12
221- Various fixes from pertusus@free.fr:
222- rm iconv stuff
223- simplify docs installation
224
225* Fri Nov  2 2007  <ndbecker2@gmail.com> - 0.2.7-11
226- Various minor fixes
227
228* Thu Nov  1 2007  <ndbecker2@gmail.com> - 0.2.7-10
229- Add some reqs and brs
230- rmdir /usr/share/dblatex/latex/{misc,contrib/example,style}
231
232* Sat Oct 27 2007  <ndbecker2@gmail.com> - 0.2.7-9
233- link /usr/share/dblatex/xsl -> /usr/share/sgml/docbook/xsl-stylesheets/dblatex
234- rmdir /usr/share/dblatex/latex/{misc,specs,style}
235- own /etc/dblatex
236- change $(...) -> `...`
237- Preserve timestamps on iconv
238
239* Mon Oct 15 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-9
240- mv all .sty files to datadir/texmf/tex/latex/dblatex
241- Add Conflicts tetex-tex4ht
242- mv all xsl stuff to datadir/sgml/docbook/xsl-stylesheets/dblatex/
243
244* Mon Oct 15 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-8
245- rm redundant latex files
246
247* Tue Sep 25 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-8
248- Fixed encodings in docs directory
249- Install docs at correct location
250
251* Fri Sep 21 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-7
252- Revert back to GPLv2
253- untabify
254
255* Fri Sep 21 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-6
256- Fix source URL
257- Install all docs
258- Tabify
259
260* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-5
261- Add BR tetex-latex
262
263* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-4
264- Add  BR tetex, ImageMagick
265
266* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-3
267- Add BR libxslt
268
269* Wed Sep 19 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-2
270- Add BR python-devel
271
272* Fri Sep  7 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-1
273- Initial
274
275
276
Note: See TracBrowser for help on using the repository browser.