[packages/txt2tags] - new URLs, updated to 2.6

qboosh qboosh at pld-linux.org
Sun Apr 22 11:31:49 CEST 2018


commit b2844979bbe60c1b1e266893ae200dfd4fce65ee
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 22 11:32:06 2018 +0200

    - new URLs, updated to 2.6

 txt2tags.spec | 79 +++++++++++++++++++++++++++++++++++++++--------------------
 1 file changed, 53 insertions(+), 26 deletions(-)
---
diff --git a/txt2tags.spec b/txt2tags.spec
index f83681b..5f19838 100644
--- a/txt2tags.spec
+++ b/txt2tags.spec
@@ -1,18 +1,20 @@
-# TODO
-# - pl for vim
+# TODO:
+# - create more plugin packages from extras instead of packaging whole extras as doc
+# - more internationalized docs?
 Summary:	Tool to convert and to format texts
 Summary(pl.UTF-8):	Narzędzie do konwertowania i formatowania tekstu
 Summary(pt_BR.UTF-8):	Ferramenta para converter e formatar textos
 Name:		txt2tags
-Version:	2.3
-Release:	4
-License:	GPL
+Version:	2.6
+Release:	1
+License:	GPL v2
 Group:		Applications/Text
-Source0:	http://txt2tags.sourceforge.net/src/%{name}-%{version}.tgz
-# Source0-md5:	0514bb01161183808dc8be105c032677
-URL:		http://txt2tags.sourceforge.net/
-Requires:	python
-Requires:	python-modules
+#Source0Download: https://github.com/txt2tags/txt2tags/releases
+Source0:	https://github.com/txt2tags/txt2tags/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	531e4ab3f0fb0a4dac5abb0605472109
+URL:		https://txt2tags.org/
+Requires:	python >= 2.3
+Requires:	python-modules >= 2.3
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -54,8 +56,8 @@ txt2tags e ele converte para qualquer um desses formatos:
 - um documento do PageMaker 6.0
 
 %package -n vim-syntax-txt2tags
-Summary:	Vim - syntax
-Summary(pl.UTF-8):	Składnia dla Vima
+Summary:	Vim plugin with txt2tags syntax support
+Summary(pl.UTF-8):	Wtyczka do Vima z obsługą składni txt2tags
 Group:		Applications/Editors/Vim
 Requires:	%{name} = %{version}-%{release}
 Requires:	vim-rt >= 4:6.3.058-3
@@ -65,22 +67,37 @@ Obsoletes:	txt2tags-vim < 2.3-3
 %description -n vim-syntax-txt2tags
 Vim syntax file and menu for gvim.
 
-Also includes vim script to ':make' and build txt2tags target inside vim.
-The hotkeys are <F5> for make, <F4> for displaying output and <F3> for discarding
-output.
+Also includes vim script to ':make' and build txt2tags target inside
+vim. The hotkeys are <F5> for make, <F4> for displaying output and
+<F3> for discarding output.
+
+%description -n vim-syntax-txt2tags -l pl.UTF-8
+Plik składni dla Vima oraz menu dla gvima.
+
+Pakiet zawiera także skrypt Vima do wykonywania ':make' oraz budowania
+txt2tags z poziomu edytora. Skróty klawiszowe to <F5> dla make'a, <F4>
+do pokazywania wyjścia oraz <F3> do porzucania wyjścia.
 
 %prep
 %setup -q
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_mandir}/{ca,de,es,eu,fr,it,pt,zh_CN}/man1}
 
 install %{name} $RPM_BUILD_ROOT%{_bindir}
-install doc/manpage.man $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
+cp -p doc/Basque/manpage-eu.man $RPM_BUILD_ROOT%{_mandir}/eu/man1/%{name}.1
+cp -p doc/Catalan/manpage-ca.man $RPM_BUILD_ROOT%{_mandir}/ca/man1/%{name}.1
+cp -p doc/Chinese/manpage-zh.man $RPM_BUILD_ROOT%{_mandir}/zh_CN/man1/%{name}.1
+cp -p doc/English/manpage.man $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
+cp -p doc/French/manpage-fr.man $RPM_BUILD_ROOT%{_mandir}/fr/man1/%{name}.1
+cp -p doc/German/manpage-de.man $RPM_BUILD_ROOT%{_mandir}/de/man1/%{name}.1
+cp -p doc/Italian/manpage-it.man $RPM_BUILD_ROOT%{_mandir}/it/man1/%{name}.1
+cp -p doc/Portuguese/manpage-pt.man $RPM_BUILD_ROOT%{_mandir}/pt/man1/%{name}.1
+cp -p doc/Spanish/manpage-es.man $RPM_BUILD_ROOT%{_mandir}/es/man1/%{name}.1
 
 install -d $RPM_BUILD_ROOT%{_vimdatadir}/{syntax,plugin,ftplugin}
-install extras/txt2tags.vim $RPM_BUILD_ROOT%{_vimdatadir}/syntax
+cp -p extras/{pagemaker,txt2tags}.vim $RPM_BUILD_ROOT%{_vimdatadir}/syntax
 
 cat > $RPM_BUILD_ROOT%{_vimdatadir}/plugin/%{name}.vim <<-EOF
 " txt2tags file
@@ -88,20 +105,30 @@ au BufNewFile,BufRead *.t2t                 setf txt2tags
 EOF
 #" - for vim
 
-install extras/txt2tags-compiler.vim $RPM_BUILD_ROOT%{_vimdatadir}/ftplugin/%{name}.vim
-install extras/gvim-menu.vim $RPM_BUILD_ROOT%{_vimdatadir}/plugin/%{name}-menu.vim
+cp -p extras/txt2tags-compiler.vim $RPM_BUILD_ROOT%{_vimdatadir}/ftplugin/%{name}.vim
+cp -p extras/gvim-menu.vim $RPM_BUILD_ROOT%{_vimdatadir}/plugin/%{name}-menu.vim
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc extras samples doc/userguide.pdf ChangeLog README* TEAM TODO
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
+%doc ChangeLog README extras samples doc/English/userguide.pdf
+%attr(755,root,root) %{_bindir}/txt2tags
+%{_mandir}/man1/txt2tags.1*
+%lang(ca) %{_mandir}/ca/man1/txt2tags.1*
+%lang(de) %{_mandir}/de/man1/txt2tags.1*
+%lang(es) %{_mandir}/es/man1/txt2tags.1*
+%lang(eu) %{_mandir}/eu/man1/txt2tags.1*
+%lang(fr) %{_mandir}/fr/man1/txt2tags.1*
+%lang(it) %{_mandir}/it/man1/txt2tags.1*
+%lang(pt) %{_mandir}/pt/man1/txt2tags.1*
+%lang(zh_CN) %{_mandir}/zh_CN/man1/txt2tags.1*
 
 %files -n vim-syntax-txt2tags
 %defattr(644,root,root,755)
-%{_vimdatadir}/syntax/*
-%{_vimdatadir}/plugin/*
-%{_vimdatadir}/ftplugin/*
+%{_vimdatadir}/syntax/pagemaker.vim
+%{_vimdatadir}/syntax/txt2tags.vim
+%{_vimdatadir}/plugin/txt2tags.vim
+%{_vimdatadir}/plugin/txt2tags-menu.vim
+%{_vimdatadir}/ftplugin/txt2tags.vim
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/txt2tags.git/commitdiff/b2844979bbe60c1b1e266893ae200dfd4fce65ee



More information about the pld-cvs-commit mailing list