From 00c5b101d37600e1ba888eb1bae203ff1c0c9ce6 Mon Sep 17 00:00:00 2001 From: Pat Riehecky Date: Nov 29 2018 21:22:36 +0000 Subject: Revived per https://pagure.io/releng/issue/7938 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5b8c512 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/nemo-extensions-*.tar.gz +/nemo-extensions-*.src.rpmz diff --git a/dead.package b/dead.package deleted file mode 100644 index 1ac3aa0..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Not enough time to maintain diff --git a/fix_typelib_version.patch b/fix_typelib_version.patch new file mode 100644 index 0000000..05bd4e6 --- /dev/null +++ b/fix_typelib_version.patch @@ -0,0 +1,42 @@ +From 52767dc75260935fc4c6a62f1b94c8c3798e5110 Mon Sep 17 00:00:00 2001 +From: Michael Webster +Date: Mon, 11 Dec 2017 22:48:37 -0500 +Subject: [PATCH] nemo-preview: Update versioning of xreader libs and + introspection. + +(see linuxmint/xreader@7ed343858f32a2) +--- + nemo-preview/configure.ac | 4 ++-- + nemo-preview/src/Makefile-nemo-preview.am | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/nemo-preview/configure.ac b/nemo-preview/configure.ac +index b483cbe..f4db94d 100644 +--- a/nemo-preview/configure.ac ++++ b/nemo-preview/configure.ac +@@ -69,8 +69,8 @@ PKG_CHECK_MODULES(NEMO_PREVIEW, + gstreamer-pbutils-1.0 + gstreamer-tag-1.0 + libmusicbrainz5 +- xreader-document-1.5.0 +- xreader-view-1.5.0 ++ xreader-document-1.5 ++ xreader-view-1.5 + gtksourceview-3.0 + webkit2gtk-4.0) + +diff --git a/nemo-preview/src/Makefile-nemo-preview.am b/nemo-preview/src/Makefile-nemo-preview.am +index f19d443..bbc350f 100644 +--- a/nemo-preview/src/Makefile-nemo-preview.am ++++ b/nemo-preview/src/Makefile-nemo-preview.am +@@ -103,8 +103,8 @@ NemoPreview_1_0_gir_INCLUDES = \ + GstTag-1.0 \ + GdkPixbuf-2.0 \ + Gtk-3.0 \ +- XreaderDocument-1.5.0 \ +- XreaderView-1.5.0 \ ++ XreaderDocument-1.5 \ ++ XreaderView-1.5 \ + GtkSource-3.0 + + NemoPreview_1_0_gir_FILES = \ diff --git a/nemo-extensions.spec b/nemo-extensions.spec new file mode 100644 index 0000000..a563a23 --- /dev/null +++ b/nemo-extensions.spec @@ -0,0 +1,488 @@ +Name: nemo-extensions +Version: 3.6.0 +Release: 3%{?dist} +Summary: Extensions for Nemo + +License: GPLv2+ and LGPLv2 +URL: https://github.com/linuxmint/ +Source0: %url/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: %url/%{name}/commit/52767dc75260935fc4c6a62f1b94c8c3798e5110.patch#/fix_typelib_version.patch + +BuildRequires: pkgconfig(libnemo-extension) +%if 0%{?fedora} +BuildRequires: python2-distutils-extra +%else +BuildRequires: python-distutils-extra +%endif +BuildRequires: python2-devel +BuildRequires: pkgconfig(pygobject-2.0) +BuildRequires: pkgconfig(pygobject-3.0) +BuildRequires: gnome-common +BuildRequires: intltool +BuildRequires: pkgconfig(gtk-doc) +BuildRequires: pkgconfig(libnotify) +BuildRequires: pkgconfig(cjs-1.0) >= 3.4.0 +BuildRequires: pkgconfig(xreader-view-1.5) +BuildRequires: pkgconfig(libmusicbrainz5) +BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) +%if 0%{?fedora} || 0%{?rhel} >= 7 +BuildRequires: pkgconfig(webkit2gtk-4.0) +%else +BuildRequires: pkgconfig(webkitgtk-3.0) +%endif +BuildRequires: pkgconfig(clutter-gtk-1.0) +BuildRequires: pkgconfig(clutter-gst-3.0) +BuildRequires: pkgconfig(gtksourceview-3.0) +BuildRequires: perl(XML::Parser) + +%description +Extensions for Nemo + +%if 0%{?fedora} +%package -n nemo-pastebin +Summary: Pastebin extension for Nemo +License: GPLv2+ +BuildArch: noarch +Requires: pastebinit +Requires: nemo-python + +%description -n nemo-pastebin +nemo-pastebin is an extension for the Nemo file manager, which allows +users to send files to pastebins just a right-click away. +%endif + +%package -n nemo-fileroller +Summary: File Roller extension for Nemo +License: GPLv2+ +Requires: file-roller + +%description -n nemo-fileroller +This package contains the file-roller extension for the Nemo. + +%package -n nemo-python +Summary: Python bindings for Nemo +License: GPLv2+ +Requires: nemo >= 3.6.0 +Requires: pygobject3-base +Obsoletes: nemo-rabbitvcs + +%description -n nemo-python +Python bindings for Nemo + +%package -n nemo-python-devel +Summary: Python bindings for Nemo +License: GPLv2+ +Requires: nemo-python = %{version}-%{release} + +%description -n nemo-python-devel +Python bindings for Nemo + +%package -n nemo-terminal +Summary: Embedded terminal window for Nemo +License: GPLv3+ +BuildArch: noarch +Requires: vte291 +Requires: nemo-python + +%description -n nemo-terminal +Embedded terminal window for Nemo + +%package -n nemo-preview +Summary: A quick previewer for Nemo +License: GPLv2+ +Requires: nemo + +%description -n nemo-preview +Nemo Preview is a GtkClutter and Javascript-based quick previewer +for Nemo. +It is capable of previewing documents, PDFs, sound and video files, +some text files, and possibly others in the future. + +To activate the preview, left-click the file and hit space. +The preview can be closed by hitting space again, or escape. + +%package -n nemo-emblems +Summary: Emblem support for nemo +License: GPLv3+ +BuildArch: noarch +Requires: nemo-python + +%description -n nemo-emblems +Restores the emblems functionality that used to be in GNOME 2. + +%package -n nemo-image-converter +Summary: Nemo extension to mass resize images +Requires: ImageMagick +License: GPLv3+ + +%description -n nemo-image-converter +Adds a "Resize Images..." menu item to the context menu. This opens a dialog where you set the desired image size and file name. + +%package -n nemo-compare +Summary: Context menu comparison extension for nemo +License: GPLv3+ +BuildArch: noarch +Requires: nemo-python +Requires: meld +Requires: pyxdg +Requires: pygtk2 + +%description -n nemo-compare +Context menu comparison extension for Nemo file manager. + +%prep +%autosetup -p1 + +# Make sure we explicitly use Python 2. +for f in $(%{__grep} -Rl '#!.*python$') ; do + %{__sed} -e 's~#!.*python$~#!%{__python2}~g' < ${f} > ${f}.new + /bin/touch -r ${f}.new ${f} + mode="$(%{_bindir}/stat -c '%a' ${f})" + %{__mv} -f ${f}.new ${f} + %{__chmod} -c ${mode} ${f} +done + +%build +%if 0%{?fedora} +pushd nemo-pastebin +%py2_build +popd +%endif + +pushd nemo-fileroller +NOCONFIGURE=1 ./autogen.sh +%configure +%make_build V=1 +popd + +pushd nemo-python +mv configure.in configure.ac +NOCONFIGURE=1 ./autogen.sh +%configure +%make_build V=1 +popd + +pushd nemo-preview +NOCONFIGURE=1 ./autogen.sh +intltoolize -f +%configure +%make_build V=1 +popd + +pushd nemo-image-converter +NOCONFIGURE=1 gnome-autogen.sh +%configure +%make_build V=1 +popd + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}/%{_datadir}/nemo-python/extensions/ +%if 0%{?fedora} +pushd nemo-pastebin +%py2_install +mv %{buildroot}/%{_bindir}/nemo-pastebin.py %{buildroot}/%{_datadir}/nemo-python/extensions/ +mv %{buildroot}/%{_bindir}/nemo-pastebin-configurator.py %{buildroot}/%{_bindir}/nemo-pastebin-configurator +popd +%endif + +pushd nemo-fileroller +%make_install +popd + +pushd nemo-python +%make_install +popd + +pushd nemo-terminal +mkdir %{buildroot}/%{_datadir}/nemo-terminal +%if 0%{?rhel} +mkdir -p %{buildroot}/%{_datadir}/glib-2.0/schemas/ +%endif +install -pm 0644 src/nemo_terminal.py %{buildroot}/%{_datadir}/nemo-python/extensions/ +install -pm 0644 src/org.nemo.extensions.nemo-terminal.gschema.xml %{buildroot}/%{_datadir}/glib-2.0/schemas/ +install -pm 0644 pixmap/logo_120x120.png %{buildroot}/%{_datadir}/nemo-terminal +popd + +pushd nemo-preview +%make_install +popd + +pushd nemo-emblems +install -pm 0644 nemo-extension/nemo-emblems.py %{buildroot}/%{_datadir}/nemo-python/extensions/ +chmod -x COPYING.GPL3 +popd + +pushd nemo-image-converter +%make_install +popd + +pushd nemo-compare +install -pm 0644 src/{nemo-compare,utils}.py %{buildroot}/%{_datadir}/nemo-python/extensions/ +install -pm 0755 src/nemo-compare-preferences.py %{buildroot}/%{_datadir}/nemo-python/extensions/ +mkdir -p %{buildroot}/%{_bindir}/ +ln -s %{_datadir}/nemo-python/extensions/nemo-compare-preferences.py %{buildroot}/%{_bindir}/nemo-compare-preferences +popd + +# remove useless libtool archive files +rm %{buildroot}/%{_libdir}/nemo/extensions-3.0/libnemo-*.la +rm %{buildroot}/%{_libdir}/nemo/extensions-3.0/libnemo-*.a +rm %{buildroot}/%{_libdir}/nemo-preview/libnemo-preview-1.0.la + + +%if (0%{?rhel} && 0%{?rhel} <= 7) +mv -f %{buildroot}/%{_datadir}/doc/nemo-python/ %{buildroot}/%{_datadir}/doc/nemo-python-%{version}/ +%endif + +%find_lang nemo-preview + + +%if (0%{?rhel} && 0%{?rhel <= 7}) +%postun -n nemo-terminal +if [ $1 -eq 0 ] ; then + /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : +fi + + +%posttrans -n nemo-terminal +/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : +%endif # (0%%{?rhel} && 0%%{?rhel <= 7}) + + +%if 0%{?fedora} +%files -n nemo-pastebin +%doc nemo-pastebin/README +%doc nemo-pastebin/NEWS +%license nemo-pastebin/COPYING +%{_bindir}/nemo-pastebin-configurator +%{_datadir}/nemo-python/extensions/nemo-pastebin.py* +%{python_sitelib}/nemo_pastebin-%{version}-py?.?.egg-info +%{_datadir}/glib-2.0/schemas/nemo-pastebin.gschema.xml +%{_datadir}/nemo-pastebin/ +%{_datadir}/pixmaps/nemo-pastebin.svg +%endif + +%files -n nemo-fileroller +%doc nemo-fileroller/README +%license nemo-fileroller/COPYING +%{_libdir}/nemo/extensions-3.0/libnemo-fileroller.so + +%files -n nemo-python +%doc nemo-python/README +%doc nemo-python/examples +%license nemo-python/COPYING +%{_libdir}/nemo/extensions-3.0/libnemo-python.so +%{_datadir}/nemo-python/ +%exclude %{_datadir}/nemo-python/extensions/* + +%files -n nemo-python-devel +%{_libdir}/pkgconfig/nemo-python.pc + +%files -n nemo-terminal +%doc nemo-terminal/README +%license nemo-terminal/COPYING +%{_datadir}/nemo-python/extensions/nemo_terminal.py* +%{_datadir}/nemo-terminal/ +%{_datadir}/glib-2.0/schemas/org.nemo.extensions.nemo-terminal.gschema.xml + +%files -n nemo-preview -f nemo-preview.lang +%doc nemo-preview/README +%license nemo-preview/COPYING +%{_bindir}/nemo-preview +%{_libdir}/nemo-preview/ +%{_libexecdir}/nemo-preview-start +%{_datadir}/nemo-preview/ +%{_datadir}/dbus-1/services/org.nemo.Preview.service + +%files -n nemo-emblems +%license nemo-emblems/COPYING.GPL3 +%{_datadir}/nemo-python/extensions/nemo-emblems.py* + +%files -n nemo-image-converter +%doc nemo-image-converter/README +%license nemo-image-converter/COPYING +%{_libdir}/nemo/extensions-3.0/libnemo-image-converter.so +%{_datadir}/nemo-image-converter/ + +%files -n nemo-compare +%{_bindir}/nemo-compare-preferences +%{_datadir}/nemo-python/extensions/nemo-compare.py* +%{_datadir}/nemo-python/extensions/nemo-compare-preferences.py* +%{_datadir}/nemo-python/extensions/utils.py* + +%changelog +* Thu Nov 29 2018 Pat Riehecky - 3.6.0-3 +- Return to EPEL7 + +* Tue Dec 12 2017 Leigh Scott - 3.6.0-2 +- Fix typelib issue + +* Tue Oct 24 2017 Leigh Scott - 3.6.0-1 +- update to 3.6.0 release + +* Sun Sep 03 2017 Björn Esser - 3.4.0-9 +- Fix build + +* Sun Sep 03 2017 Björn Esser - 3.4.0-8 +- Use proper Python macros + +* Sun Sep 03 2017 Björn Esser - 3.4.0-7 +- Make sure we explicitly use Python 2 + +* Sun Sep 03 2017 Björn Esser - 3.4.0-6 +- Adaptions for EPEL + +* Thu Aug 03 2017 Fedora Release Engineering - 3.4.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 3.4.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Jun 09 2017 Leigh Scott - 3.4.0-3 +- add upstream fixes + +* Wed May 31 2017 Leigh Scott - 3.4.0-2 +- add upstream fixes + +* Thu May 04 2017 Leigh Scott - 3.4.0-1 +- update to 3.4.0 release + +* Fri Feb 10 2017 Fedora Release Engineering - 3.2.1-0.2.20170131gitbefdb82 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Jan 31 2017 Leigh Scott - 3.2.1-0.1.20170131gitbefdb82 +- update to latest git + +* Mon Nov 28 2016 leigh scott - 3.2.0-2 +- fix error on nemo-compare plugin name + +* Mon Nov 07 2016 Leigh Scott - 3.2.0-1 +- update to 3.2.0 release + +* Fri Jun 24 2016 Leigh Scott - 3.0.0-2 +- add upstream patches + +* Sun Apr 24 2016 Leigh Scott - 3.0.0-1 +- update to 3.0.0 release + +* Sun Apr 10 2016 Leigh Scott - 2.8.x-10 +- fix nemo-compare (bz 1323041) +- obsolete nemo-rabbitvcs + +* Mon Mar 07 2016 Leigh Scott - 2.8.x-9 +- more epel7 fixes + +* Mon Mar 07 2016 Leigh Scott - 2.8.x-8 +- fix epel7 build + +* Sat Mar 05 2016 Leigh Scott - 2.8.x-7 +- fix nemo-rabbitvcs + +* Thu Feb 04 2016 Fedora Release Engineering - 2.8.x-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Dec 29 2015 Leigh Scott - 2.8.x-5 +- switch to more secure webkit version + +* Fri Dec 04 2015 Leigh Scott - 2.8.x-4 +- another friggin build fix for epel + +* Fri Dec 04 2015 Leigh Scott - 2.8.x-3 +- remove pastebin and rabbitvcs extensions for epel + +* Tue Nov 10 2015 Leigh Scott - 2.8.x-2 +- rebuilt + +* Thu Oct 22 2015 Leigh Scott - 2.8.x-1 +- update to 2.8.0 release + +* Sat Jul 25 2015 Leigh Scott - 2.6.x-5 +- build fixes + +* Sat Jul 25 2015 Leigh Scott - 2.6.x-4 +- add nemo-compare + +* Mon Jul 13 2015 Leigh Scott - 2.6.x-3 +- fix cd (nemo-terminal) + +* Wed Jun 17 2015 Fedora Release Engineering - 2.6.x-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Jun 02 2015 Leigh Scott - 2.6.x-1 +- update to 2.6.x + +* Thu Nov 27 2014 Haïkel Guémar - 2.4.x-3 +- Rebuilt against newer libmusicbrainz5 (required for nemo-preview) + +* Thu Nov 13 2014 Leigh Scott - 2.4.x-2 +- change requires on nemo-terminal to vte3 +- add patch to fix nemo-terminal + +* Sat Nov 01 2014 Leigh Scott - 2.4.x-1 +- update to 2.4.x + +* Tue Oct 21 2014 Leigh Scott - 2.3.x-0.2.gited31dbd +- add noarch + +* Tue Oct 21 2014 Leigh Scott - 2.3.x-0.1.gited31dbd +- update to latest git +- add nemo-emblems +- add nemo-image-converter + +* Sun Oct 19 2014 Leigh Scott - 2.2.x-6 +- patch nemo-preview for gjs changes (bz 1154111) + +* Wed Oct 01 2014 Leigh Scott - 2.2.x-5 +- rebuilt + +* Sun Aug 17 2014 Fedora Release Engineering - 2.2.x-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Tue Jul 22 2014 Kalev Lember - 2.2.x-3 +- Rebuilt for gobject-introspection 1.41.4 + +* Sat Jun 07 2014 Fedora Release Engineering - 2.2.x-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Apr 14 2014 Leigh Scott - 2.2.x-1 +- update to 2.2.x + +* Thu Feb 20 2014 Kalev Lember - 2.0.0-0.6.git6c86726 +- Rebuilt for cogl soname bump + +* Mon Feb 10 2014 Peter Hutterer - 2.0.0-0.5.git6c86726 +- Rebuild for libevdev soname bump + +* Fri Feb 07 2014 Leigh Scott - 2.0.0-0.4.git6c86726 +- rebuilt for new cogl .so version + +* Sat Nov 23 2013 Leigh Scott - 2.0.0-0.3.git6c86726 +- add requires python-simplejson to nemo-rabbitvcs + +* Sat Nov 23 2013 Leigh Scott - 2.0.0-0.2.git6c86726 +- add nemo-preview extension + +* Thu Oct 31 2013 Leigh Scott - 2.0.0-0.1.gitfd3cc88 +- update to latest git +- add nemo-terminal extension + +* Sun Oct 20 2013 Leigh Scott - 1.8.0-0.6.git3e366de +- remove the seahorse extension because + it's broken and conflicts with seahorse-nautilus + (can't be bothered to fix it) + +* Tue Oct 08 2013 Leigh Scott - 1.8.0-0.5.git3e366de +- add nemo-rabbitvcs sub-package + +* Tue Sep 24 2013 Leigh Scott - 1.8.0-0.4.git3e366de +- clean up nemo-pastebin install + +* Tue Sep 24 2013 Leigh Scott - 1.8.0-0.3.git3e366de +- fix files listed twice + +* Tue Sep 24 2013 Leigh Scott - 1.8.0-0.2.git3e366de +- fix nemo-pastebin +- add python extensions directory + +* Tue Sep 24 2013 Leigh Scott - 1.8.0-0.1.git3e366de +- Initial build diff --git a/sources b/sources new file mode 100644 index 0000000..569cd6f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (nemo-extensions-3.6.0.tar.gz) = f016594e19012808e08714a7eab40df3517027e802caf38de3eda0ff14930f5ff4a8760a1d61e738262699b5efee91d8519f32bf8cad611b8d9d50639bcfb7f8