nemo/nemo.spec

164 lines
4.8 KiB
RPMSpec

#
# 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/
#
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
Patch: nemo-2.0.1-g_list_copy_deep.patch
BuildRequires: gnome-common
BuildRequires: gtk-doc
BuildRequires: hicolor-icon-theme
BuildRequires: shared-mime-info
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(cinnamon-desktop)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(exempi-2.0)
BuildRequires: pkgconfig(gail-3.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gmodule-no-export-2.0)
BuildRequires: pkgconfig(gnome-desktop-3.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gsettings-desktop-schemas)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libselinux)
BuildRequires: pkgconfig(libxml-2.0)
%if 0%{?suse_version} <= 1230
BuildRequires: pkgconfig(tracker-sparql-0.14)
%else
BuildRequires: pkgconfig(tracker-sparql-0.16)
%endif
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: 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
%if 0%{?suse_version} == 1220
patch -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
%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
%{_libexecdir}/%{name}/nemo-convert-metadata
%{_bindir}/nemo-connect-server
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/*.service
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/mime/
%{_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/*.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)
%{_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