SHA256
1
0
forked from pool/nemo
nemo/nemo.spec

179 lines
5.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nemo
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) Nelson Marques <nmo.marques@gmail.com>
#
# 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/
#
# wise detect Tumbleweed
#%define gnome_common_ver %(rpm -q --qf '%%{VERSION}' gnome-common | sed 's/[^0-9]*3\\.\\([0-9]*\\)\\.[0-9]*/\\1/')
Name: nemo
Version: 2.0.1
Release: 0
License: GPL-2.0+ and LGPL-2.0
Summary: File browser for Cinnamon
Url: http://github.com/linuxmint/nemo
Group: System/GUI/Other
Source: %{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE fix upstream g_list_copy_deep on 12.2
Patch0: nemo-2.0.1-g_list_copy_deep.patch
# PATCH-FIX-UPSTREAM marguerite@opensuse.org fix OBS gcc checks
Patch1: nemo-2.0.1-view-no-return.patch
# PATCH-FIX-UPSTREAM marguerite@opensuse.org GTK_STOCK_* is deprecated
Patch2: nemo-2.0.1-GTK_STOCK.patch
BuildRequires: fdupes
BuildRequires: gnome-common
BuildRequires: gtk-doc
BuildRequires: hicolor-icon-theme
BuildRequires: sed
BuildRequires: shared-mime-info
BuildRequires: tracker-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(cinnamon-desktop)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(exempi-2.0)
BuildRequires: pkgconfig(gail-3.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gtksourceview-2.0)
BuildRequires: pkgconfig(gtksourceview-3.0)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libselinux)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(polkit-agent-1)
BuildRequires: pkgconfig(x11)
Recommends: cinnamon-translations
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
Nemo is the file manager for the Cinnamon desktop environment.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Requires: libnemo-extension1 = %{version}
Requires: typelib-1_0-Nemo-3_0 = %{version}
%description devel
Nemo is the file manager for the Cinnamon desktop environment.
This package provides the development files for Nemo.
%package -n libnemo-extension1
Summary: Nemo extension shared libraries
Group: System/Libraries
%description -n libnemo-extension1
Nemo is the file manager for the Cinnamon desktop environment.
This package provides Nemo's shared libraries.
%package -n typelib-1_0-Nemo-3_0
Summary: File Browser for Cinnamon - Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-Nemo-3_0
Nemo is the file manager for the Cinnamon desktop environment.
This package provides the GObject Introspection bindings for Nemo.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%if 0%{?suse_version} > 1230
%patch2 -p1
%endif
%build
NOCONFIGURE=1 ./autogen.sh
%configure --libexecdir=%{_libexecdir}/%{name} \
--disable-static \
--disable-update-mimedb \
--enable-gtk-doc
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -type f -name "*.la" -print -delete
%suse_update_desktop_file %{name}
%suse_update_desktop_file %{name}-autostart
%suse_update_desktop_file %{name}-autorun-software
%fdupes %{buildroot}%{_datadir}
%post
%icon_theme_cache_post
%desktop_database_post
%glib2_gsettings_schema_post
%mime_database_post
%post -n libnemo-extension1 -p /sbin/ldconfig
%postun
%icon_theme_cache_postun
%desktop_database_postun
%glib2_gsettings_schema_postun
%mime_database_postun
%postun -n libnemo-extension1 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING-DOCS COPYING.EXTENSIONS COPYING.LIB NEWS README.md THANKS
%{_bindir}/nemo
%{_bindir}/nemo-autorun-software
%{_bindir}/nemo-connect-server
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/nemo-convert-metadata
%{_datadir}/applications/nemo.desktop
%{_datadir}/applications/nemo-autostart.desktop
%{_datadir}/applications/nemo-autorun-software.desktop
%{_datadir}/dbus-1/services/org.Nemo.service
%{_datadir}/dbus-1/services/org.freedesktop.NemoFileManager1.service
%{_datadir}/glib-2.0/schemas/org.nemo.gschema.xml
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/mime/packages/nemo.xml
%{_datadir}/nemo/
%{_datadir}/gtksourceview-2.0/language-specs/nemo_action.lang
%{_datadir}/gtksourceview-3.0/language-specs/nemo_action.lang
%{_datadir}/polkit-1/actions/org.nemo.root.policy
%{_mandir}/man1/nemo.1.gz
%{_mandir}/man1/nemo-connect-server.1.gz
%files -n typelib-1_0-Nemo-3_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Nemo-3.0.typelib
%files -n libnemo-extension1
%defattr(-,root,root)
%doc %{_datadir}/gtk-doc/html/libnemo-extension
%{_libdir}/libnemo-extension.so.1
%{_libdir}/libnemo-extension.so.1.4.0
%files devel
%defattr(-,root,root)
%{_includedir}/nemo/
%{_libdir}/libnemo-extension.so
%{_libdir}/pkgconfig/libnemo-extension.pc
%{_datadir}/gir-1.0/Nemo-3.0.gir
%changelog