[nemo/f17] add theme sub-package
leigh123linux
leigh123linux at fedoraproject.org
Wed Sep 26 13:20:34 UTC 2012
commit bc44a51ddc8f166e7a7b544b67865408411f8929
Author: leigh123linux <leigh123linux at googlemail.com>
Date: Wed Sep 26 14:20:31 2012 +0100
add theme sub-package
gtk-dark.css | 2 +
gtk.css | 2 +
nemo.css | 25 ++++++
nemo.spec | 238 +++++++++++++++++++++++++++++++++++++++++++++++++++
open_as_root.patch | 10 ++
open_terminal.patch | 11 +++
rtl-fix.patch | 84 ++++++++++++++++++
sources | 1 +
8 files changed, 373 insertions(+), 0 deletions(-)
---
diff --git a/gtk-dark.css b/gtk-dark.css
new file mode 100644
index 0000000..e054e71
--- /dev/null
+++ b/gtk-dark.css
@@ -0,0 +1,2 @@
+ at import url("resource:///org/gnome/adwaita/gtk-main-dark.css");
+ at import url("apps/nemo.css");
diff --git a/gtk.css b/gtk.css
new file mode 100644
index 0000000..1a1571c
--- /dev/null
+++ b/gtk.css
@@ -0,0 +1,2 @@
+ at import url("resource:///org/gnome/adwaita/gtk-main.css");
+ at import url("apps/nemo.css");
diff --git a/nemo.css b/nemo.css
new file mode 100644
index 0000000..276e12b
--- /dev/null
+++ b/nemo.css
@@ -0,0 +1,25 @@
+/* desktop mode */
+.nemo-desktop.nemo-canvas-item {
+ color: @bg_color;
+ text-shadow: 1 1 alpha (#000000, 0.8);
+}
+
+.nemo-desktop.nemo-canvas-item:active {
+ background-image: none;
+ background-color: alpha (@bg_color, 0.84);
+
+ color: @fg_color;
+}
+
+.nemo-desktop.nemo-canvas-item:selected {
+ background-image: none;
+ background-color: alpha (@selected_bg_color, 0.84);
+
+ color: @selected_fg_color;
+}
+
+.nemo-desktop.nemo-canvas-item:active,
+.nemo-desktop.nemo-canvas-item:prelight,
+.nemo-desktop.nemo-canvas-item:selected {
+ text-shadow: none;
+}
diff --git a/nemo.spec b/nemo.spec
new file mode 100644
index 0000000..20f6ccf
--- /dev/null
+++ b/nemo.spec
@@ -0,0 +1,238 @@
+%global _internal_version 5488070
+
+%global glib2_version 2.28.0
+%global pango_version 1.28
+%global gtk3_version 3.0.2
+%global gnome_icon_theme_version 1.1.5
+%global libxml2_version 2.4.20
+%global desktop_file_utils_version 0.7
+%global gnome_desktop3_version 2.91.4
+%global redhat_menus_version 0.25
+%global libexif_version 0.5.12
+%global exempi_version 1.99.5
+%global gobject_introspection_version 0.9.5
+
+Name: nemo
+Summary: File manager for Cinnamon
+Version: 1.0.1
+Release: 5%{?dist}
+License: GPLv2+ and LGPLv2+
+Group: User Interface/Desktops
+# To generate source
+# wget https://github.com/linuxmint/nemo/tarball/%%{_internal_version} -O nemo-%%{version}.git%%{_internal_version}.tar.gz
+Source0: http://leigh123linux.fedorapeople.org/pub/nemo/source/nemo-%{version}.tar.gz
+Source1: nemo.css
+Source2: gtk.css
+Source3: gtk-dark.css
+
+URL: https://github.com/linuxmint/nemo
+Requires: redhat-menus >= %{redhat_menus_version}
+Requires: gvfs >= 1.4.0
+Requires: gnome-icon-theme >= %{gnome_icon_theme_version}
+Requires: libexif >= %{libexif_version}
+Requires: gsettings-desktop-schemas
+
+BuildRequires: glib2-devel >= %{glib2_version}
+BuildRequires: pango-devel >= %{pango_version}
+BuildRequires: gtk3-devel >= %{gtk3_version}
+BuildRequires: libxml2-devel >= %{libxml2_version}
+BuildRequires: gnome-desktop3-devel >= %{gnome_desktop3_version}
+BuildRequires: intltool >= 0.40.6-2
+BuildRequires: libX11-devel
+BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
+BuildRequires: libSM-devel
+BuildRequires: libtool >= 1.4.2-10
+BuildRequires: libexif-devel >= %{libexif_version}
+BuildRequires: exempi-devel >= %{exempi_version}
+BuildRequires: gettext
+BuildRequires: libselinux-devel
+BuildRequires: gtk-doc
+BuildRequires: scrollkeeper
+BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version}
+BuildRequires: gsettings-desktop-schemas-devel
+BuildRequires: libnotify-devel
+
+# needed for theme subpackage
+BuildRequires: gnome-themes-standard
+
+# the main binary links against libnemo-extension.so
+# don't depend on soname, rather on exact version
+Requires: nemo-extensions%{?_isa} = %{version}-%{release}
+Requires: adwaita-nemo
+
+
+Patch0: rtl-fix.patch
+Patch1: open_as_root.patch
+Patch2: open_terminal.patch
+
+
+%description
+Nemo is the file manager and graphical shell for the Cinnamon desktop
+that makes it easy to manage your files and the rest of your system.
+It allows to browse directories on local and remote filesystems, preview
+files and launch applications associated with them.
+It is also responsible for handling the icons on the Cinnamon desktop.
+
+%package extensions
+Summary: Nemo extensions library
+License: LGPLv2+
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description extensions
+This package provides the libraries used by nemo extensions.
+
+%package devel
+Summary: Support for developing nemo extensions
+License: LGPLv2+
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+
+%description devel
+This package provides libraries and header files needed
+for developing nemo extensions.
+
+%package -n adwaita-nemo
+Summary: Nemo theme fix for Adwaita
+Group: User Interface/Desktops
+Buildarch: noarch
+Requires: gnome-themes-standard
+
+%description -n adwaita-nemo
+Nemo theme fix for Adwaita
+
+%prep
+%setup -q -n linuxmint-%{name}-%{_internal_version}
+
+
+%patch0 -p1 -b .rtl-fix
+%patch1 -p1
+%patch2 -p1
+
+
+%build
+
+gtkdocize
+libtoolize
+aclocal -I m4
+autoconf
+autoheader
+automake
+
+CFLAGS="$RPM_OPT_FLAGS -g -DNEMO_OMIT_SELF_CHECK" %configure --disable-more-warnings --disable-update-mimedb
+
+# drop unneeded direct library deps with --as-needed
+# libtool doesn't make this easy, so we do it the hard way
+sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
+
+export tagname=CC
+make %{?_smp_mflags} V=1
+
+%install
+export tagname=CC
+make install DESTDIR=$RPM_BUILD_ROOT LIBTOOL=/usr/bin/libtool
+
+desktop-file-install --delete-original \
+ --dir $RPM_BUILD_ROOT%{_datadir}/applications \
+ --add-only-show-in GNOME \
+ $RPM_BUILD_ROOT%{_datadir}/applications/*
+
+desktop-file-validate $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/nemo-autostart.desktop || :
+
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
+rm -f $RPM_BUILD_ROOT%{_libdir}/nemo/extensions-3.0/*.la
+rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
+rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/.icon-theme.cache
+
+# theme
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/gtk-3.0/apps
+install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/gtk-3.0/apps/
+install -D -p -m 0644 %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/gtk-3.0/
+ln -s %{_datadir}/themes/Adwaita/backgrounds $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/
+ln -s %{_datadir}/themes/Adwaita/gtk-2.0 $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/
+ln -s %{_datadir}/themes/Adwaita/gtk-3.0/{gtk.gresource,settings.ini} $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/gtk-3.0/
+ln -s %{_datadir}/themes/Adwaita/metacity-1 $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/
+ln -s %{_datadir}/themes/Adwaita/index.theme $RPM_BUILD_ROOT%{_datadir}/themes/Adwaita-Nemo/index.theme
+
+%find_lang %name
+
+%post
+/sbin/ldconfig
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
+
+%postun
+/sbin/ldconfig
+/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
+if [ $1 -eq 0 ]; then
+ /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
+ /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+
+%post extensions -p /sbin/ldconfig
+
+%postun extensions -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%doc AUTHORS COPYING COPYING-DOCS COPYING.LIB NEWS README
+%{_datadir}/nemo/
+%{_datadir}/applications/*
+%{_datadir}/mime/packages/nemo.xml
+%{_bindir}/*
+%{_datadir}/icons/hicolor/*/apps/nemo.png
+%{_datadir}/icons/hicolor/scalable/apps/nemo.svg
+%{_datadir}/dbus-1/services/org.Nemo.service
+%{_mandir}/man1/nemo-connect-server.1.*
+%{_mandir}/man1/nemo.1.*
+%{_libexecdir}/nemo-convert-metadata/
+%{_datadir}/GConf/gsettings/nemo.convert
+%{_datadir}/glib-2.0/schemas/org.nemo.gschema.xml
+%dir %{_libdir}/nemo/extensions-3.0/
+%{_libdir}/nemo/extensions-3.0/libnemo-sendto.so
+%{_sysconfdir}/xdg/autostart/nemo-autostart.desktop
+%{_datadir}/dbus-1/services/org.freedesktop.NemoFileManager1.service
+
+%files extensions
+%{_libdir}/libnemo-extension.so.*
+%{_libdir}/girepository-1.0/*.typelib
+%dir %{_libdir}/nemo
+
+%files -n adwaita-nemo
+%{_datadir}/themes/Adwaita-Nemo/
+
+%files devel
+%{_includedir}/nemo/
+%{_libdir}/pkgconfig/*
+%{_libdir}/*.so
+%{_datadir}/gir-1.0/*.gir
+%doc %{_datadir}/gtk-doc/html/libnemo-extension/*
+
+%changelog
+* Tue Sep 25 2012 Leigh Scott <leigh123linux at googlemail.com> - 1.0.1-5
+- add theme sub-package
+
+* Tue Sep 25 2012 Leigh Scott <leigh123linux at googlemail.com> - 1.0.1-4
+- remove "open as root" option
+- fix "open terminal" option
+
+* Tue Sep 25 2012 Leigh Scott <leigh123linux at googlemail.com> - 1.0.1-3
+- validate desktop file
+
+* Tue Sep 25 2012 Leigh Scott <leigh123linux at googlemail.com> - 1.0.1-2
+- add ldconfig to extensions
+- fix comment in macro
+- fix macro-in-comment
+- remove obsolete provides/obsoletes
+- fix licence tag
+
+* Fri Sep 21 2012 Leigh Scott <leigh123linux at googlemail.com> - 1.0.1-1
+- initial build based on nautilus spec file
+
diff --git a/open_as_root.patch b/open_as_root.patch
new file mode 100644
index 0000000..ca0a8a5
--- /dev/null
+++ b/open_as_root.patch
@@ -0,0 +1,10 @@
+--- a/src/nemo-directory-view-ui.xml
++++ b/src/nemo-directory-view-ui.xml
+@@ -178,7 +178,6 @@
+ </placeholder>
+ <separator name="Advanced separator"/>
+ <menuitem name="OpenInTerminal" action="OpenInTerminal"/>
+- <menuitem name="OpenAsRoot" action="OpenAsRoot"/>
+ <separator name="Dangerous separator"/>
+ <placeholder name="Dangerous File Actions">
+ <menuitem name="Trash" action="Trash"/>
diff --git a/open_terminal.patch b/open_terminal.patch
new file mode 100644
index 0000000..0d1a492
--- /dev/null
+++ b/open_terminal.patch
@@ -0,0 +1,11 @@
+--- a/src/nemo-view.c
++++ b/src/nemo-view.c
+@@ -6071,7 +6071,7 @@ static void
+ open_in_terminal (gchar *location)
+ {
+ gchar *argv[2];
+- argv[0] = "x-terminal-emulator";
++ argv[0] = "gnome-terminal";
+ argv[1] = NULL;
+ g_spawn_async(location, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL);
+ }
diff --git a/rtl-fix.patch b/rtl-fix.patch
new file mode 100644
index 0000000..3c2ef62
--- /dev/null
+++ b/rtl-fix.patch
@@ -0,0 +1,84 @@
+diff -up nemo-2.23.90/libnemo-private/nemo-icon-container.c.rtl-fix nemo-2.23.90/libnemo-private/nemo-icon-container.c
+--- nemo-2.23.90/libnemo-private/nemo-icon-container.c.rtl-fix 2008-08-18 19:04:40.000000000 -0400
++++ nemo-2.23.90/libnemo-private/nemo-icon-container.c 2008-08-23 10:33:53.000000000 -0400
+@@ -8923,40 +8923,6 @@ nemo_icon_container_accessible_get_t
+ return type;
+ }
+
+-#if ! defined (NEMO_OMIT_SELF_CHECK)
+-
+-static char *
+-check_compute_stretch (int icon_x, int icon_y, int icon_size,
+- int start_pointer_x, int start_pointer_y,
+- int end_pointer_x, int end_pointer_y)
+-{
+- StretchState start, current;
+-
+- start.icon_x = icon_x;
+- start.icon_y = icon_y;
+- start.icon_size = icon_size;
+- start.pointer_x = start_pointer_x;
+- start.pointer_y = start_pointer_y;
+- current.pointer_x = end_pointer_x;
+- current.pointer_y = end_pointer_y;
+-
+- compute_stretch (&start, ¤t);
+-
+- return g_strdup_printf ("%d,%d:%d",
+- current.icon_x,
+- current.icon_y,
+- current.icon_size);
+-}
+-
+-void
+-nemo_self_check_icon_container (void)
+-{
+- EEL_CHECK_STRING_RESULT (check_compute_stretch (0, 0, 16, 0, 0, 0, 0), "0,0:16");
+- EEL_CHECK_STRING_RESULT (check_compute_stretch (0, 0, 16, 16, 16, 17, 17), "0,0:17");
+- EEL_CHECK_STRING_RESULT (check_compute_stretch (0, 0, 16, 16, 16, 17, 16), "0,0:16");
+- EEL_CHECK_STRING_RESULT (check_compute_stretch (100, 100, 64, 105, 105, 40, 40), "35,35:129");
+-}
+-
+ gboolean
+ nemo_icon_container_is_layout_rtl (NemoIconContainer *container)
+ {
+@@ -8994,4 +8960,39 @@ nemo_icon_container_get_layout_heigh
+ }
+
+
++#if ! defined (NEMO_OMIT_SELF_CHECK)
++
++static char *
++check_compute_stretch (int icon_x, int icon_y, int icon_size,
++ int start_pointer_x, int start_pointer_y,
++ int end_pointer_x, int end_pointer_y)
++{
++ StretchState start, current;
++
++ start.icon_x = icon_x;
++ start.icon_y = icon_y;
++ start.icon_size = icon_size;
++ start.pointer_x = start_pointer_x;
++ start.pointer_y = start_pointer_y;
++ current.pointer_x = end_pointer_x;
++ current.pointer_y = end_pointer_y;
++
++ compute_stretch (&start, ¤t);
++
++ return g_strdup_printf ("%d,%d:%d",
++ current.icon_x,
++ current.icon_y,
++ current.icon_size);
++}
++
++void
++nemo_self_check_icon_container (void)
++{
++ EEL_CHECK_STRING_RESULT (check_compute_stretch (0, 0, 16, 0, 0, 0, 0), "0,0:16");
++ EEL_CHECK_STRING_RESULT (check_compute_stretch (0, 0, 16, 16, 16, 17, 17), "0,0:17");
++ EEL_CHECK_STRING_RESULT (check_compute_stretch (0, 0, 16, 16, 16, 17, 16), "0,0:16");
++ EEL_CHECK_STRING_RESULT (check_compute_stretch (100, 100, 64, 105, 105, 40, 40), "35,35:129");
++}
++
++
+ #endif /* ! NEMO_OMIT_SELF_CHECK */
diff --git a/sources b/sources
index e69de29..2b3f0ee 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+32f444f152d11eeea459a33f41f5cafa nemo-1.0.1.tar.gz
More information about the scm-commits
mailing list