1
0
Alexei Sorokin 2015-10-21 23:52:51 +00:00 committed by Git OBS Bridge
parent 25906a0826
commit 2398db967f
6 changed files with 455 additions and 409 deletions

View File

@ -0,0 +1,21 @@
--- nemo-dropbox.orig/Makefile.am
+++ nemo-dropbox/Makefile.am
@@ -1,16 +1,6 @@
AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
-bin_SCRIPTS = dropbox
-CLEANFILES = $(bin_SCRIPTS) dropbox.1 dropbox.txt
+CLEANFILES = $(bin_SCRIPTS) dropbox.txt
EXTRA_DIST = dropbox.in serializeimages.py dropbox.txt.in docgen.py rst2man.py
-man_MANS = dropbox.1
-dropbox: dropbox.in serializeimages.py
- python serializeimages.py $(PACKAGE_VERSION) $(datadir)/applications < dropbox.in > dropbox
- chmod +x dropbox
-
-dropbox.1: dropbox.txt.in dropbox docgen.py
- python docgen.py $(PACKAGE_VERSION) < dropbox.txt.in > dropbox.txt
- $(RST2MAN) dropbox.txt > dropbox.1
-
-SUBDIRS = data src
+SUBDIRS = src

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6fbfa66e77f2e92fd2f9d7522c114a1c87a262522f05c5a8d6c607c7892f8d92
size 1135588

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:21ecb2f197e17fba2046ef16493e1b4292a8cc0389c65e0ccc4562b1d0982fe5
size 1160906

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Oct 21 14:05:01 UTC 2015 - sor.alexei@meowr.ru
- Update to 2.8.x.
- Build and install sections generalisation.
- Rename every extension package from nemo-foo to nemo-extension-foo.
- Add nemo-extension-audio-tab package.
- Remove nemo-extensions metapackage.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 2 23:20:29 UTC 2015 - stefan@fam-elser.de Tue Jun 2 23:20:29 UTC 2015 - stefan@fam-elser.de

View File

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

View File

@ -1,5 +1,5 @@
--- nemo-extensions-2.6.x.orig/nemo-seahorse/configure.ac 2015-06-02 13:47:17.000000000 +0200 --- nemo-seahorse.orig/configure.ac
+++ nemo-extensions-2.6.x/nemo-seahorse/configure.ac 2015-06-04 12:36:57.193509827 +0200 +++ nemo-seahorse/configure.ac
@@ -59,3 +59,3 @@ @@ -59,3 +59,3 @@
if test "$DO_CHECK" = "yes"; then if test "$DO_CHECK" = "yes"; then
- accepted_versions="1.2 1.4 2.0" - accepted_versions="1.2 1.4 2.0"