File elementary-planner.spec of Package elementary-planner
#
# spec file for package elementary-planner
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define appname com.github.alainm23.planner
%define sover 0
Name: elementary-planner
Version: 2.6.1
Release: 0
Summary: Task manager with Todoist support
License: GPL-3.0-or-later
URL: https://useplanner.com/
Source0: https://github.com/alainm23/planner/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: hicolor-icon-theme
BuildRequires: meson
BuildRequires: vala
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gee-0.8) >= 0.8.5
BuildRequires: pkgconfig(glib-2.0) >= 2.30.0
BuildRequires: pkgconfig(granite) >= 5.2.0
BuildRequires: pkgconfig(gtk+-3.0) >= 3.6.0
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libedataserver-1.2) >= 3.8.0
BuildRequires: pkgconfig(libpeas-1.0)
BuildRequires: pkgconfig(libpeas-gtk-1.0)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(webkit2gtk-4.0)
%description
A task manager with Todoist support
Cloud features:
* Synchronize your Projects, Task and Sections thanks to Todoist.
* Support for Todoist offline: Work without an internet connection and when
everything is reconnected it will be synchronized.
* Planner not created by, affiliated with, or supported by Doist
Other features:
* Reminders notifications.
* Quick Find.
* Night mode.
* Recurring due dates.
%lang_package
%package devel
Summary: Development files for %{name}
Requires: libcodecore%{sover} = %{version}
%description devel
Contains development files for %{name}
%package -n libcodecore%{sover}
Summary: Support library for %{name}
%description -n libcodecore%{sover}
Contains support library for %{name}.
%prep
%setup -q -n planner-%{version}
%build
%meson
%meson_build
%install
%meson_install
%find_lang %{appname}
# clean up the icon mess
rm -rf %{buildroot}%{_datadir}/icons
install -Dm0644 data/icons/128/com.github.alainm23.planner.svg \
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{appname}.svg
%post -n libcodecore%{sover} -p /sbin/ldconfig
%postun -n libcodecore%{sover} -p /sbin/ldconfig
%files
%license LICENSE
%doc README.md
%{_bindir}/%{appname}
%{_bindir}/%{appname}.quick-add
%{_datadir}/applications/%{appname}.desktop
%{_datadir}/glib-2.0/schemas/%{appname}.gschema.xml
%{_datadir}/icons/hicolor/scalable/apps/%{appname}.svg
%{_datadir}/metainfo/%{appname}.appdata.xml
%dir %{_libdir}/%{appname}
%dir %{_libdir}/%{appname}/plugins
%dir %{_libdir}/%{appname}/plugins/sidebar-labels
%{_libdir}/%{appname}/plugins/sidebar-labels/libsidebar-labels.so
%{_libdir}/%{appname}/plugins/sidebar-labels/sidebar-labels.plugin
%files lang -f %{appname}.lang
%files devel
%{_datadir}/vala/vapi/codecore.deps
%{_datadir}/vala/vapi/codecore.vapi
%{_includedir}/codecore.h
%{_libdir}/libcodecore.so
%{_libdir}/pkgconfig/codecore.pc
%files -n libcodecore%{sover}
%{_libdir}/libcodecore.so.%{sover}*
%changelog