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

157 lines
4.4 KiB
RPMSpec

#
# spec file for package
#
# Copyright (c) 2012 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
%define _name libnemo-extension1
%define typelib typelib-1_0-Nemo-3_0
Version: 1.1.0
Release: 0
License: GPL-2.0+ and LGPL-2.0
Summary: Nemo, yet another file manager fork
Url: http://github.com/linuxmint/nemo
Group: System/GUI/Other
Source: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: hicolor-icon-theme
%glib2_gsettings_schema_requires
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: desktop-file-utils
BuildRequires: gnome-common
BuildRequires: hicolor-icon-theme
BuildRequires: libexempi-devel
BuildRequires: libexif-gtk-devel
BuildRequires: pkgconfig(dbus-1)
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(gtk+-3.0)
BuildRequires: pkgconfig(gsettings-desktop-schemas)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(x11)
BuildRequires: shared-mime-info
BuildRequires: xz
%description
This package provides Nemo, the default file manager application from
Cinnamon.
%package devel
Summary: Development files for %{name}-%{version}
Group: Development/Libraries/Other
Requires: %{name} = %{version}-%{release}
Requires: %{_name} = %{version}-%{release}
Requires: %{typelib} = %{version}-%{release}
%description devel
This package provides the development files from Nemo, the default file
manager from Cinnamon
%package -n %{_name}
Summary: Nemo extension shared libraries
Group: Development/Other
%description -n %{_name}
This package provides Nemo's shared libraries.
%package -n %{typelib}
Summary: Nemo extension shared libraries
Group: Development/Other
%description -n %{typelib}
This package provides Nemo's bindings, the default file manager
application from Cinnamon.
%lang_package
%prep
%setup -q
%build
NOCONFIGURE=1 ./autogen.sh
%configure \
--disable-static \
--libexecdir=%{_libexecdir}/%{name}
make %{?_smp_mflags}
%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
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 %{_name} -p /sbin/ldconfig
%postun
%icon_theme_cache_postun
%desktop_database_postun
%glib2_gsettings_schema_postun
%mime_database_postun
%postun -n %{_name} -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README COPYING
%dir %{_libexecdir}/nemo
%{_sysconfdir}/xdg/autostart/nemo-autostart.desktop
%{_bindir}/nemo
%{_bindir}/nemo-autorun-software
%{_libexecdir}/%{name}/nemo-convert-metadata
%{_bindir}/nemo-connect-server
%{_datadir}/GConf/gsettings/nemo.convert
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/*.service
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/mime/
%{_datadir}/nemo/
%{_mandir}/man1/*.1.gz
%files -n %{typelib}
%defattr(-,root,root,-)
%{_libdir}/girepository-1.0/Nemo-3.0.typelib
%files -n %{_name}
%defattr(-,root,root,-)
%{_libdir}/libnemo-extension.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/nemo/
%{_libdir}/*.so
%{_libdir}/pkgconfig/libnemo-extension.pc
%{_datadir}/gir-1.0/
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%changelog