Dominique Leuenberger
05ac9ae15f
( bsc#1075335, bgo#792859 ). OBS-URL: https://build.opensuse.org/request/show/578856 OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/gnote?expand=0&rev=104
129 lines
4.0 KiB
RPMSpec
129 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package gnote
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%define _gnote_version 3.26
|
|
Name: gnote
|
|
Version: 3.26.0
|
|
Release: 0
|
|
Summary: A Port of Tomboy to C++
|
|
License: GPL-3.0+
|
|
Group: Productivity/Text/Editors
|
|
Url: http://live.gnome.org/Gnote
|
|
Source: http://download.gnome.org/sources/gnote/3.26/%{name}-%{version}.tar.xz
|
|
# PATCH-FIX-UPSTREAM shortkey-ctrl-o-alt-w.patch bsc#1075335 bgo#792859 qzheng@suse.com -- When left-click the note tree view, shortkey should be enable.
|
|
Patch0: shortkey-ctrl-o-alt-w.patch
|
|
%if 0%{?suse_version} > 1325
|
|
BuildRequires: libboost_test-devel
|
|
%else
|
|
BuildRequires: boost-devel >= 1.34
|
|
%endif
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: intltool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: translation-update-upstream
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: yelp-tools
|
|
BuildRequires: pkgconfig(glibmm-2.4) >= 2.32
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.20
|
|
BuildRequires: pkgconfig(gtkmm-3.0) >= 3.18
|
|
BuildRequires: pkgconfig(gtkspell3-3.0) >= 3.0.0
|
|
BuildRequires: pkgconfig(libsecret-1) >= 0.8
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(libxslt)
|
|
BuildRequires: pkgconfig(uuid)
|
|
Recommends: %{name}-lang
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%glib2_gsettings_schema_requires
|
|
|
|
%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: 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.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
translation-update-upstream
|
|
|
|
%build
|
|
%configure --disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
%suse_update_desktop_file gnote Utility DesktopUtility
|
|
%fdupes %{buildroot}
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
%glib2_gsettings_schema_post
|
|
%desktop_database_post
|
|
%icon_theme_cache_post
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
%glib2_gsettings_schema_postun
|
|
%desktop_database_postun
|
|
%icon_theme_cache_postun
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%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-%{_gnote_version}.so*
|
|
%{_libdir}/libgnote.so
|
|
%{_datadir}/applications/gnote.desktop
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.gnote.gschema.xml
|
|
%{_datadir}/gnote/
|
|
%{_datadir}/icons/hicolor/*/apps/gnote.*
|
|
%{_mandir}/man1/gnote.1*
|
|
%dir %{_datadir}/appdata/
|
|
%{_datadir}/appdata/gnote.appdata.xml
|
|
|
|
%files lang -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
|
|
%files -n gnome-shell-search-provider-%{name}
|
|
%defattr(-,root,root)
|
|
%{_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
|
|
|
|
%changelog
|