gnote/gnote.spec
Dominique Leuenberger 8d6d3a1044 Accepting request 1139296 from GNOME:Next
- Update to version 45.1:
  + Fix error to console when opening Preferences.
  + Fix undo.
  + Fix search when empty.
- Convert to source service for easier updating.

OBS-URL: https://build.opensuse.org/request/show/1139296
OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/gnote?expand=0&rev=174
2024-01-17 07:07:04 +00:00

122 lines
3.6 KiB
RPMSpec

#
# spec file for package gnote
#
# Copyright (c) 2024 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 base_version 45
%define glib_version 2.74
Name: gnote
Version: 45.1
Release: 0
Summary: A Port of Tomboy to C++
License: GPL-3.0-or-later
Group: Productivity/Text/Editors
URL: https://wiki.gnome.org/Apps/Gnote
Source0: %{name}-%{version}.tar.zst
Source99: gnote-rpmlintrc
BuildRequires: appstream-glib
BuildRequires: c++_compiler
BuildRequires: c_compiler
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: meson >= 0.59
BuildRequires: pkgconfig
BuildRequires: yelp-tools
BuildRequires: pkgconfig(gio-2.0) >= %{glib_version}
BuildRequires: pkgconfig(giomm-2.68) >= %{glib_version}
BuildRequires: pkgconfig(glibmm-2.68) >= %{glib_version}
# TODO: Keep an eye on new releases. Upstream temporarily disabled gspell-1 support
# with the following notice:
# Need updated version that support GTK 4
# BuildRequires: pkgconfig(gspell-1) >= 1.6.0
BuildRequires: pkgconfig(gtkmm-4.0) >= 4.0.0
BuildRequires: pkgconfig(libsecret-1) >= 0.8
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(uuid)
%description
It is the same note taking application, including most of the add-ins (more are
to come). Synchronization support is being worked on.
%package -n gnome-shell-search-provider-%{name}
Summary: Note editor for GNOME -- Search Provider for GNOME Shell
Group: Productivity/Office/Other
Requires: %{name} = %{version}
Requires: gnome-shell
Supplements: (%{name} and gnome-shell)
BuildArch: noarch
%description -n gnome-shell-search-provider-%{name}
It is the same note taking application, including most of the add-ins (more are
to come). Synchronization support is being worked on.
This package contains a search provider to enable GNOME Shell to get
search results from documents.
%lang_package
%prep
%autosetup -p1
%build
%meson \
%{nil}
%meson_build
%install
%meson_install
%fdupes %{buildroot}%{_datadir}
%find_lang %{name} %{?no_lang_C}
%if %suse_version >= 1550
%ldconfig_scriptlets
%else
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%endif
%check
%meson_test
%files
%license COPYING
%doc AUTHORS NEWS README.md
%doc %{_datadir}/help/C/%{name}/
%{_bindir}/gnote
%{_libdir}/gnote/
# Splitting does not make sense as it's just a lib for gnote itself (and it's plugins)
%{_libdir}/libgnote-%{base_version}.so*
%{_datadir}/applications/org.gnome.Gnote.desktop
%{_datadir}/dbus-1/services/org.gnome.Gnote.service
%{_datadir}/glib-2.0/schemas/org.gnome.gnote.gschema.xml
%{_datadir}/gnote/
%{_datadir}/icons/hicolor/*/apps/org.gnome.Gnote*
%{_mandir}/man1/gnote.1%{?ext_man}
%dir %{_datadir}/metainfo/
%{_datadir}/metainfo/org.gnome.Gnote.appdata.xml
%files -n gnome-shell-search-provider-%{name}
%dir %{_datadir}/gnome-shell
%dir %{_datadir}/gnome-shell/search-providers
%{_datadir}/gnome-shell/search-providers/org.gnome.Gnote.search-provider.ini
%files lang -f %{name}.lang
%changelog