[gnome-shell-search-fedora-packages] Latest upstream, included extension.

Ralph Bean ☃ ralph at fedoraproject.org
Fri Mar 22 19:48:56 UTC 2013


commit 494f7a35138feba2931f9e9d85094197214388ff
Author: Ralph Bean <rbean at redhat.com>
Date:   Fri Mar 22 15:47:35 2013 -0400

    Latest upstream, included extension.

 .gitignore                              |    1 +
 gnome-shell-search-fedora-packages.spec |   31 ++++++++++++++++++++++++++-----
 sources                                 |    2 +-
 3 files changed, 28 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1c2179a..4a7640f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /gnome-shell-search-fedora-packages-0.1.tar.gz
 /gnome-shell-search-fedora-packages-1.0.0b.tar.gz
 /gnome-shell-search-fedora-packages-1.0.0rc1.tar.gz
+/gnome-shell-search-fedora-packages-1.1.2.tar.gz
diff --git a/gnome-shell-search-fedora-packages.spec b/gnome-shell-search-fedora-packages.spec
index 2fa2b80..4f898a1 100644
--- a/gnome-shell-search-fedora-packages.spec
+++ b/gnome-shell-search-fedora-packages.spec
@@ -3,10 +3,11 @@
 
 %global modname gs_search_fedora_packages
 %global busname org.fedoraproject.fedorapackages.search
+%global extname fedora-packages-search-provider at threebean.org
 
 Name:           gnome-shell-search-fedora-packages
-Version:        1.0.0rc1
-Release:        2%{?dist}
+Version:        1.1.2
+Release:        1%{?dist}
 Summary:        Search the Fedora Packages webapp from the gnome-shell
 
 License:        GPLv3+
@@ -18,10 +19,15 @@ BuildArch:      noarch
 BuildRequires:  python2-devel
 BuildRequires:  python-setuptools-devel
 BuildRequires:  pygobject3
+BuildRequires:  python-twisted-core
 
 Requires:       gnome-shell
 Requires:       pygobject3
 Requires:       python-pkgwat-api
+Requires:       python-twisted-core
+
+# Originally, this did not include a shell extension.  It does now as of 1.1.0
+Provides:       gnome-shell-extension-search-fedora-packages = %{version}-%{release}
 
 %description
 gnome-shell-search-fedora-packages provides a dbus daemon that returns results
@@ -31,15 +37,19 @@ search process.
 %prep
 %setup -q
 
+rm -rf extension/schemas
 
 %build
 %{__python} setup.py build
 
-
 %install
 %{__python} setup.py install -O1 --skip-build \
     --install-data=%{_datadir} --root %{buildroot}
 
+# Shell extension
+mkdir -p %{buildroot}/%{_datadir}/gnome-shell/extensions/%{extname}/schemas/
+install -m 0644 extension/* %{buildroot}/%{_datadir}/gnome-shell/extensions/%{extname}/.
+
 # Search provider definition
 mkdir -p %{buildroot}%{_datadir}/gnome-shell/search-providers
 install -m 0644 conf/%{busname}.ini %{buildroot}%{_datadir}/gnome-shell/search-providers/
@@ -54,17 +64,22 @@ install -m 0644 conf/%{busname}.conf \
 
 # GSettings schema
 mkdir -p %{buildroot}%{_datadir}/glib-2.0/schemas
-install -m 0644 conf/%{busname}.gschema.xml %{buildroot}%{_datadir}/glib-2.0/schemas
+install -m 0644 conf/%{busname}.gschema.xml \
+    %{buildroot}%{_datadir}/glib-2.0/schemas
+install -m 0644 conf/%{busname}.gschema.xml \
+    %{buildroot}/%{_datadir}/gnome-shell/extensions/%{extname}/schemas/.
 
 %postun
 if [ $1 -eq 0 ]; then
     glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 fi
 
+%postin
+glib-compile-schemas %{_datadir}/gnome-shell/extensions/%{extname}/schemas &> /dev/null || :
+
 %posttrans
 glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
-
 %files
 %doc README.md LICENSE
 %{_bindir}/%{name}-daemon
@@ -72,6 +87,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 %{python_sitelib}/%{modname}/
 %{python_sitelib}/gnome_shell_search_fedora_packages-%{version}-py%{pyver}.egg-info/
 
+%{_datadir}/gnome-shell/extensions/%{extname}/
 %{_datadir}/gnome-shell/search-providers/%{busname}.ini
 %{_datadir}/dbus-1/services/%{busname}.service
 %{_sysconfdir}/dbus-1/system.d/%{busname}.conf
@@ -79,6 +95,11 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 
 %changelog
+* Fri Mar 22 2013 Ralph Bean <rbean at redhat.com> - 1.1.2-1
+- Include a shell extension.
+- Configurable search prefix.
+- Daemon dies when not in use.
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.0rc1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 
diff --git a/sources b/sources
index 63602ad..faa3fd0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c9e3c057424c2a3a61f8424116009cb2  gnome-shell-search-fedora-packages-1.0.0rc1.tar.gz
+f6fd33691a93f41c0fc6502e753bc3b4  gnome-shell-search-fedora-packages-1.1.2.tar.gz


More information about the scm-commits mailing list