[retext] Initial commit

Mario Blättermann mariobl at fedoraproject.org
Mon Feb 2 19:56:09 UTC 2015


commit 38288f9816a4542f030dfaf63c77849d58dcc8d1
Author: Mario Blättermann <mario.blaettermann at gmail.com>
Date:   Mon Feb 2 20:55:47 2015 +0100

    Initial commit

 .gitignore         |    1 +
 retext-man-de.po   |  166 ++++++++++++++++++++++++++++++++++++++++++++++++
 retext.1           |   20 ++++++
 retext.appdata.xml |   30 +++++++++
 retext.spec        |  180 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 wpgen.1            |   31 +++++++++
 7 files changed, 429 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8916d83 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ReText-5.0.1.tar.gz
diff --git a/retext-man-de.po b/retext-man-de.po
new file mode 100644
index 0000000..0d7f5f9
--- /dev/null
+++ b/retext-man-de.po
@@ -0,0 +1,166 @@
+# German translation of the ReText man pages
+# Copyright (C) 2014 Free Software Foundation, Inc.
+# This file is distributed under the same license as the retext package.
+# Mario Blättermann <mario.blaettermann at gmail.com>, 2014.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: retext 5.0.1\n"
+"POT-Creation-Date: 2014-12-01 10:58+0100\n"
+"PO-Revision-Date: 2014-12-01 11:07+0100\n"
+"Last-Translator: Mario Blättermann <mario.blaettermann at gmail.com>\n"
+"Language-Team: German <debian-l10n-german at lists.debian.org>\n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.5.4\n"
+
+#. type: TH
+#: retext.1:1
+#, no-wrap
+msgid "RETEXT"
+msgstr "RETEXT"
+
+#. type: SH
+#: retext.1:3 wpgen.1:3
+#, no-wrap
+msgid "NAME"
+msgstr "BEZEICHNUNG"
+
+#. type: Plain text
+#: retext.1:5
+msgid "ReText - Text editor for Markdown and ReStructuredText"
+msgstr "ReText - Texteditor für Markdown und ReStructuredText"
+
+#. type: SH
+#: retext.1:6 wpgen.1:6
+#, no-wrap
+msgid "SYNOPSIS"
+msgstr "ÜBERSICHT"
+
+#. type: Plain text
+#: retext.1:9
+msgid "B<retext> I<FILE>"
+msgstr "B<retext> I<DATEI>"
+
+#. type: SH
+#: retext.1:10 wpgen.1:24
+#, no-wrap
+msgid "DESCRIPTION"
+msgstr "BESCHREIBUNG"
+
+#. type: Plain text
+#: retext.1:13
+msgid ""
+"ReText is a simple editor for Markdown and ReStructuredText markup languages."
+msgstr ""
+"ReText ist ein einfacher Editor für die Markup-Sprachen Markdown und "
+"ReStructuredText."
+
+#. type: Plain text
+#: retext.1:16
+msgid ""
+"Supported output formats: Plain text, HTML, ODT, PDF. Also, ReText can "
+"upload documents to Google Docs."
+msgstr ""
+"Die folgenden Ausgabeformate werden unterstützt: einfacher Text, HTML, ODT "
+"und PDF. ReText ist außerdem in der Lage, Dokumente zu Google Docs zu "
+"übertragen."
+
+#. type: Plain text
+#: retext.1:18
+msgid "It is written in Python using Qt libraries."
+msgstr "Das Programm ist in Python geschrieben und nutzt die Qt-Bibliotheken."
+
+#. type: SH
+#: retext.1:19 wpgen.1:30
+#, no-wrap
+msgid "AUTHOR"
+msgstr "AUTOR"
+
+#. type: Plain text
+#: wpgen.1:1 wpgen.1:31
+msgid ""
+"This manual page was written by Dmitry Shachnev E<lt>mitya57 at gmail.comE<gt>."
+msgstr ""
+"Diese Handbuchseite wurde von Dmitry Shachnev E<lt>mitya57 at gmail.comE<gt> "
+"geschrieben."
+
+#. type: TH
+#: wpgen.1:1
+#, no-wrap
+msgid "WPGEN"
+msgstr "WPGEN"
+
+#. type: Plain text
+#: wpgen.1:5
+msgid "WpGen - Webpages generation tool that comes with ReText"
+msgstr "WpGen - Werkzeug zum Erstellen von Webseiten (in ReText enthalten)"
+
+#. type: Plain text
+#: wpgen.1:9
+msgid "B<wpgen> I<COMMAND>"
+msgstr "B<wpgen> I<BEFEHL>"
+
+#. type: SH
+#: wpgen.1:10
+#, no-wrap
+msgid "COMMANDS"
+msgstr "BEFEHLE"
+
+#. type: TP
+#: wpgen.1:11
+#, no-wrap
+msgid "B<init>"
+msgstr "B<init>"
+
+#. type: Plain text
+#: wpgen.1:14
+msgid "create new web library"
+msgstr "erstellt eine neue Web-Bibliothek."
+
+#. type: TP
+#: wpgen.1:14
+#, no-wrap
+msgid "B<updateall>"
+msgstr "B<updateall>"
+
+#. type: Plain text
+#: wpgen.1:17
+msgid "generate html files from all pages"
+msgstr "erzeugt HTML-Dateien aus allen Seiten."
+
+#. type: TP
+#: wpgen.1:17
+#, no-wrap
+msgid "B<update> I<file-names>"
+msgstr "B<update> I<Dateinamen>"
+
+#. type: Plain text
+#: wpgen.1:20
+msgid "generate html files from given pages"
+msgstr "erzeugt HTML-Dateien aus den angegebenen Seiten."
+
+#. type: TP
+#: wpgen.1:20
+#, no-wrap
+msgid "B<usestyle> I<style-name>"
+msgstr "B<usestyle> I<Stilname>"
+
+#. type: Plain text
+#: wpgen.1:23
+msgid "use the given style (example: Default, Simple)"
+msgstr "verwendet den angegebenen Stil (Beispiele: Default, Simple)."
+
+#. type: Plain text
+#: wpgen.1:29
+msgid ""
+"WpGen allows you to generate webpages from Markdown, ReStructuredText "
+"documents and HTML body files. You can use different templates and styles, "
+"either standard or created by yourself."
+msgstr ""
+"WpGen ermöglicht Ihnen die Erstellung von Webseiten aus Markdown- und "
+"ReStructuredText-Dokumenten sowie HTML-Rumpfdateien. Sie können verschiedene "
+"- entweder vorgegebene oder von Ihnen selbst erstellte - Vorlagen und Stile "
+"verwenden."
diff --git a/retext.1 b/retext.1
new file mode 100644
index 0000000..a731791
--- /dev/null
+++ b/retext.1
@@ -0,0 +1,20 @@
+.TH RETEXT 1
+
+.SH NAME
+ReText \- Text editor for Markdown and ReStructuredText
+
+.SH SYNOPSIS
+.B retext
+\fIFILE\fR
+
+.SH DESCRIPTION
+.PP
+ReText is a simple editor for Markdown and ReStructuredText markup languages.
+.PP
+Supported output formats: Plain text, HTML, ODT, PDF. Also,
+ReText can upload documents to Google Docs.
+.PP
+It is written in Python using Qt libraries.
+
+.SH AUTHOR
+This manual page was written by Dmitry Shachnev <mitya57 at gmail.com>.
diff --git a/retext.appdata.xml b/retext.appdata.xml
new file mode 100644
index 0000000..3d7518b
--- /dev/null
+++ b/retext.appdata.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2015 Mario Blättermann <mariobl at fedoraproject.org> -->
+<application>
+  <id type="desktop">retext.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-3.0+</project_license>
+  <name>ReText</name>
+  <name xml:lang="de">ReText</name>
+  <summary>Text editor for Markdown and reStructuredText</summary>
+  <summary xml:lang="de">Texteditor für Markdown und reStructuredText</summary>
+  <description>
+    <p>
+      ReText is a simple editor that reads your text with MarkDown or HTML markup
+      and saves it as plain text, HTML or PDF. It is written in Python
+      using Qt libraries.
+    </p>
+    <p xml:lang="de">
+      ReText ist ein einfacher Editor, der Ihre in Markdown oder HTML formatierten
+      Texte liest und diese als einfachen Text, HTMl oder PDF speichert. Das Programm
+      ist in Python unter Verwendung der Qt-Bibliotheken geschrieben.
+    </p>
+  </description>
+  <screenshots>
+    <screenshot type="default">
+      <image>https://sourceforge.net/p/retext/screenshot/retext-kde.png</image>
+    </screenshot>
+  </screenshots>
+  <url type="homepage">http://sourceforge.net/p/retext/home/ReText</url>
+  <updatecontact>mariobl at fedoraproject.org</updatecontact>
+</application>
\ No newline at end of file
diff --git a/retext.spec b/retext.spec
new file mode 100644
index 0000000..0967036
--- /dev/null
+++ b/retext.spec
@@ -0,0 +1,180 @@
+%global srcname ReText
+%global with_tests 1
+
+Name:           retext
+Version:        5.0.1
+Release:        7%{?dist}
+License:        GPLv3+
+Summary:        Text editor for Markdown and reStructuredText
+Summary(de):    Texteditor für Markdown und reStructuredText
+URL:            http://sourceforge.net/p/%{name}/home/%{srcname}
+Source0:        http://downloads.sourceforge.net/project/%{name}/%{srcname}-5.0/%{srcname}-%{version}.tar.gz
+
+# The template for man page translations can be created with this command:
+# po4a-updatepo -v -M utf-8 -f man -m retext.1 -m wpgen.1 -p retext-man.pot
+# English man pages are taken from the Debian package.
+Source1:        https://mariobl.fedorapeople.org/Retext/%{name}-man-de.po
+Source2:        https://mariobl.fedorapeople.org/Retext/%{name}.1
+Source3:        https://mariobl.fedorapeople.org/Retext/wpgen.1
+Source4:        %{name}.appdata.xml
+
+BuildArch:      noarch
+
+BuildRequires:  desktop-file-utils
+BuildRequires:  libappstream-glib
+BuildRequires:  libpng-devel
+BuildRequires:  librsvg2-devel
+BuildRequires:  librsvg2-tools
+BuildRequires:  ImageMagick
+BuildRequires:  python3-devel
+BuildRequires:  python3-markups
+BuildRequires:  po4a
+BuildRequires:  qt5-qttools-devel
+
+%if 0%{?with_tests}
+BuildRequires:  python3-qt5
+BuildRequires:  qt5-qtbase-gui
+%endif # with_tests
+
+Requires:       hicolor-icon-theme
+Requires:       python3-docutils
+Requires:       python3-enchant
+Requires:       python3-markdown
+Requires:       python3-markups
+Requires:       python3-qt5
+Requires:       qt5-qtwebkit
+
+BuildArch:      noarch
+
+%description
+ReText is a simple but powerful text editor for Markdown and reStructuredText.
+
+%description -l de
+ReText ist ein einfacher, aber leistungsfähiger Texteditor
+für Markdown und reStructuredText.
+
+%prep
+%setup -q -n ReText-%{version}
+
+%build
+%{__python3} setup.py build
+
+%install
+%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+
+mkdir -p %{buildroot}%{_datadir}/appdata/
+install -p -m 644 %{SOURCE4} %{buildroot}%{_datadir}/appdata/
+
+mkdir -p %{buildroot}/%{_mandir}/man1
+install -p -m 0644 %SOURCE2 %SOURCE3 %{buildroot}/%{_mandir}/man1
+
+# Generate and install localized man pages
+mkdir -p man/de
+po4a-translate -M utf-8 -f man \
+               --option groff_code=verbatim \
+               -m %SOURCE2 -p %SOURCE1 \
+               -l man/de/%{name}.1
+po4a-translate -M utf-8 -f man \
+               --option groff_code=verbatim \
+               -m %SOURCE3 -p %SOURCE1 \
+               -l man/de/wpgen.1
+
+mkdir -p %{buildroot}/%{_mandir}/de/man1
+install -p -m 0644 man/de/{retext.1,wpgen.1} %{buildroot}/%{_mandir}/de/man1
+
+# Generate resized icons
+pushd icons
+mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/{16x16,22x22,24x24,32x32,48x48,64x64,72x72,96x96,128x128,scalable}/apps
+for s in 16x16 22x22 24x24 32x32 48x48 64x64 72x72 96x96 128x128
+do
+    convert ./retext.png -resize $s %{buildroot}/%{_datadir}/icons/hicolor/$s/apps/retext.png;
+done
+install -p -m 0644 retext.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps
+popd
+
+desktop-file-install \
+--dir=%{buildroot}%{_datadir}/applications \
+%{_builddir}/%{srcname}-%{version}/data/%{name}.desktop
+
+%find_lang retext --with-man
+%find_lang wpgen --with-man
+
+%check
+appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml || :
+
+%if 0%{?with_tests}
+%{__python3} setup.py test
+%endif # with_tests
+
+
+%post
+/usr/bin/update-desktop-database &> /dev/null || :
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+/usr/bin/update-desktop-database &> /dev/null || :
+if [ $1 -eq 0 ] ; then
+    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%files -f retext.lang -f wpgen.lang
+%doc changelog.md README
+%license  LICENSE_GPL
+%{_bindir}/%{name}
+%{_bindir}/wpgen
+%{_datadir}/appdata/%{name}.appdata.xml
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/icons/hicolor/*/apps/%{name}.*
+%{_datadir}/%{name}/
+%{_datadir}/wpgen/
+%{_mandir}/man1/*.1.*
+%{python3_sitelib}/%{srcname}/
+%{python3_sitelib}/*egg-info
+
+%changelog
+* Sat Jan 31 2015 Mario Blättermann <mario.blaettermann at gmail.com> - 5.0.1-7
+- Fix file permissions
+- Add update-desktop-database scripts
+- Fix download location
+- Extended description in appdata file, fix license declaration 
+
+* Thu Jan 15 2015 Mario Blättermann <mario.blaettermann at gmail.com> - 5.0.1-6
+- Fix URLs of extra sources
+- Add appdata file
+
+* Sat Jan 10 2015 Mario Blättermann <mario.blaettermann at gmail.com> - 5.0.1-5
+- Replace qt-devel with qt5-qttools-devel to use the correct
+  linguist toolchain
+
+* Tue Dec 30 2014 Mario Blättermann <mario.blaettermann at gmail.com> - 5.0.1-4
+- Use the %%license macro
+- Keep the tests enabled, but make them optional
+
+* Wed Dec 17 2014 Mario Blättermann <mario.blaettermann at gmail.com> - 5.0.1-3
+- Add qt-devel to BuildRequires
+
+* Tue Dec 16 2014 Mario Blättermann <mario.blaettermann at gmail.com> - 5.0.1-2
+- Add noarch tag
+
+* Mon Dec 01 2014 Mario Blättermann <mario.blaettermann at gmail.com> - 5.0.1-1
+- New upstream version
+- Man pages from the Debian package
+- Install *.desktop file
+- Enable tests
+
+* Wed Jan 08 2014 Mario Blättermann <mario.blaettermann at gmail.com> - 4.0.1-2
+- Spec file cleanup
+
+* Wed May 08 2013 Huaren Zhong <huaren.zhong at gmail.com> - 4.0.1
+- Rebuild for Fedora
+
+* Sat Feb 18 2012 i at marguerite.su
+- update to 3.0beta1
+
+* Thu Dec 29 2011 i at marguerite.su
+- initial package 2.1.3
diff --git a/sources b/sources
index e69de29..a6aa668 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+98cf3f9f8acf2892359c58f0f695ed16  ReText-5.0.1.tar.gz
diff --git a/wpgen.1 b/wpgen.1
new file mode 100644
index 0000000..697b3ff
--- /dev/null
+++ b/wpgen.1
@@ -0,0 +1,31 @@
+.TH WPGEN 1
+
+.SH NAME
+WpGen \- Webpages generation tool that comes with ReText
+
+.SH SYNOPSIS
+.B wpgen
+\fICOMMAND\fR
+.PP
+.SH COMMANDS
+.TP
+\fBinit\fR
+create new web library
+.TP
+\fBupdateall\fR
+generate html files from all pages
+.TP
+\fBupdate\fR \fIfile-names\fR
+generate html files from given pages
+.TP
+\fBusestyle\fR \fIstyle-name\fR
+use the given style (example: Default, Simple)
+
+.SH DESCRIPTION
+.PP
+WpGen allows you to generate webpages from Markdown, ReStructuredText documents
+and HTML body files. You can use different templates and styles, either
+standard or created by yourself.
+
+.SH AUTHOR
+This manual page was written by Dmitry Shachnev <mitya57 at gmail.com>.


More information about the scm-commits mailing list