2011-02-11 00:59:50 +00:00
#
# spec file for package gnote
#
2021-01-26 10:45:21 +00:00
# Copyright (c) 2021 SUSE LLC
2011-02-11 00:59:50 +00:00
#
# 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.
2018-09-27 12:51:23 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2011-02-11 00:59:50 +00:00
#
2016-05-17 11:39:38 +00:00
2020-10-26 08:24:19 +00:00
%define base_version 3.38
2019-10-04 15:24:31 +00:00
2010-12-21 11:27:21 +00:00
Name : gnote
2021-01-26 10:45:21 +00:00
Version : 3.38.1
2012-01-04 13:17:52 +00:00
Release : 0
2011-02-13 20:57:15 +00:00
Summary : A Port of Tomboy to C++
2018-03-05 13:44:47 +00:00
License : GPL-3.0-or-later
2010-12-21 11:27:21 +00:00
Group : Productivity/Text/Editors
2018-03-29 10:20:50 +00:00
URL : https://wiki.gnome.org/Apps/Gnote
2020-04-17 22:36:14 +00:00
Source0 : https://download.gnome.org/sources/gnote/%{base_version} /%{name} -%{version} .tar.xz
Source99 : gnote-rpmlintrc
2020-09-04 11:46:47 +00:00
# PATCH-FIX-UPSTREAM gnote-enabling-addin-for-opened-notes.patch bsc#1075342, glgo#GNOME/gnote!11 noteaddin: Fix newly enabled addin not working for opened.
Patch0 : gnote-enabling-addin-for-opened-notes.patch
2020-05-11 13:13:52 +00:00
2018-03-29 10:20:50 +00:00
BuildRequires : desktop-file-utils
2010-12-21 11:27:21 +00:00
BuildRequires : fdupes
BuildRequires : gcc-c++
BuildRequires : intltool
2019-10-04 15:24:31 +00:00
BuildRequires : libboost_test-devel >= 1.5.1
2016-09-08 21:28:32 +00:00
BuildRequires : pkgconfig
2013-03-16 19:32:38 +00:00
BuildRequires : translation-update-upstream
2012-09-29 22:32:55 +00:00
BuildRequires : yelp-tools
2020-04-17 22:36:14 +00:00
BuildRequires : pkgconfig(glibmm-2.4) >= 2.62
2019-11-26 09:31:25 +00:00
BuildRequires : pkgconfig(gspell-1) >= 1.6.0
2021-01-26 10:45:21 +00:00
BuildRequires : pkgconfig(gtk+-3.0) >= 3.20.20
2016-09-08 21:28:32 +00:00
BuildRequires : pkgconfig(gtkmm-3.0) >= 3.18
2012-09-14 15:33:56 +00:00
BuildRequires : pkgconfig(libsecret-1) >= 0.8
2013-03-13 23:37:15 +00:00
BuildRequires : pkgconfig(libxml-2.0)
2016-09-08 21:28:32 +00:00
BuildRequires : pkgconfig(libxslt)
BuildRequires : pkgconfig(uuid)
2010-12-21 11:27:21 +00:00
%description
2011-02-13 20:57:15 +00:00
It is the same note taking application, including most of the add-ins (more are
2010-12-21 11:27:21 +00:00
to come). Synchronization support is being worked on.
2013-06-24 16:06:44 +00:00
%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: packageand(%{name} :gnome-shell)
%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.
2011-02-11 00:59:50 +00:00
%lang_package
2016-09-08 21:28:32 +00:00
2010-12-21 11:27:21 +00:00
%prep
2019-10-04 15:24:31 +00:00
%autosetup -p1
2013-03-16 19:32:38 +00:00
translation-update-upstream
2010-12-21 11:27:21 +00:00
%build
2019-10-04 15:24:31 +00:00
%configure \
--disable-static \
%{nil}
%make_build
2010-12-21 11:27:21 +00:00
%install
2011-09-27 11:53:07 +00:00
%make_install
2016-09-08 21:28:32 +00:00
find %{buildroot} -type f -name " * . l a " -delete -print
2018-03-29 10:20:50 +00:00
desktop-file-edit --add-category TextEditor %{buildroot} %{_datadir} /applications/%{name} .desktop
%fdupes %{buildroot} %{_datadir}
2011-02-13 20:57:15 +00:00
%find_lang %{name} %{?no_lang_C}
%post
2012-09-14 15:33:56 +00:00
/sbin/ldconfig
2011-04-04 13:07:01 +00:00
2011-02-13 20:57:15 +00:00
%postun
2012-09-14 15:33:56 +00:00
/sbin/ldconfig
2010-12-21 11:27:21 +00:00
2011-09-27 11:53:07 +00:00
%files
2018-03-05 13:44:47 +00:00
%license COPYING
2018-03-29 10:20:50 +00:00
%doc AUTHORS NEWS README
2012-09-29 22:32:55 +00:00
%doc %{_datadir} /help/C/%{name} /
2010-12-21 11:27:21 +00:00
%{_bindir} /gnote
2011-02-13 20:57:15 +00:00
%{_libdir} /gnote/
2012-03-11 18:12:52 +00:00
# Splitting does not make sense as it's just a lib for gnote itself (and it's plugins)
2018-03-29 10:20:50 +00:00
%{_libdir} /libgnote-%{base_version} .so*
2012-03-11 18:12:52 +00:00
%{_libdir} /libgnote.so
2010-12-21 11:27:21 +00:00
%{_datadir} /applications/gnote.desktop
2011-09-27 11:53:07 +00:00
%{_datadir} /glib-2.0/schemas/org.gnome.gnote.gschema.xml
2011-02-13 20:57:15 +00:00
%{_datadir} /gnote/
2010-12-21 11:27:21 +00:00
%{_datadir} /icons/hicolor/*/apps/gnote.*
2018-03-29 10:20:50 +00:00
%{_mandir} /man1/gnote.1%{?ext_man}
%dir %{_datadir} /metainfo/
%{_datadir} /metainfo/gnote.appdata.xml
2011-02-11 00:59:50 +00:00
2013-06-24 16:06:44 +00:00
%files -n gnome-shell-search-provider-%{name}
%{_datadir} /dbus-1/services/org.gnome.Gnote.service
%dir %{_datadir} /gnome-shell
%dir %{_datadir} /gnome-shell/search-providers
%{_datadir} /gnome-shell/search-providers/gnote-search-provider.ini
2018-03-29 10:20:50 +00:00
%files lang -f %{name}.lang
2011-02-11 00:59:50 +00:00
%changelog