diff --git a/.cvsignore b/.cvsignore index e69de29..2640b33 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +dblatex-0.2.7.tar.bz2 diff --git a/COPYING-docbook-xsl b/COPYING-docbook-xsl new file mode 100644 index 0000000..8738364 --- /dev/null +++ b/COPYING-docbook-xsl @@ -0,0 +1,47 @@ +Copyright +--------- +Copyright (C) 1999-2007 Norman Walsh +Copyright (C) 2003 Jiří Kosek +Copyright (C) 2004-2007 Steve Ball +Copyright (C) 2005-2007 The DocBook Project + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the ``Software''), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +Except as contained in this notice, the names of individuals +credited with contribution to this software shall not be used in +advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization +from the individuals in question. + +Any stylesheet derived from this Software that is publically +distributed will be identified with a different name and the +version strings in any derived Software will be changed so that +no possibility of confusion between the derived package and this +Software will exist. + +Warranty +-------- +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL NORMAN WALSH OR ANY OTHER +CONTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +Contacting the Author +--------------------- +The DocBook XSL stylesheets are maintained by Norman Walsh, +, and members of the DocBook Project, + diff --git a/dblatex-0.2.7-external-which.patch b/dblatex-0.2.7-external-which.patch new file mode 100644 index 0000000..f37232b --- /dev/null +++ b/dblatex-0.2.7-external-which.patch @@ -0,0 +1,12 @@ +diff -up dblatex-0.2.7/setup.py.external_which dblatex-0.2.7/setup.py +--- dblatex-0.2.7/setup.py.external_which 2007-04-26 21:08:56.000000000 +0200 ++++ dblatex-0.2.7/setup.py 2007-07-22 19:35:05.000000000 +0200 +@@ -147,7 +147,7 @@ os.environ["SGML_CATALOG_FILES"] = cat + + def find_programs(utils): + sys.path.append("lib") +- from contrib.which import which ++ import which + util_paths = {} + missed = [] + for util in utils: diff --git a/dblatex.spec b/dblatex.spec new file mode 100644 index 0000000..1f114a1 --- /dev/null +++ b/dblatex.spec @@ -0,0 +1,167 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: dblatex +Version: 0.2.7 +Release: 16%{?dist} +Summary: DocBook to LaTeX/ConTeXt Publishing +BuildArch: noarch +Group: Applications/Publishing +License: GPLv2+ +URL: http://dblatex.sourceforge.net/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 +#Source1: http://docbook.sourceforge.net/release/xsl/current/COPYING +Source1: COPYING-docbook-xsl +Patch0: dblatex-0.2.7-external-which.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: python-devel libxslt tetex ImageMagick tetex-latex python-which +Requires: tetex libxslt docbook-dtds python passivetex tetex-latex ImageMagick transfig tetex-fonts + +%if 0%{?fedora} < 8 +Conflicts: tetex-tex4ht +%endif + +%description +dblatex is a program that transforms your SGML/XMLDocBook +documents to DVI, PostScript or PDF by translating them +into pure LaTeX as a first process. MathML 2.0 markups +are supported, too. It started as a clone of DB2LaTeX. + +Authors: +-------- + Benoît Guillon + Andreas Hoenen + + +%prep +%setup -q +%patch0 -p1 -b .external-which +rm -rf lib/contrib + +%build +%{__python } setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +#%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT +%{__python} setup.py install --root $RPM_BUILD_ROOT +# these are already in tetex-latex: +for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/; do + rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/misc/$file +done + +mkdir -p $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/dblatex +for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do + mv $file $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/dblatex/`basename $file`; +done + +rmdir $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/{misc,contrib/example,style} + +mkdir -p $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/xsl-stylesheets/ +mv $RPM_BUILD_ROOT%{_datadir}/dblatex/xsl/ $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/xsl-stylesheets/dblatex +ln -s ../sgml/docbook/xsl-stylesheets/dblatex $RPM_BUILD_ROOT%{_datadir}/dblatex/xsl + +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dblatex +# shipped in %%docs +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/ + +sed -e 's/\r//' xsl/mathml2/README > README-xsltml +touch -r xsl/mathml2/README README-xsltml +cp -p %{SOURCE1} COPYING-docbook-xsl + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{_mandir}/man1/dblatex.1* +%doc COPYRIGHT docs/manual.pdf COPYING-docbook-xsl README-xsltml +%{python_sitelib}/dbtexmf/ +%{_bindir}/dblatex +%{_datadir}/dblatex/ +%{_datadir}/texmf/tex/latex/dblatex/ +%{_datadir}/sgml/docbook/xsl-stylesheets/dblatex/ +%dir %{_sysconfdir}/dblatex + +%post -p /usr/bin/texhash + +%postun -p /usr/bin/texhash + +%changelog +* Mon Nov 12 2007 Neal Becker - 0.2.7-16 +- convert spec to utf8 +- change to gplv2+ + +* Mon Nov 12 2007 Neal Becker - 0.2.7-15 +- Add copyright info + +* Mon Nov 5 2007 Neal Becker - 0.2.7-14 +- Req tetex-fonts for texhash +- Fix post, postun + +* Sun Nov 4 2007 Neal Becker - 0.2.7-13 +- Add texhash + +* Sun Nov 4 2007 Neal Becker - 0.2.7-12 +- Fix xsl link + +* Sat Nov 3 2007 Neal Becker - 0.2.7-12 +- Various fixes from pertusus@free.fr: +- rm iconv stuff +- simplify docs installation + +* Fri Nov 2 2007 - 0.2.7-11 +- Various minor fixes + +* Thu Nov 1 2007 - 0.2.7-10 +- Add some reqs and brs +- rmdir /usr/share/dblatex/latex/{misc,contrib/example,style} + +* Sat Oct 27 2007 - 0.2.7-9 +- link /usr/share/dblatex/xsl -> /usr/share/sgml/docbook/xsl-stylesheets/dblatex +- rmdir /usr/share/dblatex/latex/{misc,specs,style} +- own /etc/dblatex +- change $(...) -> `...` +- Preserve timestamps on iconv + +* Mon Oct 15 2007 Neal Becker - 0.2.7-9 +- mv all .sty files to datadir/texmf/tex/latex/dblatex +- Add Conflicts tetex-tex4ht +- mv all xsl stuff to datadir/sgml/docbook/xsl-stylesheets/dblatex/ + +* Mon Oct 15 2007 Neal Becker - 0.2.7-8 +- rm redundant latex files + +* Tue Sep 25 2007 Neal Becker - 0.2.7-8 +- Fixed encodings in docs directory +- Install docs at correct location + +* Fri Sep 21 2007 Neal Becker - 0.2.7-7 +- Revert back to GPLv2 +- untabify + +* Fri Sep 21 2007 Neal Becker - 0.2.7-6 +- Fix source URL +- Install all docs +- Tabify + +* Thu Sep 20 2007 Neal Becker - 0.2.7-5 +- Add BR tetex-latex + +* Thu Sep 20 2007 Neal Becker - 0.2.7-4 +- Add BR tetex, ImageMagick + +* Thu Sep 20 2007 Neal Becker - 0.2.7-3 +- Add BR libxslt + +* Wed Sep 19 2007 Neal Becker - 0.2.7-2 +- Add BR python-devel + +* Fri Sep 7 2007 Neal Becker - 0.2.7-1 +- Initial + + + diff --git a/sources b/sources index e69de29..fe6b4e4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f59bc018bc7f5c159a5c726ae66abbfc dblatex-0.2.7.tar.bz2