[zeitgeist/f21] - Introduce python-zeitgeist subpkg - Mark xdg autostart file as noreplace for better UX, Fix BZ#863

Christopher Meng cicku at fedoraproject.org
Tue Aug 12 04:04:52 UTC 2014


commit d0dc33492a5166c5aa54431403c66503d63679cc
Author: Christopher Meng <i at cicku.me>
Date:   Tue Aug 12 11:58:41 2014 +0800

    - Introduce python-zeitgeist subpkg
    - Mark xdg autostart file as noreplace for better UX, Fix BZ#863222

 zeitgeist.spec |   30 +++++++++++++++++++++++-------
 1 files changed, 23 insertions(+), 7 deletions(-)
---
diff --git a/zeitgeist.spec b/zeitgeist.spec
index f227cab..79c4f7f 100644
--- a/zeitgeist.spec
+++ b/zeitgeist.spec
@@ -1,6 +1,6 @@
 Name:           zeitgeist
 Version:        0.9.16
-Release:        0.1.20140808.git.ce9affa%{?dist}
+Release:        0.2.20140808.git.ce9affa%{?dist}
 Summary:        Framework providing Desktop activity awareness
 # most of the source code is LGPLv2+, except:
 # datahub/ is LGPLv3+
@@ -12,7 +12,6 @@ Summary:        Framework providing Desktop activity awareness
 License:        LGPLv2+ and LGPLv3+ and GPLv2+
 URL:            http://zeitgeist-project.com/
 Source0:        http://launchpad.net/%{name}/0.9/%{version}/+download/%{name}-0.9.14.tar.xz
-#Source0:        zeitgeist-0.9.16.20140808gitce9affa.tar.gz
 Patch0:         0001-Fix-unit-tests.patch
 Patch1:         0002-Don-t-spam-the-logs-with-warnings-that-aren-t-really.patch
 Patch2:         0003-bump-version-number-and-release-name.patch
@@ -23,7 +22,7 @@ Patch6:         0007-Replace-get_nprocs_conf-with-g_get_num_processors.patch
 Patch7:         0008-ontology2code-don-t-hardcode-python-path.patch
 Patch8:         0010-WhereClause-Fix-array-length-to-work-with-string.joi.patch
 Patch9:         0011-Require-glib-2.35.4-according-to-the-usage-of-g_get_.patch
-Patch10:         0012-tools-Drop-rogue-leading-unicode-character.patch
+Patch10:        0012-tools-Drop-rogue-leading-unicode-character.patch
 BuildRequires:  dbus-devel
 BuildRequires:  dee-devel
 BuildRequires:  gettext
@@ -40,8 +39,8 @@ BuildRequires:  telepathy-glib-devel
 BuildRequires:  vala
 BuildRequires:  xapian-core-devel
 Requires:       dbus
-Requires:       dbus-python
-Obsoletes:      zeitgeist-datahub < 0.9.10
+Requires:       python-%{name} = %{version}-%{release}
+Obsoletes:      zeitgeist-datahub < 0.9.5-4
 
 %description
 Zeitgeist is a service which logs the users's activities and events (files
@@ -68,6 +67,17 @@ Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
 This package contains libraries and header files for
 developing applications that use %{name}.
 
+%package -n     python-%{name}
+Summary:        Python 2 bindings for %{name}
+BuildArch:      noarch
+Requires:       dbus-python
+Requires:       pyxdg
+Requires:       %{name} = %{version}-%{release}
+
+%description -n python-%{name}
+This package contains Python 2 API for
+developing applications that use %{name}.
+
 %prep
 %setup -qn %{name}-0.9.14
 %patch0 -p1
@@ -111,13 +121,12 @@ make check || true
 %{_bindir}/zeitgeist-datahub
 %{_libexecdir}/zeitgeist-fts
 %{_datadir}/%{name}/
-%{python2_sitelib}/zeitgeist/
 %{_datadir}/dbus-1/services/org.gnome.zeitgeist*.service
 %dir %{_datadir}/bash-completion
 %dir %{_datadir}/bash-completion/completions
 %{_datadir}/bash-completion/completions/zeitgeist-daemon
 %{_mandir}/man1/zeitgeist-*.*
-%{_sysconfdir}/xdg/autostart/zeitgeist-datahub.desktop
+%config(noreplace) %{_sysconfdir}/xdg/autostart/zeitgeist-datahub.desktop
 
 %files libs
 %doc COPYING
@@ -135,7 +144,14 @@ make check || true
 %{_datadir}/vala/vapi/zeitgeist-2.0.vapi
 %{_datadir}/vala/vapi/zeitgeist-datamodel-2.0.vapi
 
+%files -n python-%{name}
+%{python2_sitelib}/zeitgeist/
+
 %changelog
+* Tue Aug 12 2014 Christopher Meng <cickumqt at gmail.com> - 0.9.16-0.2.20140808.git.ce9affa
+- Introduce python-zeitgeist subpkg
+- Mark xdg autostart file as noreplace for better UX, Fix BZ#863222
+
 * Fri Aug 08 2014 Christopher Meng <cickumqt at gmail.com> - 0.9.16-0.1.20140808.git.ce9affa
 - Update to 0.9.16 snapshot
 - Fix BZ#1126461


More information about the scm-commits mailing list