File osmo.spec of Package osmo
#
# spec file for package osmo
#
# Copyright (c) 2018 SUSE LINUX 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: osmo
Version: @SERVICE@
Release: 0
Summary: Personal organizer with calendar, tasks manager and address book
License: GPL-2.0-or-later
Group: Productivity/Office/Organizers
URL: http://clayo.org/osmo
Source: %{name}-%{version}.tar.xz
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gspell-1)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.10.0
BuildRequires: pkgconfig(libarchive)
BuildRequires: pkgconfig(libgringotts)
BuildRequires: pkgconfig(libical)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libxml-2.0) >= 2.0.0
BuildRequires: pkgconfig(pango)
#uildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(webkit2gtk-4.0)
Recommends: %{name}-lang
Suggests: sox
%description
Osmo is a handy personal organizer, which includes calendar, tasks manager,
address book and notes modules. It was designed to be a small, easy to use and good
looking PIM tool to help to manage personal information. In its current state the
organizer is quite convenient to use - for example, the user can perform nearly all
operations using the keyboard. Also, a lot of parameters are configurable to meet
the user's preferences. On the technical side, Osmo is GTK+ based tool which uses
a plain XML database to store all personal data.
%lang_package
%prep
%setup -q
%build
sh ./autogen.sh
%configure \
--prefix=%{_prefix} \
--enable-reproducible
make %{?_smp_mflags}
%install
%make_install
%suse_update_desktop_file -i %{name}
%fdupes %{buildroot}%{_datadir}
%find_lang %{name}
%if 0%{?suse_version} < 1500
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%doc AUTHORS ChangeLog FAQ README TRANSLATORS
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%{_datadir}/icons/hicolor/*/actions/%{name}*.??g
%{_mandir}/man?/%{name}*%{ext_man}
%{_datadir}/pixmaps/%{name}*.png
%{_datadir}/pixmaps/moonphase*.png
%dir %{_datadir}/sounds/%{name}
%{_datadir}/sounds/%{name}/alarm.wav
%files lang -f %{name}.lang
%changelog