SHA256
1
0
forked from pool/gnote

Accepting request 589936 from GNOME:Next

OBS-URL: https://build.opensuse.org/request/show/589936
OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/gnote?expand=0&rev=108
This commit is contained in:
2018-03-29 10:20:50 +00:00
committed by Git OBS Bridge
parent 88838f5c97
commit e6d1150045
5 changed files with 52 additions and 42 deletions

View File

@@ -16,23 +16,21 @@
#
%define _gnote_version 3.26
%define base_version 3.28
Name: gnote
Version: 3.26.0
Version: 3.28.0
Release: 0
Summary: A Port of Tomboy to C++
License: GPL-3.0-or-later
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
URL: https://wiki.gnome.org/Apps/Gnote
Source: http://download.gnome.org/sources/gnote/3.28/%{name}-%{version}.tar.xz
BuildRequires: desktop-file-utils
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
@@ -43,11 +41,13 @@ BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(uuid)
Recommends: %{name}-lang
%if 0%{?suse_version} < 1330
%glib2_gsettings_schema_requires
%endif
%if 0%{?suse_version} > 1325
BuildRequires: libboost_test-devel
BuildRequires: libboost_test-devel >= 1.5.1
%else
BuildRequires: boost-devel >= 1.34
BuildRequires: boost-devel >= 1.5.1
%endif
%description
@@ -72,7 +72,6 @@ search results from documents.
%prep
%setup -q
%patch0 -p1
translation-update-upstream
%build
@@ -82,39 +81,42 @@ make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file gnote Utility DesktopUtility
%fdupes %{buildroot}
desktop-file-edit --add-category TextEditor %{buildroot}%{_datadir}/applications/%{name}.desktop
%fdupes %{buildroot}%{_datadir}
%find_lang %{name} %{?no_lang_C}
%post
/sbin/ldconfig
%if 0%{?suse_version} < 1330
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post
%endif
%postun
/sbin/ldconfig
%if 0%{?suse_version} < 1330
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%license COPYING
%doc AUTHORS NEWS README
%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-%{base_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
%{_mandir}/man1/gnote.1%{?ext_man}
%dir %{_datadir}/metainfo/
%{_datadir}/metainfo/gnote.appdata.xml
%files -n gnome-shell-search-provider-%{name}
%{_datadir}/dbus-1/services/org.gnome.Gnote.service
@@ -122,4 +124,6 @@ find %{buildroot} -type f -name "*.la" -delete -print
%dir %{_datadir}/gnome-shell/search-providers
%{_datadir}/gnome-shell/search-providers/gnote-search-provider.ini
%files lang -f %{name}.lang
%changelog