Группа :: Графические оболочки/GNOME
Пакет: nemo
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define api_ver 3.0
%define ver_major 5.8
%def_enable exempi
%def_enable tracker
%def_enable introspection
%def_enable selinux
Name: nemo
Version: %ver_major.4
Release: alt1
Summary: default file manager for Cinnamon
License: GPLv2+
Group: Graphical desktop/GNOME
URL: https://github.com/linuxmint/nemo
Source: %name-%version.tar
Patch: %name-%version-%release.patch
Requires: %name-translations
Requires: xapps-icons
%define pkgconfig_ver 0.8
%define icon_theme_ver 2.10.0
%define desktop_file_utils_ver 0.8
%define glib_ver 2.31.9
%define desktop_ver 2.6.1
%define pango_ver 1.28.3
%define gtk_ver 3.9.10
%define libxml2_ver 2.7.8
%define exif_ver 0.6.20
%define exempi_ver 2.2.0
%define gir_ver 0.10.2
%define notify_ver 0.7.0
%define tracker_ver 0.16
Requires(pre): lib%name = %version-%release
Requires: gnome-icon-theme >= %icon_theme_ver
Requires: shared-mime-info
Requires: common-licenses
Requires: gvfs >= 1.9.1
BuildRequires(pre): meson rpm-build-gnome rpm-build-licenses rpm-build-gir rpm-build-python3
BuildPreReq: pkgconfig >= %pkgconfig_ver
BuildPreReq: desktop-file-utils >= %desktop_file_utils_ver
# for %%check
BuildRequires: xvfb-run dbus-tools-gui /proc
# From configure.in
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libgio-devel >= %glib_ver
BuildPreReq: libcinnamon-desktop-devel >= %desktop_ver
BuildPreReq: libpango-devel >= %pango_ver
BuildPreReq: libgtk+3-devel >= %gtk_ver
BuildPreReq: libgail3-devel
BuildPreReq: libxml2-devel >= %libxml2_ver
BuildPreReq: intltool >= 0.40.1
BuildPreReq: libexif-devel >= %exif_ver
BuildPreReq: libnotify-devel >= %notify_ver
BuildRequires: meson
BuildRequires: libX11-devel xorg-xproto-devel
BuildRequires: docbook-utils gtk-doc
BuildRequires: python3-module-polib python3-module-pygobject3
BuildRequires: libxapps-devel >= 1.0.4
%{?_enable_exempi:BuildPreReq: libexempi-devel >= %exempi_ver}
%{?_enable_tracker:BuildPreReq: tracker-devel >= %tracker_ver}
%{?_enable_introspection:BuildPreReq: gobject-introspection-devel >= %gir_ver libgtk+3-gir-devel}
%{?_enable_selinux:BuildRequires: libselinux-devel}
BuildRequires: libgsf-devel
%description
Nemo integrates access to files, applications, media, Internet-based
resources and the Web. Nemo delivers a dynamic and rich user
experience. Nemo is an free software project developed under the
GNU General Public License and is a core component of the Cinnamon desktop
project.
%package -n lib%name
Summary: Shared libraries needed to run Nemo
Group: System/Libraries
%description -n lib%name
This package contains shared libraries needed to run Nemo and its
components.
%package -n lib%name-devel
Summary: Libraries and include files for developing Nemo components
Group: Development/GNOME and GTK+
Requires: lib%name = %version-%release
%description -n lib%name-devel
This package provides the necessary development libraries and include
files to allow you to develop Nemo components.
%package -n lib%name-devel-doc
Summary: Development documentation for %name
Group: Development/Documentation
Conflicts: lib%name-devel < %version-%release
BuildArch: noarch
%description -n lib%name-devel-doc
This package contains development documentation for the %name.
%package -n lib%name-gir
Summary: GObject introspection data for the nemo-extension library
Group: System/Libraries
Requires: lib%name = %version-%release
%description -n lib%name-gir
GObject introspection data for the nemo-extension library
%package -n lib%name-gir-devel
Summary: GObject introspection devel data for the nemo-extension library
Group: System/Libraries
BuildArch: noarch
Requires: lib%name-gir = %version-%release
%description -n lib%name-gir-devel
GObject introspection devel data for the nemo-extension library
%define _bonobo_servers_dir %_libdir/bonobo/servers
%prep
%setup -q
%patch0 -p1
rm -f data/*.desktop
# make check using xvfb-run
subst 's at \.\/ at xvfb-run -a ./ at ' eel/check-eel src/check-nemo
%build
%meson -D deprecated_warnings=false -D gtk_doc=false
%meson_build
%install
%meson_install
# The license
ln -sf %_licensedir/LGPL-2 COPYING
%files
%_bindir/*
%_libexecdir/nemo-convert-metadata
%_libexecdir/nemo-extensions-list
%_datadir/mime/packages/nemo.xml
%_datadir/applications/*.desktop
%_datadir/%name
%_iconsdir/hicolor/*/*/*
%_datadir/dbus-1/services/nemo.FileManager1.service
%_datadir/dbus-1/services/nemo.service
%_datadir/gtksourceview-2.0/language-specs/*.lang
%_datadir/gtksourceview-3.0/language-specs/*.lang
%_datadir/gtksourceview-4/language-specs/*.lang
%_datadir/polkit-1/actions/org.nemo.root.policy
# gsettings schemas
%config %_datadir/glib-2.0/schemas/org.nemo.gschema.xml
# docs
%doc --no-dereference COPYING
%doc AUTHORS NEWS README.md THANKS
%_man1dir/*
%files -n lib%name
%_libdir/libnemo-extension.so.*
%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*
%files -n lib%name-devel-doc
%doc docs/*.{txt,html}
%if_enabled introspection
%files -n lib%name-gir
%_libdir/girepository-1.0/*
%files -n lib%name-gir-devel
%_datadir/gir-1.0/*
%endif
%changelog
…
Полный changelog можно просмотреть здесь
%define ver_major 5.8
%def_enable exempi
%def_enable tracker
%def_enable introspection
%def_enable selinux
Name: nemo
Version: %ver_major.4
Release: alt1
Summary: default file manager for Cinnamon
License: GPLv2+
Group: Graphical desktop/GNOME
URL: https://github.com/linuxmint/nemo
Source: %name-%version.tar
Patch: %name-%version-%release.patch
Requires: %name-translations
Requires: xapps-icons
%define pkgconfig_ver 0.8
%define icon_theme_ver 2.10.0
%define desktop_file_utils_ver 0.8
%define glib_ver 2.31.9
%define desktop_ver 2.6.1
%define pango_ver 1.28.3
%define gtk_ver 3.9.10
%define libxml2_ver 2.7.8
%define exif_ver 0.6.20
%define exempi_ver 2.2.0
%define gir_ver 0.10.2
%define notify_ver 0.7.0
%define tracker_ver 0.16
Requires(pre): lib%name = %version-%release
Requires: gnome-icon-theme >= %icon_theme_ver
Requires: shared-mime-info
Requires: common-licenses
Requires: gvfs >= 1.9.1
BuildRequires(pre): meson rpm-build-gnome rpm-build-licenses rpm-build-gir rpm-build-python3
BuildPreReq: pkgconfig >= %pkgconfig_ver
BuildPreReq: desktop-file-utils >= %desktop_file_utils_ver
# for %%check
BuildRequires: xvfb-run dbus-tools-gui /proc
# From configure.in
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libgio-devel >= %glib_ver
BuildPreReq: libcinnamon-desktop-devel >= %desktop_ver
BuildPreReq: libpango-devel >= %pango_ver
BuildPreReq: libgtk+3-devel >= %gtk_ver
BuildPreReq: libgail3-devel
BuildPreReq: libxml2-devel >= %libxml2_ver
BuildPreReq: intltool >= 0.40.1
BuildPreReq: libexif-devel >= %exif_ver
BuildPreReq: libnotify-devel >= %notify_ver
BuildRequires: meson
BuildRequires: libX11-devel xorg-xproto-devel
BuildRequires: docbook-utils gtk-doc
BuildRequires: python3-module-polib python3-module-pygobject3
BuildRequires: libxapps-devel >= 1.0.4
%{?_enable_exempi:BuildPreReq: libexempi-devel >= %exempi_ver}
%{?_enable_tracker:BuildPreReq: tracker-devel >= %tracker_ver}
%{?_enable_introspection:BuildPreReq: gobject-introspection-devel >= %gir_ver libgtk+3-gir-devel}
%{?_enable_selinux:BuildRequires: libselinux-devel}
BuildRequires: libgsf-devel
%description
Nemo integrates access to files, applications, media, Internet-based
resources and the Web. Nemo delivers a dynamic and rich user
experience. Nemo is an free software project developed under the
GNU General Public License and is a core component of the Cinnamon desktop
project.
%package -n lib%name
Summary: Shared libraries needed to run Nemo
Group: System/Libraries
%description -n lib%name
This package contains shared libraries needed to run Nemo and its
components.
%package -n lib%name-devel
Summary: Libraries and include files for developing Nemo components
Group: Development/GNOME and GTK+
Requires: lib%name = %version-%release
%description -n lib%name-devel
This package provides the necessary development libraries and include
files to allow you to develop Nemo components.
%package -n lib%name-devel-doc
Summary: Development documentation for %name
Group: Development/Documentation
Conflicts: lib%name-devel < %version-%release
BuildArch: noarch
%description -n lib%name-devel-doc
This package contains development documentation for the %name.
%package -n lib%name-gir
Summary: GObject introspection data for the nemo-extension library
Group: System/Libraries
Requires: lib%name = %version-%release
%description -n lib%name-gir
GObject introspection data for the nemo-extension library
%package -n lib%name-gir-devel
Summary: GObject introspection devel data for the nemo-extension library
Group: System/Libraries
BuildArch: noarch
Requires: lib%name-gir = %version-%release
%description -n lib%name-gir-devel
GObject introspection devel data for the nemo-extension library
%define _bonobo_servers_dir %_libdir/bonobo/servers
%prep
%setup -q
%patch0 -p1
rm -f data/*.desktop
# make check using xvfb-run
subst 's at \.\/ at xvfb-run -a ./ at ' eel/check-eel src/check-nemo
%build
%meson -D deprecated_warnings=false -D gtk_doc=false
%meson_build
%install
%meson_install
# The license
ln -sf %_licensedir/LGPL-2 COPYING
%files
%_bindir/*
%_libexecdir/nemo-convert-metadata
%_libexecdir/nemo-extensions-list
%_datadir/mime/packages/nemo.xml
%_datadir/applications/*.desktop
%_datadir/%name
%_iconsdir/hicolor/*/*/*
%_datadir/dbus-1/services/nemo.FileManager1.service
%_datadir/dbus-1/services/nemo.service
%_datadir/gtksourceview-2.0/language-specs/*.lang
%_datadir/gtksourceview-3.0/language-specs/*.lang
%_datadir/gtksourceview-4/language-specs/*.lang
%_datadir/polkit-1/actions/org.nemo.root.policy
# gsettings schemas
%config %_datadir/glib-2.0/schemas/org.nemo.gschema.xml
# docs
%doc --no-dereference COPYING
%doc AUTHORS NEWS README.md THANKS
%_man1dir/*
%files -n lib%name
%_libdir/libnemo-extension.so.*
%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*
%files -n lib%name-devel-doc
%doc docs/*.{txt,html}
%if_enabled introspection
%files -n lib%name-gir
%_libdir/girepository-1.0/*
%files -n lib%name-gir-devel
%_datadir/gir-1.0/*
%endif
%changelog
…
Полный changelog можно просмотреть здесь