File gnome-docker.spec of Package gnome-docker
#
# spec file for package gnome-docker
#
# Copyright (c) 2011 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/
#
# norootforbuild
Name: gnome-docker
BuildRequires: gnome-common hal-devel intltool libgnomeui-devel liblazy-devel libnotify-devel update-desktop-files
BuildRequires: translation-update-upstream
Version: 0.1
Release: 95
Url: Stilllookingforurl
Group: System/GUI/GNOME
License: GPLv2
Summary: GNOME dock station applet
Source: %{name}-%{version}.tar.bz2
Patch: %{name}-use-capability.patch
Patch1: %{name}-consider-type.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GNOME application for notifying laptop users about the state of their
dock station and the possibility to undock the system via software,
either from the tray icon, or via a hotkey.
%prep
%setup -q
translation-update-upstream
%patch
%patch1 -p1
%build
%configure
make %{?jobs:-j%jobs}
%install
%makeinstall
# Remove gnome-docker.desktop from application menu: it's an app
# that gets autostarted. To be sure we don't remove anything else,
# we do this cmp that will make the build fail if there's a
# difference.
cmp --quiet %{buildroot}%{_datadir}/applications/gnome-docker.desktop %{buildroot}%{_datadir}/gnome/autostart/gnome-docker.desktop
rm %{buildroot}%{_datadir}/applications/gnome-docker.desktop
%suse_update_desktop_file $RPM_BUILD_ROOT%{_datadir}/gnome/autostart/gnome-docker.desktop
# There are no translations, but translation-update-upstream may import some:
if test -f $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/gnome-docker.mo ; then
%find_lang %{name} %{?no_lang_C}
else
touch %{name}.lang
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr (-, root, root)
%_bindir/gnome-docker
%dir %_datadir/gnome/autostart
%_datadir/gnome/autostart/gnome-docker.desktop
%_datadir/gnome-docker
%changelog