File planify.spec of Package planify

#
# spec file for package planify
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2024 Florian "sp1rit" <sp1rit@disroot.org>
#
# 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 uuid    io.github.alainm23.planify
%define sover   0

Name:           planify
Version:        4.10.5
Release:        0
Summary:        Task manager
License:        GPL-3.0-or-later
URL:            https://useplanify.com
Source0:        %{name}-%{version}.tar.xz
Patch1:         gcc-14-missing-return.patch
BuildRequires:  desktop-file-utils
BuildRequires:  gcc
BuildRequires:  meson
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gee-0.8)
BuildRequires:  pkgconfig(gtk4)
BuildRequires:  pkgconfig(libsoup-3.0)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(libadwaita-1) >= 1.5.0
BuildRequires:  pkgconfig(webkitgtk-6.0)
BuildRequires:  pkgconfig(gtksourceview-5)
BuildRequires:  pkgconfig(granite-7)
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(libecal-2.0) >= 3.45.1
BuildRequires:  pkgconfig(libedataserver-1.2) >= 3.45.1
BuildRequires:  pkgconfig(libical-glib)
BuildRequires:  pkgconfig(libportal)
BuildRequires:  pkgconfig(libportal-gtk4)
BuildRequires:  pkgconfig(gxml-0.20)
BuildRequires:  pkgconfig(libsecret-1)
BuildRequires:  vala
Requires:       lib%{name}%{sover} = %{version}-%{release}

%lang_package

%description
Task manager with Todoist and Nextcloud support

%package -n lib%{name}%{sover}
Summary:        Task manager

%description -n lib%{name}%{sover}
Task manager with Todoist and Nextcloud support

%package devel
Summary:        Development files for %{name}
Requires:       lib%{name}%{sover} = %{version}-%{release}
Recommends:     %{name} = %{version}-%{release}

%description devel
This package contains files needed to build against
lib%{name}%{sover}.

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%check
%meson_test

%find_lang %{uuid}

%ldconfig_scriptlets -n lib%{name}%{sover}

%files lang -f %{uuid}.lang

%files -n lib%{name}%{sover}
%{_libdir}/lib%{name}.so.%{sover}*

%files
%license LICENSE
%doc README.md
%{_bindir}/%{uuid}
%{_bindir}/%{uuid}.quick-add
%{_datadir}/appdata/%{uuid}.appdata.xml
%{_datadir}/applications/%{uuid}.desktop
%{_datadir}/glib-2.0/schemas/%{uuid}.gschema.xml
%{_datadir}/gtksourceview-5/language-specs/markdownpp.lang
%{_datadir}/gtksourceview-5/styles/markdown.xml
%{_datadir}/gtksourceview-5/styles/markdown_dark.xml
%{_datadir}/icons/hicolor/scalable/apps/%{uuid}.Devel.svg
%{_datadir}/icons/hicolor/scalable/apps/%{uuid}.svg
%{_datadir}/icons/hicolor/symbolic/apps/%{uuid}-symbolic.svg

%files devel
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/vala/vapi/%{name}.deps
%{_datadir}/vala/vapi/%{name}.vapi

%changelog
openSUSE Build Service is sponsored by