File docky.spec of Package docky

#
# spec file for package docky
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           docky
Version:        2.1.4
Release:        0
Summary:        A Dock Application
License:        GPL-3.0+
Group:          Productivity/Other
Url:            https://launchpad.net/docky
Source:         http://launchpad.net/docky/2.1/%{version}/+download/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM docky-mono3.patch lp#1097805 dimstar@opensuse.org -- Fix build with mono 3.0
Patch0:         docky-mono3.patch
BuildRequires:  fdupes
BuildRequires:  intltool
# Needed for patch0
BuildRequires:  libtool
BuildRequires:  mono
BuildRequires:  mono-devel
BuildRequires:  pkgconfig(dbus-sharp-1.0) >= 0.7
BuildRequires:  pkgconfig(dbus-sharp-glib-1.0) >= 0.5
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(gconf-sharp-2.0)
BuildRequires:  pkgconfig(gio-sharp-2.0)
BuildRequires:  pkgconfig(glib-sharp-2.0)
BuildRequires:  pkgconfig(gnome-desktop-sharp-2.0)
BuildRequires:  pkgconfig(gnome-keyring-sharp-1.0)
BuildRequires:  pkgconfig(gtk+-2.0) >= 2.14.3
BuildRequires:  pkgconfig(gtk-sharp-2.0)
BuildRequires:  pkgconfig(mono-addins)
BuildRequires:  pkgconfig(mono-addins-gui)
BuildRequires:  pkgconfig(mono-addins-setup)
BuildRequires:  pkgconfig(mono-cairo)
BuildRequires:  pkgconfig(notify-sharp)
BuildRequires:  pkgconfig(rsvg2-sharp-2.0)
BuildRequires:  pkgconfig(wnck-sharp-1.0)
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%else
%define suse_update_desktop_file true
%endif
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{gconf_schemas_prereq}

%description
Docky is a full fledged dock application that makes opening common applications and managing windows easier and quicker. Docky is fully integrated into the GNOME Desktop and features a no non-sense approach to configuration and usage. It just works.

%package devel
Summary:        A Dock Application
Group:          Development/Languages/Mono
Requires:       %{name} = %version

%description devel
Docky is a full fledged dock application that makes opening common applications and managing windows easier and quicker. Docky is fully integrated into the GNOME Desktop and features a no non-sense approach to configuration and usage. It just works.

%lang_package
%prep
%setup -q
%patch0 -p1

%build
# Needed for patch0
autoreconf -f -i -Wnone
%configure --disable-schemas-install
make

%install
%makeinstall
# Directories SUSE doesn't support
%__rm -rf %{buildroot}%{_datadir}/locale/fil
# System-wide autostart can conflict w/ user autostart
%__rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}.desktop
%suse_update_desktop_file %{name} DesktopUtility
%fdupes -s %{buildroot}
%find_lang %{name}
%find_gconf_schemas

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f %{name}.schemas_list
%defattr(-, root, root)
%doc COPYING AUTHORS COPYRIGHT
%doc %{_mandir}/man1/*
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/*
%{_libdir}/%{name}

%files lang -f %{name}.lang

%files devel
%defattr(-, root, root)
%{_libdir}/pkgconfig/%{name}.*.pc

%changelog
openSUSE Build Service is sponsored by