[docky] Initial import (#635450).

lzap lzap at fedoraproject.org
Tue Nov 16 17:11:16 UTC 2010


commit 49183011f7c142e0a13efc6ef74f362b9dee0e76
Author: Lukas Zapletal <lzap+git at redhat.com>
Date:   Tue Nov 16 18:11:17 2010 +0100

    Initial import (#635450).

 .gitignore                   |    1 +
 docky-nozoom.patch           |   55 +++++++++++++++
 docky-py-shebang.patch       |   18 +++++
 docky-startscript-path.patch |   19 +++++
 docky.spec                   |  153 ++++++++++++++++++++++++++++++++++++++++++
 sources                      |    1 +
 6 files changed, 247 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6165160 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/docky-2.0.7.tar.gz
diff --git a/docky-nozoom.patch b/docky-nozoom.patch
new file mode 100644
index 0000000..b39619a
--- /dev/null
+++ b/docky-nozoom.patch
@@ -0,0 +1,55 @@
+diff -uNr docky-2.0.7-orig/Docky/Docky/Interface/DockPreferences.cs docky-2.0.7/Docky/Docky/Interface/DockPreferences.cs
+--- docky-2.0.7-orig/Docky/Docky/Interface/DockPreferences.cs	2010-08-24 20:00:47.446278995 +0200
++++ docky-2.0.7/Docky/Docky/Interface/DockPreferences.cs	2010-11-11 08:32:33.885838852 +0100
+@@ -204,9 +204,7 @@
+ 		bool? zoom_enabled;
+ 		public bool ZoomEnabled {
+ 			get {
+-				if (!zoom_enabled.HasValue)
+-					zoom_enabled = GetOption<bool?> ("ZoomEnabled", true);
+-				return zoom_enabled.Value; 
++				return false;
+ 			}
+ 			set {
+ 				if (zoom_enabled == value)
+@@ -347,6 +345,8 @@
+ 			zoom_checkbutton.Toggled += ZoomCheckbuttonToggled;
+ 			autohide_box.Changed += AutohideBoxChanged;
+ 			fade_on_hide_check.Toggled += FadeOnHideToggled;
++
++			zoom_checkbutton.Active = false;
+ 			
+ 			DefaultProvider.ItemsChanged += HandleDefaultProviderItemsChanged;
+ 			
+diff -uNr docky-2.0.7-orig/Docky/Docky/Interface/DockWindow.cs docky-2.0.7/Docky/Docky/Interface/DockWindow.cs
+--- docky-2.0.7-orig/Docky/Docky/Interface/DockWindow.cs	2010-10-01 09:00:03.733783001 +0200
++++ docky-2.0.7/Docky/Docky/Interface/DockWindow.cs	2010-11-11 08:15:05.463742691 +0100
+@@ -1759,28 +1759,8 @@
+ 				else
+ 					centerPosition += offset;
+ 				
+-				if (!adi.Zoom) {
+ 					val.Zoom = 1;
+ 					val.Center = new Cairo.PointD ((int) centerPosition, center.Y);
+-				} else {
+-					// zoom is calculated as 1 through target_zoom (default 2).  
+-					// The larger your offset, the smaller your zoom
+-					
+-					// First we get the point on our curve that defines our current zoom
+-					// offset is always going to fall on a point on the curve >= 0
+-					zoom = 1 - Math.Pow (offsetPercent, 2);
+-					
+-					// scale this to match our zoomInPercent
+-					zoom = 1 + zoom * (zoomInPercent - 1);
+-					
+-					double zoomedCenterHeight = DockHeightBuffer + (iconSize * zoom / 2.0);
+-					
+-					if (zoom == 1)
+-						centerPosition = Math.Round (centerPosition);
+-					
+-					val.Center = new Cairo.PointD (centerPosition, zoomedCenterHeight);
+-					val.Zoom = zoom;
+-				}
+ 				
+ 				// now we undo our transforms to the point
+ 				if (VerticalDock) {
diff --git a/docky-py-shebang.patch b/docky-py-shebang.patch
new file mode 100644
index 0000000..3c2b225
--- /dev/null
+++ b/docky-py-shebang.patch
@@ -0,0 +1,18 @@
+diff -uNr docky-2.0.7-orig/scripts/docky/docky.py docky-2.0.7/scripts/docky/docky.py
+--- docky-2.0.7-orig/scripts/docky/docky.py	2010-10-02 13:01:37.880463001 +0200
++++ docky-2.0.7/scripts/docky/docky.py	2010-11-10 22:27:09.028180355 +0100
+@@ -1,5 +1,3 @@
+-#!/usr/bin/env python
+-
+ #  
+ #  Copyright (C) 2009 Jason Smith, Robert Dyer
+ # 
+diff -uNr docky-2.0.7-orig/scripts/docky/docky.py.in docky-2.0.7/scripts/docky/docky.py.in
+--- docky-2.0.7-orig/scripts/docky/docky.py.in	2010-06-26 15:47:36.543229000 +0200
++++ docky-2.0.7/scripts/docky/docky.py.in	2010-11-10 22:27:12.660358947 +0100
+@@ -1,5 +1,3 @@
+-#!/usr/bin/env python
+-
+ #  
+ #  Copyright (C) 2009 Jason Smith, Robert Dyer
+ # 
diff --git a/docky-startscript-path.patch b/docky-startscript-path.patch
new file mode 100644
index 0000000..0624552
--- /dev/null
+++ b/docky-startscript-path.patch
@@ -0,0 +1,19 @@
+diff -uNr docky-2.0.7-orig/Docky/docky.in docky-2.0.7/Docky/docky.in
+--- docky-2.0.7-orig/Docky/docky.in	2010-08-24 20:45:24.696278997 +0200
++++ docky-2.0.7/Docky/docky.in	2010-11-10 22:43:36.274427881 +0100
+@@ -1,14 +1,4 @@
+ #!/bin/sh
+ 
+-SCRIPT_PATH=`dirname $0`
+-SCRIPT_PATH=`cd $SCRIPT_PATH; pwd`
+-
+-if [ "x$SCRIPT_PATH" = "x at abs_srcdir@/bin/Debug" ] ||
+-   [ "x$SCRIPT_PATH" = "x at abs_srcdir@" ] ; then
+-    echo "*** Running uninstalled ***"
+-    DOCKY_EXE="@abs_srcdir@/bin/Debug/Docky.exe"
+-else
+-    DOCKY_EXE="@expanded_libdir@/@PACKAGE@/Docky.exe"
+-fi
+-
++DOCKY_EXE="@expanded_libdir@/@PACKAGE@/Docky.exe"
+ exec mono "$DOCKY_EXE" "$@"
diff --git a/docky.spec b/docky.spec
new file mode 100644
index 0000000..c821f4b
--- /dev/null
+++ b/docky.spec
@@ -0,0 +1,153 @@
+%global         debug_package %{nil}
+
+Name:           docky
+Version:        2.0.7
+Release:        3%{?dist}
+Summary:        Advanced shortcut bar written in Mono
+
+Group:          Applications/File
+License:        GPLv3+
+URL:            http://wiki.go-docky.com
+Source0:        http://launchpad.net/docky/2.0/%{version}/+download/docky-%{version}.tar.gz
+
+# The "Icon Magnification" was removed from "Docky" due 
+# to a potential violation of US Patent 7434177
+Patch0:         %{name}-nozoom.patch
+Patch1:         %{name}-py-shebang.patch
+Patch2:         %{name}-startscript-path.patch
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+
+Requires:       gnome-sharp gtk-sharp2 gnome-desktop-sharp
+Requires:       gnome-keyring-sharp gtk-sharp2-gapi mono-addins
+Requires:       mono-core ndesk-dbus notify-sharp gtk2
+Requires:       hicolor-icon-theme
+# Docky does not use gio-sharp library yet (it has its own for now)
+#Requires:       gio-sharp
+
+# sharp deps
+BuildRequires:  gnome-sharp-devel gtk-sharp2-devel gnome-desktop-sharp-devel
+BuildRequires:  gnome-keyring-sharp-devel gtk-sharp2-gapi mono-addins-devel
+BuildRequires:  mono-devel ndesk-dbus-devel ndesk-dbus-glib-devel
+BuildRequires:  notify-sharp-devel
+# Docky does not use gio-sharp library yet (it has its own for now)
+#BuildRequires:  gio-sharp-devel
+# native deps
+BuildRequires:  python2-devel
+BuildRequires:  glib2-devel gtk2-devel
+BuildRequires:  gettext
+BuildRequires:  perl-XML-Parser
+BuildRequires:  intltool
+BuildRequires:  desktop-file-utils
+
+
+%description
+Docky is an advanced shortcut bar that sits at the bottom, top, and/or sides 
+of your screen. It provides easy access to some of the files, folders, 
+and applications on your computer, displays which applications are 
+currently running, holds windows in their minimized state, and more.
+
+
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+Requires:       pkgconfig
+
+%description    devel
+The %{name}-devel package contains libraries and header files
+for developing applications that use %{name}.
+
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+
+%build
+%configure
+make %{?_smp_mflags}
+
+
+%install
+%{__rm} -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+#gapi_codegen.exe is not distributed (licence is GNU GPL v2)
+rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/gapi_codegen*
+
+desktop-file-install    \
+        --dir $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart       \
+        --add-only-show-in=GNOME                                \
+        $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
+desktop-file-install --delete-original  \
+        --dir $RPM_BUILD_ROOT%{_datadir}/applications   \
+        --remove-category Application \
+        $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
+
+# autostart is disabled by default
+echo "X-GNOME-Autostart-enabled=false" >> \
+    $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/%{name}.desktop
+
+%find_lang %{name}
+
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%postun
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%clean
+%{__rm} -rf $RPM_BUILD_ROOT
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING COPYRIGHT NEWS
+%{_bindir}/%{name}
+%{_libdir}/%{name}
+%{_datadir}/%{name}/
+%{_datadir}/icons/hicolor/*/apps/%{name}.*
+%{_datadir}/icons/hicolor/*/apps/gmail.png
+%{_datadir}/icons/hicolor/*/mimetypes/*
+%{_datadir}/applications/*.desktop
+%config(noreplace) %{_sysconfdir}/xdg/autostart/%{name}.desktop
+%{python_sitelib}/%{name}
+
+
+%files devel
+%defattr(-,root,root,-)
+%{_libdir}/pkgconfig/docky.cairohelper.pc
+%{_libdir}/pkgconfig/docky.services.pc
+%{_libdir}/pkgconfig/docky.widgets.pc
+%{_libdir}/pkgconfig/docky.items.pc
+%{_libdir}/pkgconfig/docky.windowing.pc
+
+
+%changelog
+* Mon Oct 25 2010 Lukas Zapletal <lzap+rpm at redhat.com> - 2.0.7-3
+- Fixing many things reported in the bug 635450
+- Licence change
+- Zooming code completly removed
+* Mon Oct 25 2010 Lukas Zapletal <lzap+rpm at redhat.com> - 2.0.7-2
+- Fixed requirement on mono-core
+* Mon Oct 18 2010 Lukas Zapletal <lzap+rpm at redhat.com> - 2.0.7-1
+- Version bump
+* Mon Sep 06 2010 Lukas Zapletal <lzap+rpm at redhat.com> - 2.0.6-1
+- Initial package
+- Many fixes in spec (thank to Christian Krause)
+* Mon Sep 06 2010 Lukas Zapletal <lzap+rpm at redhat.com> - 2.0.6-1
+- Initial package
diff --git a/sources b/sources
index e69de29..abc0af5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+76ec96b4e3d5fdbf946b42913b1f3e28  docky-2.0.7.tar.gz


More information about the scm-commits mailing list