amigadave pushed to gtimelog (f20). "Initial packaging (#1210252)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 21 12:56:17 UTC 2015


>From 7fb0b6b900800db45c43b27e325c9e9d5446f4f1 Mon Sep 17 00:00:00 2001
From: David King <amigadave at amigadave.com>
Date: Tue, 21 Apr 2015 13:23:58 +0100
Subject: Initial packaging (#1210252)


diff --git a/.gitignore b/.gitignore
index e69de29..8d98806 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/0.9.2.tar.gz
diff --git a/gtimelog.appdata.xml b/gtimelog.appdata.xml
new file mode 100644
index 0000000..06aaf9d
--- /dev/null
+++ b/gtimelog.appdata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+    <id type="desktop">gtimelog.desktop</id>
+    <metadata_license>CC0-1.0</metadata_license>
+    <project_license>GPL-2.0</project_license>
+
+    <name>GTimeLog</name>
+    <summary>Unobtrusively keep track of your time</summary>
+    <description>
+        <p>GTimeLog is a small GTK+ app for keeping track of your time. Its main goal is to be as unobtrusive as possible.</p>
+    </description>
+    <screenshots>
+        <screenshot width="802" height="533" type="default">https://mg.pov.lt/gtimelog/gtimelog-gtk3.png</screenshot>
+    </screenshots>
+    <url type="homepage">https://mg.pov.lt/gtimelog/</url>
+    <updatecontact>marius at gedmin.as</updatecontact>
+</application>
diff --git a/gtimelog.spec b/gtimelog.spec
new file mode 100644
index 0000000..89007ca
--- /dev/null
+++ b/gtimelog.spec
@@ -0,0 +1,67 @@
+Name:           gtimelog
+Version:        0.9.2
+Release:        1%{?dist}
+Summary:        Unobtrusively keep track of your time
+
+Group:          Applications/Productivity
+License:        GPLv2
+URL:            http://mg.pov.lt/gtimelog/
+Source0:        https://github.com/%{name}/%{name}/archive/%{version}.tar.gz
+# https://github.com/gtimelog/gtimelog/pull/34
+Source1:        %{name}.appdata.xml
+
+BuildArch:      noarch
+BuildRequires:  python3-devel
+BuildRequires:  /usr/bin/appstream-util
+BuildRequires:  /usr/bin/desktop-file-install
+BuildRequires:  /usr/bin/rst2man
+Requires:       gtk3
+Requires:       python3-gobject
+
+%description
+GTimeLog is a small GTK+ app for keeping track of your time. It's main goal is
+to be as unobtrusive as possible.
+
+%prep
+%setup -q
+
+
+%build
+%{__python3} setup.py build
+# Generates the man pages.
+make all
+
+
+%install
+%{__python3} setup.py install --skip-build --root %{buildroot}
+desktop-file-install %{name}.desktop
+# Needed for the desktop file.
+install -d %{buildroot}/%{_datadir}/pixmaps
+mv %{buildroot}%{python3_sitelib}/%{name}/*.png %{buildroot}/%{_datadir}/pixmaps
+install -Dpm 644 %{name}.1 %{buildroot}/%{_mandir}/man1/%{name}.1
+install -Dpm 644 %{name}rc.5 %{buildroot}/%{_mandir}/man5/%{name}rc.5
+install -Dpm 644 %{SOURCE1} %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
+
+
+%check
+# Runs tests on the source tree.
+%{__python3} ./runtests
+appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
+
+
+%files
+%doc CONTRIBUTING.rst CONTRIBUTORS.rst NEWS.rst NOTES.rst README.rst TODO.rst
+%license COPYING
+%{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/pixmaps/%{name}*.png
+%{_mandir}/man1/%{name}.1*
+%{_mandir}/man5/%{name}rc.5*
+%{python3_sitelib}/%{name}*
+
+
+
+%changelog
+* Thu Apr 09 2015 David King <amigadave at amigadave.com> - 0.9.2-1
+- Initial packaging (#1210252)
diff --git a/sources b/sources
index e69de29..a903789 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6f234cbf88ca786caea523c06bc63424  0.9.2.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gtimelog.git/commit/?h=f20&id=7fb0b6b900800db45c43b27e325c9e9d5446f4f1


More information about the scm-commits mailing list