File orage.spec of Package orage

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

Name:           orage
Version:        4.8.0
Release:        5.<RELEASE3>
License:        GPLv2+
Summary:        Time-managing Application for the Xfce Desktop Environment
Group:          Productivity/Office/Organizers
Source:         %{name}-%{version}.tar.bz2
Source1:        README.SUSE
BuildRequires:  intltool
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libical)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libxfce4panel-1.0)
BuildRequires:  popt-devel
BuildRequires:  update-desktop-files
BuildRequires:  xfce4-dev-tools
BuildRequires:  fdupes
Requires:       timezone
Recommends:     %{name}-lang = %{version}
Provides:       xfcalendar = %{version}
Obsoletes:      xfcalendar < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Orage is a fast and easy to use graphical calendar for the Xfce desktop
environment. It uses the portable ical format and includes common calendar
features like repeating appointments and multiple alarming possibilities. Orage
does not have group calendar features and can only be used for single user.

%setup -q
cp %{SOURCE1} .
sed -i 's:^Icon=xfce4-clock:Icon=xfcalendar:' globaltime/

export CFLAGS="%{optflags} -I%{_includedir}/libical"
make %{?_smp_mflags}

install -D -m 644 icons/48x48/xfcalendar.png %{buildroot}%{_datadir}/pixmaps/xfcalendar.png
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%fdupes %{buildroot}%{_datadir}
%find_lang %{name}
%suse_update_desktop_file -r xfcalendar X-XFCE Office Calendar GTK
%suse_update_desktop_file -r globaltime X-XFCE Utility Clock GTK
%suse_update_desktop_file xfce-xfcalendar-settings

rm -rf %{buildroot}

%if 0%{?suse_version} >= 1140



%doc %{_datadir}/orage/doc/
%doc %{_mandir}/man1/*

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by