File alltray.spec of Package alltray

#
# spec file for package alltray
#
# Copyright (c) 2016 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:           alltray
Version:        0.7.5dev+
Release:        0
License:        GPL-3.0
Summary:        Dock any application to the notification area/system tray
Url:            https://launchpad.net/alltray
Group:          System/X11/Utilities
Source:         %{name}-%{version}.tar.xz
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcursor)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(libgtop-2.0)
BuildRequires:  pkgconfig(libwnck-1.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(xpm)
BuildRequires:  pkgconfig(xext)
BuildRequires:  vala >= 0.14.0
BuildRequires:  update-desktop-files
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
AllTray is an application which docks other application software into the system
tray (“notification area”) of a desktop environment such as GNOME, KDE, or XFCE.
It aims to be independent of both desktop environment and window manager.

%lang_package

%prep
%setup -q
sed -i 's/\ Menu/\ Gtk.Menu/g;s/\tMenu/\tGtk.Menu/' src/GtkStatusIcon.vala
sed -i 's/\.png//' data/%{name}.desktop.in

%build
./autogen.sh --no-configure
%configure
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot} %{?_smp_mflags}

%suse_update_desktop_file -r %{name} Utility DesktopUtility
sed -i 's/\(AllTray\).*/\1/' %{buildroot}%{_datadir}/applications/%{name}.desktop
%fdupes %{buildroot}%{_datadir}/pixmaps/

%find_lang %{name}

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog* COPYING HACKING NEWS README.* REQUIREMENTS
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}*.*
%{_mandir}/man?/%{name}.?%{ext_man}

%files lang -f %{name}.lang
openSUSE Build Service is sponsored by