File alarm-clock-applet.spec of Package alarm-clock-applet

#
# spec file for package alarm-clock-applet
#
# 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:           alarm-clock-applet
Version:        0.3.3
Release:        0
Summary:        An alarm-clock for use with the GNOME panel
License:        GPL-2.0
Group:          Productivity/Office/Other
Url:            https://launchpad.net/alarm-clock/
Source:         https://launchpad.net/alarm-clock/trunk/%{version}/+download/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM alarm-clock-applet-gstreamer1.patch lp#1137453 dimstar@opensuse.org -- Port to GStreamer 1.0
Patch0:         alarm-clock-applet-gstreamer1.patch
# Needed for patch0
BuildRequires:  gnome-common
BuildRequires:  intltool
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gnome-icon-theme)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(unique-1.0)
Requires:       gnome-icon-theme
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} <= 1120
%gconf_schemas_prereq
%else
%gconf_schemas_requires
%endif

%description
Alarm Clock is a fully-featured alarm clock for your GNOME panel.
It's easy to use yet powerful with support for multiple repeatable
alarms, as well as snoozing and a flexible notification system.

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

%build
# Needed for patch0
NOCONFIGURE=1 ./autogen.sh
%configure \
    --disable-schemas-install
%__make %{?_smp_mflags}

%install
%makeinstall
%find_gconf_schemas
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file -G "Alarm Scheduler" alarm-clock-applet TimeUtility

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%icon_theme_cache_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/alarm-clock-applet
%{_datadir}/alarm-clock-applet/
%{_datadir}/applications/alarm-clock-applet.desktop
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/hicolor/*/apps/*.svg

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by