[timeline] Initial import.

Jon Ciesla limb at fedoraproject.org
Fri Oct 28 19:04:33 UTC 2011


commit 1b46d41c0001236a878356366e4f019878b43248
Author: Jon Ciesla <limb at jcomserv.net>
Date:   Fri Oct 28 14:04:21 2011 -0500

    Initial import.

 .gitignore                  |    1 +
 sources                     |    1 +
 timeline-0.14.0-paths.patch |   12 +++++
 timeline.desktop            |   10 ++++
 timeline.spec               |  107 +++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 131 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cce086a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/timeline-0.14.0.zip
diff --git a/sources b/sources
index e69de29..61e77a9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ff58a2c96305611194ebd6e9120d4381  timeline-0.14.0.zip
diff --git a/timeline-0.14.0-paths.patch b/timeline-0.14.0-paths.patch
new file mode 100644
index 0000000..2805be9
--- /dev/null
+++ b/timeline-0.14.0-paths.patch
@@ -0,0 +1,12 @@
+--- timelinelib/paths.py~	2011-07-26 19:42:28.000000000 -0500
++++ timelinelib/paths.py	2011-10-20 08:18:59.000000000 -0500
+@@ -24,7 +24,7 @@
+ import os.path
+ 
+ 
+-_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
++_ROOT = "/usr/share/timeline/"
+ ICONS_DIR = os.path.join(_ROOT, "icons")
+-LOCALE_DIR = os.path.join(_ROOT, "po")
++LOCALE_DIR = "/usr/share/locale"
+ HELP_RESOURCES_DIR = os.path.join(_ROOT, "help_resources")
diff --git a/timeline.desktop b/timeline.desktop
new file mode 100644
index 0000000..d8847f6
--- /dev/null
+++ b/timeline.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=Timeline
+Exec=timeline
+Comment=Displays and navigates events on a timeline
+Icon=timeline
+Terminal=false
+Categories=Office
+StartupNotify=false
+Version=1.0
diff --git a/timeline.spec b/timeline.spec
new file mode 100644
index 0000000..06f1eb1
--- /dev/null
+++ b/timeline.spec
@@ -0,0 +1,107 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+
+Name:		timeline
+Version:	0.14.0
+Release:	3%{?dist}
+Summary:	Displays and navigates events on a timeline
+
+Group:		Applications/Productivity
+License:	GPLv3 and CC-BY-SA
+URL:		http://thetimelineproj.sourceforge.net/
+Source0:	http://downloads.sourceforge.net/thetimelineproj/%{name}-%{version}.zip
+Source1:	timeline.desktop
+Patch0:		timeline-0.14.0-paths.patch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:	noarch
+BuildRequires:	desktop-file-utils
+BuildRequires:	gettext
+Requires:	wxPython python-markdown python-icalendar hicolor-icon-theme
+
+%description
+Timeline is a cross-platform application for displaying and navigating 
+events on a timeline.
+
+%prep
+%setup -q
+
+%patch0 -p0
+
+%build
+
+cd po
+for f in *.po
+do
+  language=${f%.po}
+  mkdir -p $language/LC_MESSAGES
+  msgfmt --statistics -o $language/LC_MESSAGES/%{name}.mo $f
+done
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{_bindir}
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/timeline
+
+install -m 755 timeline.py $RPM_BUILD_ROOT%{_bindir}/timeline
+cp -pr help_resources $RPM_BUILD_ROOT%{_datadir}/timeline/
+cp -pr icons $RPM_BUILD_ROOT%{_datadir}/timeline/
+cp -pr libs $RPM_BUILD_ROOT%{_datadir}/timeline/
+
+mkdir -p $RPM_BUILD_ROOT%{python_sitelib}/timelinelib
+cp -pr timelinelib/* $RPM_BUILD_ROOT%{python_sitelib}/timelinelib/
+
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+cp -pr man/man1/timeline.1 $RPM_BUILD_ROOT%{_mandir}/man1/
+
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
+install -p -m 644 icons/48.png \
+  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/timeline.png
+
+desktop-file-install \
+  --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
+
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale
+cp -a po/*/ $RPM_BUILD_ROOT%{_datadir}/locale/
+
+%find_lang %{name}
+
+%post
+touch --no-create %{_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{_datadir}/icons/hicolor || :
+
+%posttran
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS CHANGES COPYING HACKING README
+%{_bindir}/*
+%{_datadir}/timeline
+%{_datadir}/applications/timeline.desktop
+%{_datadir}/icons/hicolor/48x48/apps/timeline.png
+%{python_sitelib}/timelinelib*
+%{_mandir}/man1/timeline.1.gz
+
+%changelog
+* Fri Oct 28 2011 Jon Ciesla <limb at jcomserv.net> - 0.14.0-3
+- Incorporated Mamoru's .po fixes.
+- Moved scriptlet back to post.
+- Moved update icon cache to postrans.
+- Dropped scons BR.
+
+* Wed Oct 26 2011 Jon Ciesla <limb at jcomserv.net> - 0.14.0-2
+- Fixed license tag.
+- Fixed mandir macro.
+- Moved scriptlet to posttrans.
+- Dropped INSTALL.
+
+* Thu Oct 20 2011 Jon Ciesla <limb at jcomserv.net> - 0.14.0-1
+- First build.


More information about the scm-commits mailing list