[svn] r5129 - in trunk/rpms: . txt2tags

packagers at lists.rpmforge.net packagers at lists.rpmforge.net
Mon Jan 29 22:45:10 CET 2007


Author: dag
Date: 2007-01-29 22:45:09 +0100 (Mon, 29 Jan 2007)
New Revision: 5129

Added:
   trunk/rpms/txt2tags/
   trunk/rpms/txt2tags/txt2tags.spec
Log:
Updates

Added: trunk/rpms/txt2tags/txt2tags.spec
===================================================================
--- trunk/rpms/txt2tags/txt2tags.spec	                        (rev 0)
+++ trunk/rpms/txt2tags/txt2tags.spec	2007-01-29 21:45:09 UTC (rev 5129)
@@ -0,0 +1,81 @@
+# $Id$
+# Authority: dag
+
+%{?dist: %{expand: %%define %dist 1}}
+%{?fedora: %{expand: %%define fc%{fedora} 1}}
+
+%{!?dist:%define _with_gettextdevel 1}
+%{?fc6: %define _with_gettextdevel 1}
+%{?fc5: %define _with_gettextdevel 1}
+%{?fc4: %define _with_gettextdevel 1}
+%{?fc3: %define _with_gettextdevel 1}
+
+Summary: Converts text files to HTML, XHTML, sgml, LaTeX, man...
+Name: txt2tags
+Version: 2.4
+Release: 1
+License: GPL
+Group: Applications/Text
+URL: http://txt2tags.sourceforge.net/
+
+Source: http://dl.sf.net/txt2tags/txt2tags-%{version}.tgz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildArch: noarch
+%{?_with_gettextdevel:BuildRequires: gettext-devel}
+Requires: python
+
+%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
+
+### Remove executable flag
+%{__chmod} 0644 extras/*
+
+### Create locale files
+for file in $(ls -1 po/*.po); do
+	msgfmt -o ${file//.po/.mo} $file
+done
+
+%install
+%{__rm} -rf %{buildroot}
+
+%{__install} -Dp -m0755 txt2tags %{buildroot}%{_bindir}/txt2tags
+
+### Install translated manpages
+%{__install} -Dp -m0644 doc/manpage.man %{buildroot}%{_mandir}/man1/txt2tags.1
+for file in $(ls -1 doc/manpage-*.man); do
+	lang="${file##doc/manpage-}"
+	lang="${lang%%.man}"
+	%{__install} -Dp -m0644 $file %{buildroot}%{_mandir}/$lang/man1/txt2tags.1
+done
+
+### Install locale files
+for file in $(ls -1 po/*.mo); do
+	basename="${file##po/}"
+	lang="${basename%%.mo}"
+	%{__install} -Dp -m0644 $file %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/txt2tags.mo
+done
+
+%find_lang %{name}
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files -f %{name}.lang
+%defattr(-, root, root, 0755)
+%doc ChangeLog COPYING README TODO doc/*.pdf extras/ samples/
+%doc %{_mandir}/man1/txt2tags.1*
+%doc %{_mandir}/*/man1/txt2tags.1*
+%{_bindir}/txt2tags
+
+%changelog
+* Mon Jan 29 2007 Dag Wieers <dag at wieers.com> - 2.4-1
+- Initial package. (using DAR)


Property changes on: trunk/rpms/txt2tags/txt2tags.spec
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native



More information about the svn-commits mailing list