Spec URL: http://www.devin.com.br/fedora-devel/SPECS/html2txt.spec SRPM URL: http://www.devin.com.br/fedora-devel/html2txt-0.99.1-1.fc11.src.rpm Description: html2txt doesn't do any conversion of your file, but only stripes ANYTHING between the '<' and '>' signs in the original html-file and writes the result to the specified text file. The html file remains untouched. -- I don't know if I'll need a new sponsor because I didn't package and work with Fedora team since 2006. FedoraProject Brazil asked for help on packaging the KyaPanel, so I'm trying to "come back" to help. Although KyaPanel is a noarch package, it uses this html2txt for some reporting generation. I'm studying with the author the possibility to substitute this single utility for a sed script, for compliance with the noarch nature of the whole package. But since this is not the case at this time, I think that packaging this program won't hurt :) The current KyaPanel review request is: https://bugzilla.redhat.com/show_bug.cgi?id=485401 And it's missing the spec, etc. I'll work through the week on the spec and its dependencies.
Koji scratch build on dist-f11: http://koji.fedoraproject.org/koji/taskinfo?taskID=1541252
html2txt doesn't seem to be a very good tool for converting html to plain text. Could you use some other tool that is already in Fedora to do that? lynx will do it, but there are probably other tools that could do it as well. You can test "lynx -force_html -dump" and see if it does what you need.
There's also html2text, already in Fedora.
I could also use sed to do it, but since the KyaPanel (goal) upstream does not use it in the current version, I can't create a package for it. For this, one question: what do you think of creating a patch for not using this tool on the main package, even when upstream didn't use the patch? I ask this because I'll sure push a patch like that to him in the future :) If using a patch is a good thing, I'll just dump this package.
I think the typical solution for this kind of thing is to have a way to configure it at run time. Either read a file (global and/or local) and/or look at an environment variable that says what command to use to change html to plain text. There should also be a fallback. The fallback is the only thing you would need to change for Fedora if you can get the general scheme upstreamed.
Ok, since nobody wants this package included, I'll dump it and use another approach. If anyone changes opinion, re-open ticket. Thanks.