nemo/nemo.spec

179 lines
5.5 KiB
RPMSpec

#
# spec file for package nemo
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#
Name: nemo
Version: 2.4.0
Release: 0
Summary: File browser for Cinnamon
License: GPL-2.0+ and LGPL-2.0
Group: System/GUI/Other
Url: http://github.com/linuxmint/nemo
Source: %{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM marguerite@opensuse.org OBS gcc checks
Patch1: nemo-implicit-pointer-decl.patch
# PATCH-FIX-UPSTREAM margueirte@opensuse.org fix OBS gcc checks
Patch2: nemo-2.4.0-void-return-no-return.patch
BuildRequires: fdupes
BuildRequires: gnome-common
BuildRequires: gtk-doc
BuildRequires: hicolor-icon-theme
BuildRequires: python-gobject-devel
BuildRequires: python-polib
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
%patch1 -p1
%patch2 -p1
%build
sed -i '/AC_SUBST(DISABLE_DEPRECATED_CFLAGS)/d' configure.in
NOCONFIGURE=1 ./autogen.sh
%configure --libexecdir=%{_libexecdir}/%{name} \
--disable-static \
--disable-update-mimedb \
--enable-gtk-doc
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file %{name} System FileManager
%suse_update_desktop_file %{name}-autostart
%suse_update_desktop_file %{name}-autorun-software
# we need to own this directory
mkdir -p %{buildroot}%{_libdir}/nemo/extensions-3.0
%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
%{_bindir}/nemo-open-with
%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
%dir %{_libdir}/nemo
%dir %{_libdir}/nemo/extensions-3.0
%{_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