[nested: 1/2] Initial push added nested source files and spec

Alejandro Perez aeperezt at fedoraproject.org
Thu Jan 5 18:11:03 UTC 2012


commit 0fcbeaee866d37085d7fa0681300043bf7b8ad66
Author: Alejandro PĂ©rez <aeperezt at fedoraproject.org>
Date:   Thu Jan 5 13:06:19 2012 -0500

    Initial push added nested source files and spec

 nested-1.2.2-shebang.patch |   15 +++++++
 nested-1.2.2.tar.gz        |  Bin 0 -> 1380014 bytes
 nested.desktop             |   13 ++++++
 nested.spec                |   95 ++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 123 insertions(+), 0 deletions(-)
---
diff --git a/nested-1.2.2-shebang.patch b/nested-1.2.2-shebang.patch
new file mode 100644
index 0000000..9e41b9d
--- /dev/null
+++ b/nested-1.2.2-shebang.patch
@@ -0,0 +1,15 @@
+--- nested/txt2tags.py	2011-12-15 23:42:57.000000000 -0500
++++ nested/new_txt2tags.py	2012-01-04 14:00:49.838719951 -0500
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ # txt2tags - generic text conversion tool
+ # http://txt2tags.org
+ #
+@@ -17,6 +16,7 @@
+ #        tex header changes (nested specific changes)
+ #        changed table centering in xhtmls and html5
+ #        image positioning is working for xhtmls target (img, _imgAlignLeft, ...)
++#        removed the shebang so it can be included on Fedora
+ #####
+ #
+ ########################################################################
diff --git a/nested-1.2.2.tar.gz b/nested-1.2.2.tar.gz
new file mode 100644
index 0000000..cbaae45
Binary files /dev/null and b/nested-1.2.2.tar.gz differ
diff --git a/nested.desktop b/nested.desktop
new file mode 100644
index 0000000..a9abc98
--- /dev/null
+++ b/nested.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Nested
+Name[es]=Editor de documentos estructurados Nested
+GenericName=Editor
+Comment=Specialized editor for structured documents
+Comment[es]=Editor especializado para documento estructurados
+Exec=nested %F
+Icon=nested
+Terminal=false
+Categories=Office;Utility;
+MimeType=text/x-txt2tags;
diff --git a/nested.spec b/nested.spec
new file mode 100644
index 0000000..9cb7e17
--- /dev/null
+++ b/nested.spec
@@ -0,0 +1,95 @@
+Name:		nested
+Version:	1.2.2
+Release:	8%{?dist}
+Summary:	A specialized editor focused on creating structured documents
+Group:		Applications/Publishing
+License:	GPLv2+
+URL:		http://nestededitor.sourceforge.net/
+Source0:	http://downloads.sourceforge.net/nestededitor/%{name}-%{version}.tar.gz
+#http://sourceforge.net/projects/nestededitor/files/nested-1.2.2.tar.gz
+Source1:	nested.desktop
+Patch1:		nested-1.2.2-shebang.patch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:	noarch
+BuildRequires:	python2-devel gettext-devel desktop-file-utils
+Requires:	pygtk2 pywebkitgtk tetex-IEEEtran tex(latex)
+
+%description
+An editor designed to help the user concentrate on writing content without been 
+distracted by format or markup. It offers a rich WYSIWYM interface where the 
+user writes plain text with a lightweight markup language. 
+
+%prep
+%setup -q -n %{name}-%{version} 
+%patch1 -p0 -b txt2tags
+
+%build
+python setup.py build 
+
+%install
+rm -rf %{buildroot}
+python setup.py install --skip-build --root=%{buildroot}
+
+#To generate locale files nested has command complie_mo.py
+#this generate the mo files that have to be located on /usr/share locale
+python l10n/compile_mo.py
+mkdir -p %{buildroot}/usr/share/locale
+cp -p -r l10n/mo/* %{buildroot}/usr/share/locale 
+%find_lang %{name} 
+
+#add the ico file
+mkdir -p %{buildroot}%{_datadir}/pixmaps
+cp -p nested/nested.svg %{buildroot}%{_datadir}/pixmaps
+
+#to generate the man pages we use txt2tags.py script included on nested
+mkdir -p %{buildroot}%{_datadir}/man/man1
+python -B nested/txt2tags.py --target man \
+--infile nested/examples/Manpage/Manpage.t2t \
+--outfile nested/nested.1  
+cp -p nested/nested.1 %{buildroot}%{_datadir}/man/man1
+
+#add the desktop file
+desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1}
+
+%clean
+rm -rf %{buildroot}
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc README.txt CHANGELOG.txt LICENSE.txt
+%{python_sitelib}/nested/
+%{python_sitelib}/nested-%{version}-py*.egg-info
+%{_bindir}/nested
+%{_datadir}/pixmaps/nested.svg
+%{_datadir}/man/man1/nested.1.*
+%{_datadir}/applications/nested.desktop
+
+%changelog
+* Thu Jan 05 2012 Alejandro Perez <aeperezt at fedoraproject.org> 1.2.2-8
+- changed Sumary and description 
+* Wed Jan 04 2012 Alejandro Perez <aeperezt at fedoraproject.org> 1.2.2-7
+- added require build desktop-file-utils
+- rename txt2tags.patch to nested-1.2.2-shebang.patch 
+* Wed Jan 04 2012 Alejandro Perez <aeperezt at fedoraproject.org> 1.2.2-6
+- change to use desktop-file-install
+- change mv to cp use with -p option as sugested.
+* Sun Jan 01 2012 Alejandro Perez <aeperezt at fedoraproject.org> 1.2.2-5
+- added icons for desktop
+- added desktop file 
+- added patch to take out sheban
+- added man paged generated by txt2tags.py script
+* Fri Dec 30 2011 Alejandro Perez <aeperezt at fedoraproject.org> 1.2.2-4
+- fixed ending with a "."
+- added defattr 
+* Thu Dec 29 2011 Alejandro Perez <aeperezt at fedoraproject.org> 1.2.2-3
+- Added Comments for l10 construction
+- fixed summary errors
+- changed license GPL2+ to GPLv2+
+- Droped tarball_name, pyhthon require, if claused  
+- change build require to gettext-devel
+- change textlive to tex(latex)
+* Mon Dec 20 2011 Alejandro Perez <aeperezt at fedoraproject.org> 1.2.2-2
+- Fixed locale files location
+- Group change and added localization files and tetex-IEEEtran lib
+* Mon Dec 19 2011 Alejandro Perez <aeperezt at fedoraproject.org> 1.2.2-1
+- First package build.


More information about the scm-commits mailing list