1b1b0d3
Name:           nemo
1b1b0d3
Summary:        File manager for Cinnamon
799162a
Version:        1.8.4
1e7bc2e
Release:        3%{?dist}
1b1b0d3
License:        GPLv2+ and LGPLv2+
1b1b0d3
Group:          User Interface/Desktops
4a53875
URL:            https://github.com/linuxmint/nemo
1b1b0d3
# To generate source
799162a
# wget https://github.com/linuxmint/nemo/tarball/%%{_internal_version} -O nemo-%%{version}.tar.gz
1b1b0d3
Source0:        http://leigh123linux.fedorapeople.org/pub/nemo/source/nemo-%{version}.tar.gz
9381d53
Source1:        nemo.css
9381d53
Source2:        gtk.css
9381d53
Source3:        gtk-dark.css
1b1b0d3
4a53875
Requires:       redhat-menus
4a53875
Requires:       gvfs
4a53875
Requires:       gnome-icon-theme
1b1b0d3
Requires:       gsettings-desktop-schemas
1b1b0d3
430649b
4a53875
BuildRequires:  gnome-common
4a53875
BuildRequires:  intltool
f480321
BuildRequires:  pkgconfig(gtk-doc)
4a53875
BuildRequires:  rarian-compat
4a53875
BuildRequires:  desktop-file-utils
4a53875
BuildRequires:  pkgconfig(glib-2.0)
4a53875
BuildRequires:  pkgconfig(pango)
4a53875
BuildRequires:  pkgconfig(gtk+-3.0)
4a53875
BuildRequires:  pkgconfig(libxml-2.0)
4a53875
BuildRequires:  pkgconfig(gnome-desktop-3.0)
4a53875
BuildRequires:  pkgconfig(x11)
4a53875
BuildRequires:  pkgconfig(sm)
4a53875
BuildRequires:  pkgconfig(libexif)
4a53875
BuildRequires:  pkgconfig(exempi-2.0)
4a53875
BuildRequires:  pkgconfig(libselinux)
4a53875
BuildRequires:  pkgconfig(gobject-introspection-1.0)
4a53875
BuildRequires:  pkgconfig(gsettings-desktop-schemas)
4a53875
BuildRequires:  pkgconfig(libnotify)
1b1b0d3
9381d53
# needed for theme subpackage
9381d53
BuildRequires:  gnome-themes-standard
9381d53
1b1b0d3
# the main binary links against libnemo-extension.so
1b1b0d3
# don't depend on soname, rather on exact version
1b1b0d3
Requires:       nemo-extensions%{?_isa} = %{version}-%{release}
1b1b0d3
1e7bc2e
Patch0:         remove_OpenAsRoot.patch
1e7bc2e
Patch1:         create_launcher.patch
7c30ac6
1b1b0d3
1b1b0d3
%description
1b1b0d3
Nemo is the file manager and graphical shell for the Cinnamon desktop
1b1b0d3
that makes it easy to manage your files and the rest of your system.
1b1b0d3
It allows to browse directories on local and remote filesystems, preview
1b1b0d3
files and launch applications associated with them.
1b1b0d3
It is also responsible for handling the icons on the Cinnamon desktop.
1b1b0d3
1b1b0d3
%package extensions
1b1b0d3
Summary: Nemo extensions library
1b1b0d3
License: LGPLv2+
1b1b0d3
Group: Development/Libraries
1b1b0d3
Requires:   %{name}%{?_isa} = %{version}-%{release}
1b1b0d3
1b1b0d3
%description extensions
1b1b0d3
This package provides the libraries used by nemo extensions.
1b1b0d3
1b1b0d3
%package devel
1b1b0d3
Summary: Support for developing nemo extensions
1b1b0d3
License: LGPLv2+
1b1b0d3
Group: Development/Libraries
1b1b0d3
Requires:   %{name}%{?_isa} = %{version}-%{release}
1b1b0d3
1b1b0d3
1b1b0d3
%description devel
1b1b0d3
This package provides libraries and header files needed
1b1b0d3
for developing nemo extensions.
1b1b0d3
9381d53
%package -n adwaita-nemo
9381d53
Summary: Nemo theme fix for Adwaita
9381d53
Group: User Interface/Desktops
9381d53
Buildarch: noarch
9381d53
Requires:  gnome-themes-standard
9381d53
9381d53
%description -n adwaita-nemo
9381d53
Nemo theme fix for Adwaita
9381d53
1b1b0d3
%prep
0a17277
%setup -q
a12b721
%patch0 -p1
7c30ac6
%patch1 -p1
4a53875
NOCONFIGURE=1 ./autogen.sh
1b1b0d3
1b1b0d3
%build
4a53875
%configure --disable-more-warnings \
4a53875
           --disable-update-mimedb \
4a53875
           --disable-schemas-compile
4a53875
           
1b1b0d3
1b1b0d3
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
1b1b0d3
1b1b0d3
make %{?_smp_mflags} V=1
1b1b0d3
1b1b0d3
%install
4a53875
make install DESTDIR=$RPM_BUILD_ROOT
1b1b0d3
1b1b0d3
desktop-file-install --delete-original       \
1b1b0d3
  --dir $RPM_BUILD_ROOT%{_datadir}/applications             \
1b1b0d3
  --add-only-show-in GNOME                                  \
1b1b0d3
  $RPM_BUILD_ROOT%{_datadir}/applications/*
1b1b0d3
4a53875
# create extensions directoy
4a53875
mkdir -p $RPM_BUILD_ROOT%{_libdir}/nemo/extensions-3.0/
1b1b0d3
1b1b0d3
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
1b1b0d3
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
1b1b0d3
rm -f $RPM_BUILD_ROOT%{_libdir}/nemo/extensions-3.0/*.la
1b1b0d3
rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
1b1b0d3
rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/.icon-theme.cache
1b1b0d3
9381d53
# theme
9381d53
mkdir -p $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/gtk-3.0/apps
9381d53
install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/gtk-3.0/apps/
9381d53
install -D -p -m 0644 %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/gtk-3.0/
9381d53
ln -s %{_datadir}/themes/Adwaita/backgrounds $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/
9381d53
ln -s %{_datadir}/themes/Adwaita/gtk-2.0 $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/
9381d53
ln -s %{_datadir}/themes/Adwaita/gtk-3.0/{gtk.gresource,settings.ini} $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/gtk-3.0/
9381d53
ln -s %{_datadir}/themes/Adwaita/metacity-1 $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/
9381d53
ln -s %{_datadir}/themes/Adwaita/index.theme $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/index.theme
9381d53
49ecc28
# autostart nemo in a kinder way so we don't offend our gnome overlords
49ecc28
mv $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/nemo-autostart.desktop $RPM_BUILD_ROOT%{_datadir}/applications/
49ecc28
1b1b0d3
%find_lang %name
1b1b0d3
1b1b0d3
%post
1b1b0d3
/sbin/ldconfig
430649b
/usr/bin/update-desktop-database &> /dev/null || :
1b1b0d3
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
1b1b0d3
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
1b1b0d3
1b1b0d3
%postun
1b1b0d3
/sbin/ldconfig
1b1b0d3
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
430649b
/usr/bin/update-desktop-database &> /dev/null || :
1b1b0d3
if [ $1 -eq 0 ]; then
1b1b0d3
  /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
1b1b0d3
  /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
1b1b0d3
  /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
1b1b0d3
fi
1b1b0d3
1b1b0d3
%posttrans
1b1b0d3
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
1b1b0d3
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
1b1b0d3
1b1b0d3
%post extensions -p /sbin/ldconfig
1b1b0d3
1b1b0d3
%postun extensions -p /sbin/ldconfig
1b1b0d3
1b1b0d3
%files  -f %{name}.lang
1b1b0d3
%doc AUTHORS COPYING COPYING-DOCS COPYING.LIB NEWS README
1b1b0d3
%{_datadir}/nemo/
1b1b0d3
%{_datadir}/applications/*
1b1b0d3
%{_datadir}/mime/packages/nemo.xml
1b1b0d3
%{_bindir}/*
1b1b0d3
%{_datadir}/icons/hicolor/*/apps/nemo.png
0a17277
%{_datadir}/icons/hicolor/*/actions/nemo-eject.png
4a53875
%{_datadir}/icons/hicolor/scalable/*/*.svg
1b1b0d3
%{_datadir}/dbus-1/services/org.Nemo.service
1b1b0d3
%{_mandir}/man1/nemo-connect-server.1.*
1b1b0d3
%{_mandir}/man1/nemo.1.*
799162a
%{_libexecdir}/nemo-convert-metadata
1b1b0d3
%{_datadir}/GConf/gsettings/nemo.convert
1b1b0d3
%{_datadir}/glib-2.0/schemas/org.nemo.gschema.xml
1b1b0d3
%dir %{_libdir}/nemo/extensions-3.0/
1b1b0d3
%{_datadir}/dbus-1/services/org.freedesktop.NemoFileManager1.service
0a17277
%{_datadir}/gtksourceview-?.0/language-specs/nemo_action.lang
1b1b0d3
1b1b0d3
%files extensions
1b1b0d3
%{_libdir}/libnemo-extension.so.*
1b1b0d3
%{_libdir}/girepository-1.0/*.typelib
1b1b0d3
%dir %{_libdir}/nemo
1b1b0d3
9381d53
%files -n adwaita-nemo
9381d53
%{_datadir}/themes/Adwaita-Nemo/
9381d53
1b1b0d3
%files devel
1b1b0d3
%{_includedir}/nemo/
1b1b0d3
%{_libdir}/pkgconfig/*
1b1b0d3
%{_libdir}/*.so
1b1b0d3
%{_datadir}/gir-1.0/*.gir
1b1b0d3
1b1b0d3
%changelog
1e7bc2e
* Wed Jul 24 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.4-3
1e7bc2e
- remove background patch as it breaks cinnamon next
1e7bc2e
7a7d26d
* Mon Jul 22 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.4-2
7a7d26d
- patch to fix create launcher
7a7d26d
799162a
* Wed Jul 10 2013 leigh scott <leigh123linux@googlemail.com> - 1.8.4-1
799162a
- Update to version 1.8.4
799162a
49ecc28
* Thu Jun 06 2013 leigh scott <leigh123linux@googlemail.com> - 1.8.2-3
49ecc28
- autostart nemo differently so we dont squash nautilus
49ecc28
7c30ac6
* Fri May 24 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.2-2
7c30ac6
- Patch to remove open as root
7c30ac6
a12b721
* Mon May 20 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.2-1
a12b721
- Update to version 1.8.2
a12b721
- Tidy up patches
a12b721
beaa426
* Sun May 12 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.1-2
beaa426
- add patch to stop nemo from drawing the desktop background
beaa426
0a17277
* Thu May 09 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.1-1
0a17277
- update to 1.8.1 release
0a17277
e0ba04c
* Sun Feb 24 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.1.2-4
e0ba04c
- Rebuilt for libgnome-desktop soname bump
d48b8ec
- Patch for gnome-desktop changes
e0ba04c
661548a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-3
661548a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
661548a
d69f8ad
* Fri Dec 21 2012 Kalev Lember <kalevlember@gmail.com> - 1.1.2-2
d69f8ad
- Rebuilt for libgnome-desktop-3 3.7.3 soname bump
d69f8ad
430649b
* Wed Nov 14 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.1.2-1
430649b
- update to 1.1.2 release
430649b
- add scriptlets for mimetype key
430649b
f480321
* Sat Nov 03 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.0.9-1
f480321
- update to 1.0.9 release
f480321
4a53875
* Sun Oct 28 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.0.7-1
4a53875
- update to 1.0.7 release
4a53875
- change build requires style
4a53875
- use autogen to prepare source
4a53875
- make directory for extensions
4a53875
9babfbd
* Sun Oct 21 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.0.5-2
9babfbd
- drop requires gksu-pokit
9babfbd
8eec786
* Sat Oct 20 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.0.5-1
8eec786
- update to 1.0.5 release
8eec786
- revert last commit
8eec786
6713b00
* Thu Oct 18 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.0.3-3
6713b00
- patch open as root and add requires gksu-pokit
6713b00
e0e00c1
* Mon Oct 08 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.0.3-2
e0e00c1
- remove requires gnome-terminal
e0e00c1
- patch to remove "open in terminal"
e0e00c1
a2d1db4
* Mon Oct 01 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.0.3-1
a2d1db4
- update to 1.0.3 release
a2d1db4
0434fda
* Thu Sep 27 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.0.2-1
0434fda
- update to 1.0.2 release
0434fda
- add requires gnome-terminal
0434fda
9381d53
* Tue Sep 25 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.0.1-5
9381d53
- add theme sub-package
9381d53
31bcde9
* Tue Sep 25 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.0.1-4
31bcde9
- remove "open as root" option
31bcde9
- fix "open terminal" option
31bcde9
1b1b0d3
* Tue Sep 25 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.0.1-3
1b1b0d3
- validate desktop file
1b1b0d3
1b1b0d3
* Tue Sep 25 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.0.1-2
1b1b0d3
- add ldconfig to extensions
1b1b0d3
- fix comment in macro
1b1b0d3
- fix macro-in-comment
1b1b0d3
- remove obsolete provides/obsoletes
1b1b0d3
- fix licence tag
1b1b0d3
1b1b0d3
* Fri Sep 21 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.0.1-1
1b1b0d3
- initial build based on nautilus spec file
1b1b0d3