File alltray.spec of Package alltray
#
# spec file for package alltray
#
# Copyright (c) 2015 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/
#
%define version_unconverted 0.7.5.git.20120204
Name: alltray
Version: 0.7.5.git.20120204
Release: 0
Summary: Dock any application to the notification area/system tray
License: GPL-3.0
Group: System/X11/Utilities
Url: https://launchpad.net/alltray
Source0: %{name}-%{version}.tar.bz2
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gconf2-devel
BuildRequires: gtk3-devel
BuildRequires: libXcursor-devel
BuildRequires: libXpm-devel
BuildRequires: libgtop-devel
BuildRequires: libwnck2-devel
BuildRequires: update-desktop-files
BuildRequires: vala
%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.
%lang_package
%prep
%setup -q -n %{name}-%{version}
#Fix build with newer versions of GLib
sed -i 's/MenuItem/Gtk.MenuItem/;s/ \MenuItem/ \Gtk.MenuItem/' src/GtkStatusIcon.vala
sed -i 's/Menu\ /Gtk.Menu\ /;s/ \Menu/ \Gtk.Menu/' src/GtkStatusIcon.vala
sed -i 's/.png//' data/%{name}.desktop.in
%build
./autogen.sh --no-configure
%configure
make %{?_smp_mflags}
%install
%make_install
%suse_update_desktop_file -r %{name} GTK Utility DesktopUtility
%find_lang %{name}
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/%{name}*
%{_datadir}/pixmaps/%{name}*.png
%{_datadir}/pixmaps/%{name}_ctt.xpm
%{_datadir}/applications/*%{name}.desktop
%{_mandir}/man1/%{name}.1*
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%changelog