From 1b1b0d3277b0593a8a877242da9773dca096d8a5 Mon Sep 17 00:00:00 2001 From: leigh123linux Date: Sep 25 2012 20:02:05 +0000 Subject: Initial import --- diff --git a/nemo.spec b/nemo.spec new file mode 100644 index 0000000..96bb469 --- /dev/null +++ b/nemo.spec @@ -0,0 +1,199 @@ +%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: 3%{?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 + +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 + +# the main binary links against libnemo-extension.so +# don't depend on soname, rather on exact version +Requires: nemo-extensions%{?_isa} = %{version}-%{release} + + +Patch0: rtl-fix.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. + +%prep +%setup -q -n linuxmint-%{name}-%{_internal_version} + + +%patch0 -p1 -b .rtl-fix + + +%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 + +%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 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 - 1.0.1-3 +- validate desktop file + +* Tue Sep 25 2012 Leigh Scott - 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 - 1.0.1-1 +- initial build based on nautilus spec file + 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