diff --git a/0001-build-Bump-optional-tracker-dependency-to-2.0.patch b/0001-build-Bump-optional-tracker-dependency-to-2.0.patch new file mode 100644 index 0000000..c3651b5 --- /dev/null +++ b/0001-build-Bump-optional-tracker-dependency-to-2.0.patch @@ -0,0 +1,27 @@ +From d2d844414fc6570bed5402bd7785132ca1a6fb50 Mon Sep 17 00:00:00 2001 +From: Carlos Garnacho +Date: Wed, 28 Jun 2017 23:41:21 +0200 +Subject: [PATCH] build: Bump optional tracker dependency to 2.0 + +No code changes required. It remains API compatible with the current +usage in nautilus. +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index ef8293a53..85c3cb9da 100644 +--- a/meson.build ++++ b/meson.build +@@ -82,7 +82,7 @@ if get_option ('enable-selinux') + endif + + if get_option ('enable-tracker') +- tracker_sparql = dependency ('tracker-sparql-1.0') ++ tracker_sparql = dependency ('tracker-sparql-2.0') + conf.set10 ('ENABLE_TRACKER', true) + endif + +-- +2.13.0 + diff --git a/nautilus.spec b/nautilus.spec index c5d9fe7..ed1da99 100644 --- a/nautilus.spec +++ b/nautilus.spec @@ -11,10 +11,15 @@ Version: 3.25.1 Release: 1%{?dist} Summary: File manager for GNOME -License: GPLv2+ +License: GPLv3+ URL: https://wiki.gnome.org/Apps/Nautilus Source0: https://download.gnome.org/sources/%{name}/3.25/%{name}-%{version}.tar.xz +# Backported from upstream +Patch0: 0001-build-Bump-optional-tracker-dependency-to-2.0.patch + +BuildRequires: gtk-doc +BuildRequires: meson BuildRequires: pkgconfig(exempi-2.0) >= %{exempi_version} BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version} BuildRequires: pkgconfig(gnome-autoar-0) @@ -68,21 +73,14 @@ This package provides libraries and header files needed for developing nautilus extensions. %prep -%setup -q +%autosetup -p1 %build -%configure - -# drop unneeded direct library deps with --as-needed -# libtool doesn't make this easy, so we do it the hard way -sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool - -make %{?_smp_mflags} V=1 +%meson -Denable-gtk-doc=true +%meson_build %install -%make_install - -find $RPM_BUILD_ROOT -name '*.la' -delete +%meson_install # Update the screenshot shown in the software center # @@ -114,8 +112,8 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || : %postun extensions -p /sbin/ldconfig %files -f %{name}.lang -%doc AUTHORS NEWS README -%license COPYING +%doc NEWS README +%license LICENSE* %{_datadir}/appdata/org.gnome.Nautilus.appdata.xml %{_datadir}/applications/* %{_bindir}/* @@ -132,7 +130,6 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || : %{_sysconfdir}/xdg/autostart/nautilus-autostart.desktop %files extensions -%license COPYING.EXTENSIONS COPYING.LIB %{_libdir}/libnautilus-extension.so.* %{_libdir}/girepository-1.0/*.typelib %dir %{_libdir}/nautilus @@ -149,6 +146,8 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || : %changelog * Tue Aug 01 2017 Kalev Lember - 3.25.1-1 - Update to 3.25.1 +- Switch to the meson build system +- Reflect upstream license change to GPLv3+ * Thu Jul 27 2017 Debarshi Ray - 3.24.2.1-3 - Rebuild against tracker-2.0