File gDesklets.spec of Package gDesklets

# spec file for package gDesklets
# 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

# norootforbuild

Name:           gDesklets
Version:        0.36.2
Release:        2
Group:          System/GUI/GNOME
License:        GPLv2+
Summary:        Tiny Displays Sitting on Your Desktop
Patch1:         %name-desktop.patch
# PATCH-FIX-UPSTREAM gDesklets-0.36.1-am111.patch -- remove duplicates
Patch3:         gDesklets-0.36.1-am111.patch
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  libgtop-devel
BuildRequires:  librsvg-devel
BuildRequires:  python-devel
BuildRequires:  python-gnome-devel
BuildRequires:  python-gtk-devel
BuildRequires:  python-orbit-devel
BuildRequires:  shared-mime-info
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Requires:       python-gtk
Requires:       python-orbit
Requires:       python-gnome
Requires:       python-xml
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

gDesklets provides an advanced architecture for desktop applets - tiny
displays sitting on your desktop in a symbiotic relationship of eye
candyand usefulness. Populate your desktop with status meters, icon
bars, weather sensors,news tickers and a lot more! Virtually anything
is possible and may even be available some day.

%setup -q
%patch3 -p1

export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"

# Install bash completion script
install -D -m0644 contrib/bash/gdesklets %{buildroot}%{_sysconfdir}/bash_completion.d/gdesklets
%suse_update_desktop_file gdesklets -r System Applet
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
# Move icons in the right icon theme
mv %{buildroot}%{_datadir}/icons/gnome %{buildroot}%{_datadir}/icons/hicolor
%find_lang gdesklets %{?no_lang_C}
rm $RPM_BUILD_ROOT%{_libdir}/gdesklets/*/*.la $RPM_BUILD_ROOT%{_libdir}/gdesklets/*/*/*.la
%fdupes -s $RPM_BUILD_ROOT


%if 0%{?suse_version} > 1130
if [ -f /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database /usr/share/mime > /dev/null

%if 0%{?suse_version} > 1130
if [ -f /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database /usr/share/mime > /dev/null

%defattr (-, root, root)
%doc %{_mandir}/man1/gdesklets.*

%files lang -f gdesklets.lang

openSUSE Build Service is sponsored by