Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:netmask
txt2tags
txt2tags.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File txt2tags.spec of Package txt2tags
Name: txt2tags Version: 2.3 Release: 1 Summary: Converts text files to HTML, XHTML, sgml, LaTeX, man... Group: Productivity/Text/Convertors License: GPL URL: http://txt2tags.sourceforge.net Source: http://txt2tags.sourceforge.net/src/%{name}-%{version}.tgz Requires: python BuildArch: noarch BuildRequires: gettext-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root Packager: Mauricio Teixeira <mteixeira@webset.net> %description Txt2tags is a generic text converter. From a simple text file with minimal markup, it generates documents on the following formats: HTML, XHTML, sgml, LaTeX, Lout, man, Magic Point (mgp), MoinMoin and Adobe PageMaker. Supports heading, font beautifiers, verbatim, quote, link, lists, table and image. There are GUI, Web and cmdline interfaces. It's a single Python script and no external commands or libraries are needed. %prep %setup -q # compile the translated messages for all languages %define LANGS $(cd po; ls *.po | cut -d. -f1) for lang in %{LANGS}; do msgfmt -o po/$lang.mo po/$lang.po done %install chmod 644 extras/* # executables install -d %{buildroot}%{_bindir} install -m 0755 %{name} %{buildroot}%{_bindir} # man pages install -d %{buildroot}/%{_mandir}/man1 install -m 0644 doc/manpage.man %{buildroot}/%{_mandir}/man1/txt2tags.1 rm doc/manpage.man cd doc for lang in $(ls -p1 | grep / | cut -d/ -f1); do if [ ! -z $(ls $lang | grep .man) ]; then install -d %{buildroot}/%{_mandir}/$lang/man1 install -m 0644 $lang/$(ls $lang | grep .man) %{buildroot}/%{_mandir}/$lang/man1/txt2tags.1 rm $lang/$(ls $lang | grep .man) fi done cd .. # translations for lang in %{LANGS}; do install -d \ %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES install -m 0644 po/$lang.mo \ %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/txt2tags.mo done %clean rm -rf %{buildroot} %files %defattr(-,root,root,0755) %doc ChangeLog README README-FIRST COPYING TEAM TODO %doc %dir doc %dir extras %dir samples %{_bindir}/%{name} %{_mandir}/man1/txt2tags.1* %{_mandir}/*/man1/txt2tags.1* %{_datadir}/locale/*/LC_MESSAGES/txt2tags.mo %changelog * Wed Jun 21 2006 Mauricio Teixeira <mteixeira@webset.net> - Moved to OpenSUSE Build Service * Thu Mar 16 2006 Mauricio Teixeira <mteixeira@webset.net> 2.3-1netmask.suse100 - build on SUSE 10.0 * Thu Jul 14 2005 Mauricio Teixeira <mteixeira@webset.net> - redefined locale and man pages install based on existence of files * Wed Jun 15 2005 Mauricio Teixeira <mteixeira@webset.net> - new upstream version 2.3 (see ChangeLog for details) - t2tconv not needed in binary path (moved into extra)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor