# # spec file for package nemo-extensions # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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-extensions Version: 2.4.0 Release: 0 Summary: Extensions for Nemo File Manager License: GPL-2.0+ Group: Metapackages Url: https://github.com/linuxmint/nemo-extensions Source: %{name}-%{version}.tar.gz BuildRequires: docutils BuildRequires: gnome-common BuildRequires: intltool BuildRequires: libtool BuildRequires: nemo-devel BuildRequires: pkg-config BuildRequires: python-distutils-extra BuildRequires: python-gtk-devel BuildRequires: python-setuptools BuildRequires: update-desktop-files # nemo-compare BuildRequires: gettext-runtime # nemo-gtkhash BuildRequires: libgcrypt-devel BuildRequires: libnettle-devel BuildRequires: mhash-devel BuildRequires: mozilla-nss-devel BuildRequires: openssl-devel %if 0%{?suse_version} >= 1320 BuildRequires: polarssl-devel %endif # nemo-python BuildRequires: pkgconfig(pygobject-2.0) # nemo-preview BuildRequires: evince-devel BuildRequires: pkgconfig(cjs-1.0) BuildRequires: pkgconfig(clutter-gst-2.0) BuildRequires: pkgconfig(clutter-gtk-1.0) BuildRequires: pkgconfig(gstreamer-1.0) BuildRequires: pkgconfig(libmusicbrainz5) BuildRequires: pkgconfig(gtksourceview-3.0) BuildRequires: pkgconfig(webkitgtk-3.0) BuildRequires: pkgconfig(gobject-introspection-1.0) # nemo-seahorse BuildRequires: libgpgme-devel BuildRequires: pkgconfig(cryptui-0.0) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(gconf-2.0) BuildRequires: pkgconfig(gnome-keyring-1) BuildRequires: pkgconfig(libnotify) Requires: nemo-compare = %{version} Requires: nemo-dropbox = %{version} Requires: nemo-emblems = %{version} Requires: nemo-fileroller = %{version} Requires: nemo-gtkhash = %{version} Requires: nemo-image-converter = %{version} Requires: nemo-media-columns = %{version} Requires: nemo-pastebin = %{version} Requires: nemo-preview = %{version} Requires: nemo-rabbitvcs = %{version} Requires: nemo-repairer = %{version} Requires: nemo-seahorse = %{version} Requires: nemo-share = %{version} Requires: nemo-terminal = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This is a meta-package which install all Nemo extensions. %package -n nemo-compare Summary: Context Menu comparison extension for Nemo file manager License: GPL-3.0+ Group: Productivity/File utilities Requires: nemo-python = %{version} Requires: python-gobject Requires: python-gtk Requires: python-xdg Requires: meld BuildArch: noarch %description -n nemo-compare Context menu comparison extension for Nemo file manager Simple context menu file comparison extension for Nemo 3 and above, inspired by the discontinued 'diff-ext' extension. By default it uses 'meld' to do the comparison and provides "Compare", "Compare to ~/foo/bar" and "Compare Later" in Nemo context menu. Using the configurator tool you can choose your favourite compare tool for one-on-one, three-way and multi-compare situations. %package -n nemo-dropbox Summary: DropBox support for the Nemo Filemanager License: GPL-3.0+ and CC-BY-ND Group: Productivity/File utilities %description -n nemo-dropbox Nemo-dropbox adds DropBox support to the Nemo filemanager. %package -n nemo-emblems Summary: Change a folder or file emblem in Nemo License: GPL-3.0 Group: Productivity/File utilities Requires: python-gobject BuildArch: noarch %py_requires %description -n nemo-emblems Change a folder or file emblem in Nemo %package -n nemo-fileroller Summary: Fileroller support for the Nemo Filemanager Group: Productivity/File utilities Requires: file-roller %description -n nemo-fileroller Nemo-fileroller adds Fileroller support to the Nemo filemanager. %package -n nemo-gtkhash Summary: Nemo extension for computing checksums and more using gtkhash Group: Productivity/File utilities %glib2_gsettings_schema_requires %description -n nemo-gtkhash The GtkHash extension for nemo which allows users to compute message digests or checksums using the mhash library. Currently supported hash functions include MD5, MD6, SHA1, SHA256, SHA512, RIPEMD, TIGER and WHIRLPOOL. %package -n nemo-image-converter Summary: Nemo extension to mass resize or rotate images Group: Productivity/File utilities Requires: ImageMagick %description -n nemo-image-converter This package adds a "Resize Images..." menu item to the context menu of all images. This opens a dialog where you set the desired image size and file name. A click on "Resize" finally resizes the image(s) using ImageMagick's convert tool. %package -n nemo-media-columns Summary: Nemo Media Columns Group: Productivity/File utilities Requires: nemo-python Requires: python-gobject Requires: python-mutagen Requires: python-pyexiv2 Requires: python-imaging Requires: python-kaa-metadata Requires: python-pypdf BuildArch: noarch %description -n nemo-media-columns This extension is meant to be used with the Nemo File Manager. It provides additional columns for the List View related to media-type files. %package -n nemo-pastebin Summary: Pastebin extension for Nemo file manager Group: Productivity/File utilities Requires: python-gobject Requires: python-xdg BuildArch: noarch %py_requires %glib2_gsettings_schema_requires %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. %package -n nemo-preview Summary: A quick previewer for Nemo file manager Group: Productivity/File utilities %description -n nemo-preview This is NemoPreview, a quick previewer for Nemo, the Cinnamon desktop file manager. %package -n nemo-python Summary: Python bindings for the Nemo Filemanager Group: Productivity/File utilities %description -n nemo-python Includes Python bindings for the Nemo Filemanager. %package -n nemo-rabbitvcs Summary: RabbitVCS extension for Nemo file manager Group: Productivity/File utilities Requires: nemo-python Requires: dbus-1-python Supplements: packageand(rabbitvcs:nemo) BuildArch: noarch %description -n nemo-rabbitvcs RabbitVCS extension for Nemo file manager. %package -n nemo-repairer Summary: Nemo extension for filename encoding repair Group: Productivity/File utilities %description -n nemo-repairer This is a Nemo extension which repairs filename which uses wrong encoding in Nemo. This extension provides the context menu for any file whose filename uses wrong encoding, so that you cannot read the filename in Nemo. You can find a candidate for filename in context menu or submenu. This extension also provides a decoded name for URL encoded filename. %package -n nemo-seahorse Summary: OpenPGP encryption/decryption extension for Nemo file manager Group: Productivity/File utilities %description -n nemo-seahorse seahorse nemo is an extension for nemo which allows encryption and decryption of OpenPGP files using GnuPG %package -n nemo-share Summary: Samba share extension for Nemo file manager Group: Productivity/File utilities %description -n nemo-share Nemo Share allows you to quickly share a folder from the GNOME Nemo file manager without requiring root access. %package -n nemo-terminal Summary: Nemo extension to enable an embedded terminal Group: Productivity/File utilities Requires: nemo-python = %{version} Requires: python-gobject Requires: typelib-1_0-Gtk-3_0 Requires: typelib-1_0-Vte-2.91 Requires: typelib-1_0-GdkPixbuf-2_0 BuildArch: noarch %description -n nemo-terminal Nemo Terminal is an embedded terminal for Nemo, the Cinnamon file manager. It embeds a terminal pane into Nemo that is accessible by hotkey (default F4) and automatically follows the currently active directory in Nemo. %prep %setup -q cat > README.META << EOF This is a meta package which brings all nemo extensions into one packages. It's just a "dummy" package handling dependency, nothing more. EOF for i in dropbox fileroller python; do pushd nemo-${i}; NOCONFIGURE=1 ./autogen.sh ; popd done # fix nemo-emblems spurious-executable-perm chmod 644 nemo-emblems/COPYING.GPL3 pushd nemo-preview AUTOPOINT='intltoolize --automake --copy' autoreconf -fiv popd %build for i in dropbox fileroller preview share; do pushd nemo-${i}; %configure --disable-static make %{?_smp_mflags} popd done pushd nemo-gtkhash %configure --disable-static \ --enable-linux-crypto \ --enable-gcrypt \ --enable-libcrypto \ %if 0%{?suse_version} >= 1320 --enable-polarssl \ %endif --enable-nettle \ --enable-nss \ --enable-mhash \ --enable-nemo make %{?_smp_mflags} popd for i in emblems pastebin; do pushd nemo-${i} python setup.py build popd done for i in image-converter python repairer seahorse; do pushd nemo-${i} %configure make %{?_smp_mflags} popd done %install # nemo-compare begins pushd nemo-compare mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/nemo-compare/ mkdir -p %{buildroot}%{_datadir}/nemo-python/extensions/ cp -r src/nemo-compare-preferences.py %{buildroot}%{_datadir}/nemo-compare/ cp -r src/nemo-compare.py %{buildroot}%{_datadir}/nemo-compare/ cp -r src/utils.py %{buildroot}%{_datadir}/nemo-compare/ ln -sf %{_datadir}/nemo-compare/nemo-compare-preferences.py %{buildroot}%{_bindir}/nemo-compare-preferences ln -sf %{_datadir}/nemo-compare/nemo-compare.py %{buildroot}%{_datadir}/nemo-python/extensions/nemo-compare.py # "gtk-preferences icon isn't in hicolor-icon-theme sed -i "6d" data/nemo-compare-preferences.desktop cp -r data/nemo-compare-preferences.desktop %{buildroot}%{_datadir}/applications/ %suse_update_desktop_file nemo-compare-preferences System FileManager # translations mkdir -p %{buildroot}%{_datadir}/locale/et/LC_MESSAGES/ msgfmt po/et.po -o %{buildroot}%{_datadir}/locale/et/LC_MESSAGES/nemo-compare.mo %find_lang nemo-compare # nemo-compare ends popd # nemo-dropbox, nemo-fileroller for i in dropbox fileroller; do pushd nemo-${i} %make_install popd done # nemo-emblems pushd nemo-emblems python setup.py install --prefix=%{_prefix} --root=%{buildroot} %find_lang nemo-emblems popd # nemo-media-columns pushd nemo-media-columns cp -r nemo-media-columns.py %{buildroot}%{_datadir}/nemo-python/extensions/ popd # nemo-pastebin pushd nemo-pastebin python setup.py install --prefix=%{_prefix} --root=%{buildroot} %suse_update_desktop_file nemo-pastebin-configurator System FileManager popd # nemo-preview & nemo-share for i in gtkhash image-converter preview share; do pushd nemo-${i} %make_install %find_lang nemo-${i} popd done # nemo-python pushd nemo-python %make_install ## fix doc mkdir %{buildroot}%{_docdir}/ mv %{buildroot}%{_datadir}/doc/nemo-python %{buildroot}%{_docdir}/ popd # nemo-rabbitvcs pushd nemo-rabbitvcs cp -r RabbitVCS.py %{buildroot}%{_datadir}/nemo-python/extensions/ popd # nemo-seahorse pushd nemo-seahorse %make_install %find_lang nemo-seahorse %suse_update_desktop_file seahorse-pgp-encrypted %suse_update_desktop_file seahorse-pgp-keys %suse_update_desktop_file seahorse-pgp-signature popd # nemo-repairer pushd nemo-repairer %make_install %find_lang nemo-filename-repairer popd # nemo-terminal pushd nemo-terminal mkdir -p %{buildroot}%{_datadir}/nemo-terminal cp -r src/nemo_terminal.py %{buildroot}%{_datadir}/nemo-python/extensions cp -r src/*.xml %{buildroot}%{_datadir}/glib-2.0/schemas/ cp -r pixmap/*.png %{buildroot}%{_datadir}/nemo-terminal popd # clean in all find %{buildroot} -type f -name "*.la" -delete -print %post -n nemo-dropbox -p /sbin/ldconfig %postun -n nemo-dropbox -p /sbin/ldconfig %post -n nemo-fileroller -p /sbin/ldconfig %postun -n nemo-fileroller -p /sbin/ldconfig %post -n nemo-gtkhash /sbin/ldconfig %glib2_gsettings_schema_post %postun -n nemo-gtkhash /sbin/ldconfig %glib2_gsettings_schema_postun %post -n nemo-image-converter -p /sbin/ldconfig %postun -n nemo-image-converter -p /sbin/ldconfig %post -n nemo-preview -p /sbin/ldconfig %postun -n nemo-preview -p /sbin/ldconfig %post -n nemo-python -p /sbin/ldconfig %postun -n nemo-python -p /sbin/ldconfig %post -n nemo-pastebin %glib2_gsettings_schema_post %postun -n nemo-pastebin %glib2_gsettings_schema_postun %post -n nemo-seahorse -p /sbin/ldconfig %postun -n nemo-seahorse -p /sbin/ldconfig %post -n nemo-repairer -p /sbin/ldconfig %postun -n nemo-repairer -p /sbin/ldconfig %post -n nemo-share -p /sbin/ldconfig %postun -n nemo-share -p /sbin/ldconfig %post -n nemo-terminal %glib2_gsettings_schema_post %postun -n nemo-terminal %glib2_gsettings_schema_postun %files %defattr(-,root,root) %doc README.META %files -n nemo-compare -f nemo-compare/nemo-compare.lang %defattr(-,root,root) %doc nemo-compare/debian/copyright nemo-compare/debian/changelog %{_bindir}/nemo-compare-preferences %dir %{_datadir}/nemo-compare %{_datadir}/nemo-compare/nemo-compare-preferences.py %{_datadir}/nemo-compare/nemo-compare.py %{_datadir}/nemo-compare/utils.py %{_datadir}/nemo-python/extensions/nemo-compare.py %{_datadir}/applications/nemo-compare-preferences.desktop %files -n nemo-dropbox %defattr(-,root,root) %doc nemo-dropbox/AUTHORS nemo-dropbox/COPYING nemo-dropbox/ChangeLog nemo-dropbox/NEWS nemo-dropbox/README %{_bindir}/dropbox %{_libdir}/nemo/extensions-3.0/libnemo-dropbox.so %{_datadir}/applications/dropbox.desktop %{_datadir}/icons/hicolor/*/apps/dropbox.png %{_datadir}/nemo-dropbox %{_mandir}/man1/dropbox.1.gz %files -n nemo-emblems -f nemo-emblems/nemo-emblems.lang %defattr(-,root,root) %doc nemo-emblems/COPYING.GPL3 %{_datadir}/nemo-python/extensions/nemo-emblems.py %{python_sitelib}/nemo_emblems-0.0.1-py%{py_ver}.egg-info %files -n nemo-fileroller %defattr(-,root,root) %doc nemo-fileroller/COPYING %{_libdir}/nemo/extensions-3.0/libnemo-fileroller.so %files -n nemo-gtkhash -f nemo-gtkhash/nemo-gtkhash.lang %defattr(-,root,root) %doc nemo-gtkhash/AUTHORS nemo-gtkhash/COPYING nemo-gtkhash/NEWS nemo-gtkhash/README %{_bindir}/gtkhash %{_libdir}/nemo/extensions-3.0/libgtkhash-properties.so %{_datadir}/glib-2.0/schemas/app.gtkhash.gschema.xml %{_datadir}/glib-2.0/schemas/org.nemo.extensions.gtkhash.gschema.xml %{_datadir}/nemo-gtkhash %files -n nemo-image-converter -f nemo-image-converter/nemo-image-converter.lang %defattr(-,root,root) %doc nemo-image-converter/AUTHORS nemo-image-converter/ChangeLog nemo-image-converter/COPYING nemo-image-converter/NEWS nemo-image-converter/README %{_libdir}/nemo/extensions-3.0/libnemo-image-converter.so %{_datadir}/nemo-image-converter/ %files -n nemo-media-columns %defattr(-,root,root) %doc nemo-media-columns/AUTHORS nemo-media-columns/COPYING nemo-media-columns/MAINTAINERS nemo-media-columns/README %{_datadir}/nemo-python/extensions/nemo-media-columns.py %files -n nemo-pastebin %defattr(-,root,root) %doc nemo-pastebin/README nemo-pastebin/COPYING %{_bindir}/nemo-pastebin.py %{_bindir}/nemo-pastebin-configurator.py %{python_sitelib}/nemo_pastebin-1.0.0-py%{py_ver}.egg-info %{_datadir}/applications/nemo-pastebin-configurator.desktop %{_datadir}/nemo-pastebin %{_datadir}/pixmaps/nemo-pastebin.svg %{_datadir}/glib-2.0/schemas/nemo-pastebin.gschema.xml %files -n nemo-preview -f nemo-preview/nemo-preview.lang %defattr(-,root,root) %doc nemo-preview/ABOUT-NLS nemo-preview/AUTHORS nemo-preview/README nemo-preview/COPYING nemo-preview/TODO %{_bindir}/nemo-preview %{_libexecdir}/nemo-preview-start %{_libdir}/nemo-preview %{_datadir}/dbus-1/services/org.nemo.Preview.service %{_datadir}/nemo-preview %files -n nemo-python %defattr(-,root,root) %doc nemo-python/AUTHORS nemo-python/COPYING nemo-python/ChangeLog %{_libdir}/nemo/extensions-3.0/libnemo-python.so %{_libdir}/pkgconfig/nemo-python.pc %doc %{_docdir}/nemo-python/README %doc %{_docdir}/nemo-python/examples %dir %{_datadir}/nemo-python %dir %{_datadir}/nemo-python/extensions/ %files -n nemo-rabbitvcs %defattr(-,root,root) %doc nemo-rabbitvcs/AUTHORS nemo-rabbitvcs/COPYING nemo-rabbitvcs/MAINTAINERS nemo-rabbitvcs/README %{_datadir}/nemo-python/extensions/RabbitVCS.py %files -n nemo-repairer -f nemo-repairer/nemo-filename-repairer.lang %defattr(-,root,root) %doc nemo-repairer/AUTHORS nemo-repairer/COPYING nemo-repairer/COPYING nemo-repairer/README %{_bindir}/nemo-filename-repairer %{_libdir}/nemo/extensions-3.0/libnemo-filename-repairer.so %{_datadir}/nemo-filename-repairer/ %files -n nemo-seahorse -f nemo-seahorse/nemo-seahorse.lang %defattr(-,root,root) %doc nemo-seahorse/ChangeLog nemo-seahorse/README nemo-seahorse/COPYING %{_bindir}/seahorse-tool %{_libdir}/nemo/extensions-3.0/libnemo-seahorse.so %{_datadir}/applications/seahorse-pgp-encrypted.desktop %{_datadir}/applications/seahorse-pgp-keys.desktop %{_datadir}/applications/seahorse-pgp-signature.desktop %{_mandir}/man1/seahorse-tool.1.gz %{_datadir}/nemo-seahorse %files -n nemo-share -f nemo-share/nemo-share.lang %defattr(-,root,root) %doc nemo-share/AUTHORS nemo-share/ChangeLog nemo-share/COPYING %{_libdir}/nemo/extensions-3.0/libnemo-share.so %{_datadir}/nemo-share %files -n nemo-terminal %defattr(-,root,root) %{_datadir}/nemo-terminal %{_datadir}/nemo-python/extensions/nemo_terminal.py %{_datadir}/glib-2.0/schemas/org.nemo.extensions.nemo-terminal.gschema.xml %changelog