I'm packaging a package for personal use at the moment, I don't think I'll be submitting it to Extras any time soon as it has some issues (see bottom), but I want to make sure my personal packaging is what would be expected if it were to be submitted.
package is latex2rtf
It is suppose to translate a latex package to rtf
http://mpeters.us/testing/latex2rtf.spec http://mpeters.us/testing/latex2rtf-1.9.15.destdir.patch http://mpeters.us/testing/latex2rtf-1.9.15-0.1.src.rpm
Packaging questions -
upstream ctan is a zip archive, but unlike most ctan archives - this archive contains a bunch of archives within it, including the source tar.gz tarball I'm using for the package (and an older version). So what I did is referenced where the ctan archive came from in a comment, noting the source tarball is contained within. That seemed better to me than having prep do everything inside a zip archive full of stuff that wasn't going to be used.
Secondly - I'm not using the tetex namespace. Since upstream has latex in the name already, and it isn't a package that you would call from within a tetex document, I didn't think that was necessary.
Thirdly - the package in the Makefile wants to put its .cfg files in /usr/local/share/latex2rtf I'm instead putting them in /usr/share/texmf/tex/latex/latex2rtf
Since it doesn't have any .sty files and isn't a package that a latex document would use, though, I'm not sure that that is the right thing to do. The reason I'm putting them there is because I wanted the documentation in texmf so that texdoc would find the documentation.
Since it isn't a tetex package that other packages would use, is what I'm doing wrong?
Thanks for comments.
-=- The compile gives a LOT of warnings when compiled with $RPM_OPT_FLAGS - but it works OK. The tex file I'm trying it out on has some png images and some complex math equations (some inline, some not) - but was created in LyX and I think needs some cleaning, there's some latex warnings - the resulting rtf has some unwanted text at the beginning of all non inline complex equations as part of the image "Created using babel.pl from version 3.7 ..." and the document is missing the table of contents and a few other minor things, but I don't know how much of that is a problem with latex2rtf or how much of it is caused by LyX exporting to tex in a possibly less than ideal way - but I'll figure that out when I have cleaned up the latex ;)
On Sat, 2005-06-25 at 22:10 -0700, Michael A. Peters wrote:
Thirdly - the package in the Makefile wants to put its .cfg files in /usr/local/share/latex2rtf I'm instead putting them in /usr/share/texmf/tex/latex/latex2rtf
OK - that's clearly wrong, it causes latex to complain - so /usr/share is better. Interestingly - latex2rtf segfaults if gnuplot is involved (unless you just include the image) - so my interest in latex2rtf just decreased ...
On Sat, 25 Jun 2005 23:56:27 -0700, Michael A. Peters wrote:
On Sat, 2005-06-25 at 22:10 -0700, Michael A. Peters wrote:
Thirdly - the package in the Makefile wants to put its .cfg files in /usr/local/share/latex2rtf I'm instead putting them in /usr/share/texmf/tex/latex/latex2rtf
OK - that's clearly wrong, it causes latex to complain - so /usr/share is better. Interestingly - latex2rtf segfaults if gnuplot is involved (unless you just include the image) - so my interest in latex2rtf just decreased ...
".cfg files"? Putting configuration files below /usr/share looks like a strange decision. If these are really configuration files which may be modified, they should go into some /etc directory rather than into a tree which may be mounted read-only and/or from the network.
On Sun, 2005-06-26 at 12:00 +0200, Michael Schwendt wrote:
On Sat, 25 Jun 2005 23:56:27 -0700, Michael A. Peters wrote:
On Sat, 2005-06-25 at 22:10 -0700, Michael A. Peters wrote:
Thirdly - the package in the Makefile wants to put its .cfg files in /usr/local/share/latex2rtf I'm instead putting them in /usr/share/texmf/tex/latex/latex2rtf
OK - that's clearly wrong, it causes latex to complain - so /usr/share is better. Interestingly - latex2rtf segfaults if gnuplot is involved (unless you just include the image) - so my interest in latex2rtf just decreased ...
".cfg files"? Putting configuration files below /usr/share looks like a strange decision. If these are really configuration files which may be modified, they should go into some /etc directory rather than into a tree which may be mounted read-only and/or from the network.
They look more like language support files to me - snippet of welsh.cfg
# Created using babel.pl from version 3.7 of the Babel system # by Scott Prahl Tue Jul 3 22:26:17 2001 PREFACENAME,Rhagair. REFNAME,Cyfeiriadau. ABSTRACTNAME,Crynodeb. BIBNAME,Llyfryddiaeth. CHAPTERNAME,Pennod.
etc.
packaging@lists.fedoraproject.org