1
0

Accepting request 896442 from home:andythe_great:branches:X11:Cinnamon:Factory

- Update to version 5.0.0.
  * No changelog found.
- Remove nemo-seahorse_no-nautilus-conflicts.patch, not using
  makefile anymore.
- Remove nemo-gtkhash_openssl-1.1.patch, gtkhash removed.
- Remove nemo-dropbox_no-dropbox-bin.patch, no using makefile, not
  applicable.
- Remove nemo-gtkhash, remove from upstream.

OBS-URL: https://build.opensuse.org/request/show/896442
OBS-URL: https://build.opensuse.org/package/show/X11:Cinnamon:Factory/nemo-extensions?expand=0&rev=61
This commit is contained in:
andy great 2021-05-31 20:20:44 +00:00 committed by Git OBS Bridge
parent 93ce90a406
commit c0972757ae
7 changed files with 57 additions and 210 deletions

View File

@ -1,7 +0,0 @@
diff -ruN a/nemo-dropbox/data/icons/Makefile.am c/nemo-dropbox/data/icons/Makefile.am
--- a/nemo-dropbox/data/icons/Makefile.am 2020-05-13 20:20:10.000000000 +0700
+++ c/nemo-dropbox/data/icons/Makefile.am 2020-09-26 23:36:50.507877568 +0700
@@ -1 +1 @@
-SUBDIRS = hicolor nemo-dropbox
\ No newline at end of file
+SUBDIRS = nemo-dropbox

View File

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

View File

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

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Mon May 31 14:14:38 UTC 2021 - andy great <andythe_great@pm.me>
- Update to version 5.0.0.
* No changelog found.
- Remove nemo-seahorse_no-nautilus-conflicts.patch, not using
makefile anymore.
- Remove nemo-gtkhash_openssl-1.1.patch, gtkhash removed.
- Remove nemo-dropbox_no-dropbox-bin.patch, no using makefile, not
applicable.
- Remove nemo-gtkhash, remove from upstream.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Dec 6 19:03:13 UTC 2020 - andy great <andythe_great@pm.me> Sun Dec 6 19:03:13 UTC 2020 - andy great <andythe_great@pm.me>

View File

@ -1,7 +1,7 @@
# #
# spec file for package nemo-extensions # spec file for package nemo-extensions
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# 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,27 +16,21 @@
# #
# Disable build for nemo-extension-gtkhash for now, no clue why it cause nemo to segfault.
# Do not package nemo-extension-media-columns for now: slows Nemo down. # Do not package nemo-extension-media-columns for now: slows Nemo down.
# nemo-extension-terminal 'requires' two versions, confusing typelib finder. # nemo-extension-terminal 'requires' two versions, confusing typelib finder.
%define __requires_exclude typelib\\((Vte))\ = %define __requires_exclude typelib\\((Vte))\ =
%define _version 4.0.0 %define _version 5.0.0
Name: nemo-extensions Name: nemo-extensions
Version: 4.8.0 Version: 5.0.0
Release: 0 Release: 0
Summary: Set of extensions for Nemo, the Cinnamon file manager Summary: Set of extensions for Nemo, the Cinnamon file manager
License: GPL-2.0-only AND GPL-3.0-only AND GPL-3.0-or-later License: GPL-2.0-only AND GPL-3.0-only AND GPL-3.0-or-later
Group: System/GUI/Other Group: System/GUI/Other
URL: https://github.com/linuxmint/nemo-extensions URL: https://github.com/linuxmint/nemo-extensions
Source: https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source: https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE nemo-seahorse_no-nautilus-conflicts.patch sor.alexei@meowr.ru -- Strip conflicted with nautilus-extension-seahorse files.
Patch0: nemo-seahorse_no-nautilus-conflicts.patch
# PATCH-FIX-OPENSUSE nemo-dropbox_no-dropbox-bin.patch sor.alexei@meowr.ru -- Strip dropbox binary installation from nemo-dropbox.
Patch1: nemo-dropbox_no-dropbox-bin.patch
# PATCH-FIX-OPENSUSE nemo-gtkhash_openssl-1.1.patch sor.alexei@meowr.ru -- Add basic OpenSSL 1.1+ compatibility in nemo-gtkhash.
Patch3: nemo-gtkhash_openssl-1.1.patch
# PATCH-FIX-UPSTREAM nemo-share-prevent-privilege-escalation.patch bsc#1084703 -- Prevent unprivileged users from adding other users to sambashare (commit a831e7b). # PATCH-FIX-UPSTREAM nemo-share-prevent-privilege-escalation.patch bsc#1084703 -- Prevent unprivileged users from adding other users to sambashare (commit a831e7b).
Patch4: nemo-share-prevent-privilege-escalation.patch Patch4: nemo-share-prevent-privilege-escalation.patch
BuildRequires: cmake
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gettext-runtime BuildRequires: gettext-runtime
BuildRequires: gnome-common BuildRequires: gnome-common
@ -65,7 +59,7 @@ BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires: pkgconfig(gtk-doc) BuildRequires: pkgconfig(gtk-doc)
BuildRequires: pkgconfig(gtksourceview-3.0) BuildRequires: pkgconfig(gtksourceview-4)
BuildRequires: pkgconfig(libmusicbrainz5) BuildRequires: pkgconfig(libmusicbrainz5)
BuildRequires: pkgconfig(libnotify) BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(nettle) BuildRequires: pkgconfig(nettle)
@ -92,6 +86,7 @@ Set of extensions for Nemo, the Cinnamon file manager.
%if 0%{?suse_version} >= 1500 %if 0%{?suse_version} >= 1500
%package -n python3-nemo %package -n python3-nemo
%else %else
%package -n python-nemo %package -n python-nemo
%endif %endif
Summary: Python bindings for the Nemo File manager Summary: Python bindings for the Nemo File manager
@ -218,23 +213,6 @@ Obsoletes: nemo-fileroller < %{version}
%description -n nemo-extension-fileroller %description -n nemo-extension-fileroller
Nemo-fileroller adds File-roller support to the Nemo file manager. Nemo-fileroller adds File-roller support to the Nemo file manager.
%package -n nemo-extension-gtkhash
Summary: Nemo extension for computing checksums and more using gtkhash
License: GPL-2.0-or-later
Group: System/GUI/Other
Requires: nemo >= %{_version}
Recommends: %{name}-lang
# nemo-gtkhash was last used in openSUSE 13.2.
Obsoletes: nemo-gtkhash < %{version}
Provides: nemo-gtkhash = %{version}
%glib2_gsettings_schema_requires
%description -n nemo-extension-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-extension-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
License: GPL-2.0-or-later License: GPL-2.0-or-later
@ -382,9 +360,8 @@ export CXXFLAGS="%{optflags} -fcommon"
popd popd
pushd nemo-fileroller pushd nemo-fileroller
NOCONFIGURE=1 ./autogen.sh %meson
%configure %meson_build
%make_build
popd popd
pushd nemo-python pushd nemo-python
@ -406,9 +383,8 @@ pushd nemo-emblems
popd popd
pushd nemo-image-converter pushd nemo-image-converter
NOCONFIGURE=1 gnome-autogen.sh %meson
%configure %meson_build
%make_build
popd popd
pushd nemo-compare pushd nemo-compare
@ -416,45 +392,25 @@ pushd nemo-compare
popd popd
pushd nemo-dropbox pushd nemo-dropbox
NOCONFIGURE=1 ./autogen.sh %meson
%configure %meson_build
%make_build
popd popd
pushd nemo-repairer pushd nemo-repairer
NOCONFIGURE=1 ./autogen.sh %meson
%configure %meson_build
%make_build
popd popd
pushd nemo-seahorse pushd nemo-seahorse
NOCONFIGURE=1 ./autogen.sh %meson
%configure %meson_build
%make_build
popd popd
pushd nemo-share pushd nemo-share
NOCONFIGURE=1 ./autogen.sh %meson
%configure %meson_build
%make_build
popd popd
# pushd nemo-gtkhash
# NOCONFIGURE=1 ./autogen.sh
# %%configure \
# --with-gtk=3.0 \
# --enable-linux-crypto \
# --enable-gcrypt \
# --enable-libcrypto \
# --enable-mbedtls \
# --enable-nettle \
# --enable-nss \
# --enable-mhash \
# --enable-nemo
#
# %%make_build
# popd
pushd nemo-audio-tab pushd nemo-audio-tab
%py3_build %py3_build
popd popd
@ -465,7 +421,7 @@ pushd nemo-pastebin
popd popd
pushd nemo-fileroller pushd nemo-fileroller
%make_install %meson_install
popd popd
pushd nemo-python pushd nemo-python
@ -485,7 +441,7 @@ pushd nemo-emblems
popd popd
pushd nemo-image-converter pushd nemo-image-converter
%make_install %meson_install
popd popd
pushd nemo-compare pushd nemo-compare
@ -493,25 +449,21 @@ pushd nemo-compare
popd popd
pushd nemo-dropbox pushd nemo-dropbox
%make_install %meson_install
popd popd
pushd nemo-repairer pushd nemo-repairer
%make_install %meson_install
popd popd
pushd nemo-seahorse pushd nemo-seahorse
%make_install %meson_install
popd popd
pushd nemo-share pushd nemo-share
%make_install %meson_install
popd popd
# pushd nemo-gtkhash
# %%make_install
# popd
pushd nemo-audio-tab pushd nemo-audio-tab
%py3_install %py3_install
popd popd
@ -519,8 +471,18 @@ popd
%find_lang nemo-preview %find_lang nemo-preview
%find_lang nemo-share %find_lang nemo-share
find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print
find %{buildroot} -type f -name "*.a" -delete -print
%fdupes %{buildroot}/%{_prefix} %fdupes %{buildroot}/%{_prefix}
chmod 744 %{buildroot}%{_datadir}/nemo-compare/utils.py
chmod 744 %{buildroot}%{_datadir}/nemo-python/extensions/nemo-audio-tab.py
chmod 744 %{buildroot}%{_datadir}/nemo-python/extensions/nemo-compare.py
# Manually let install samba from our package manager.
rm -r %{buildroot}%{_datadir}/nemo-share/install-samba
# Already included.
rm -r %{buildroot}%{_datadir}/licenses/nemo-dropbox/COPYING
%if 0%{?suse_version} >= 1500 %if 0%{?suse_version} >= 1500
%post -n python3-nemo -p /sbin/ldconfig %post -n python3-nemo -p /sbin/ldconfig
@ -546,14 +508,6 @@ find %{buildroot} -type f -name "*.la" -delete -print
%postun -n nemo-extension-share -p /sbin/ldconfig %postun -n nemo-extension-share -p /sbin/ldconfig
%if 0%{?suse_version} < 1500 %if 0%{?suse_version} < 1500
%post -n nemo-extension-gtkhash
/sbin/ldconfig
%glib2_gsettings_schema_post
%postun -n nemo-extension-gtkhash
/sbin/ldconfig
%glib2_gsettings_schema_postun
%post -n nemo-extension-pastebin %post -n nemo-extension-pastebin
%glib2_gsettings_schema_post %glib2_gsettings_schema_post
@ -570,6 +524,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
%if 0%{?suse_version} >= 1500 %if 0%{?suse_version} >= 1500
%files -n python3-nemo %files -n python3-nemo
%else %else
%files -n python-nemo %files -n python-nemo
%endif %endif
%license nemo-python/COPYING %license nemo-python/COPYING
@ -598,9 +553,10 @@ find %{buildroot} -type f -name "*.la" -delete -print
%files -n nemo-extension-dropbox %files -n nemo-extension-dropbox
%license nemo-dropbox/COPYING %license nemo-dropbox/COPYING
%doc nemo-dropbox/AUTHORS nemo-dropbox/debian/changelog %doc nemo-dropbox/AUTHORS nemo-dropbox/debian/changelog
%exclude %{_libdir}/nemo/extensions-3.0/libnemo-dropbox.a
%{_libdir}/nemo/extensions-3.0/libnemo-dropbox.so %{_libdir}/nemo/extensions-3.0/libnemo-dropbox.so
# /usr/lib64/nemo/extensions-3.0/libnemo-dropbox.so
%{_datadir}/nemo-dropbox/ %{_datadir}/nemo-dropbox/
%{_datadir}/icons/hicolor/symbolic/apps/nemo-dropbox-symbolic.svg
%files -n nemo-extension-emblems %files -n nemo-extension-emblems
%license nemo-emblems/COPYING* %license nemo-emblems/COPYING*
@ -611,25 +567,11 @@ find %{buildroot} -type f -name "*.la" -delete -print
%files -n nemo-extension-fileroller %files -n nemo-extension-fileroller
%license nemo-fileroller/COPYING %license nemo-fileroller/COPYING
%doc nemo-fileroller/debian/changelog %doc nemo-fileroller/debian/changelog
%exclude %{_libdir}/nemo/extensions-3.0/libnemo-fileroller.a
%{_libdir}/nemo/extensions-3.0/libnemo-fileroller.so %{_libdir}/nemo/extensions-3.0/libnemo-fileroller.so
%files -n nemo-extension-gtkhash
%license nemo-gtkhash/COPYING
%doc nemo-gtkhash/AUTHORS nemo-gtkhash/debian/changelog
# %%{_bindir}/gtkhash
# %%{_datadir}/glib-2.0/schemas/app.gtkhash.gschema.xml
# %%dir %%{_datadir}/nemo-gtkhash
# %%{_datadir}/nemo-gtkhash/gtkhash.xml.gz
# %%{_libdir}/nemo/extensions-3.0/libgtkhash-properties.so
# %%{_datadir}/glib-2.0/schemas/org.nemo.extensions.gtkhash.gschema.xml
# %%dir %%{_datadir}/nemo-gtkhash/nautilus
# %%{_datadir}/nemo-gtkhash/nautilus/gtkhash-properties.xml.gz
%files -n nemo-extension-image-converter %files -n nemo-extension-image-converter
%license nemo-image-converter/COPYING %license nemo-image-converter/COPYING
%doc nemo-image-converter/AUTHORS nemo-image-converter/debian/changelog %doc nemo-image-converter/AUTHORS nemo-image-converter/debian/changelog
%{_libdir}/nemo/extensions-3.0/libnemo-image-converter.so
%{_datadir}/nemo-image-converter/ %{_datadir}/nemo-image-converter/
%files -n nemo-extension-pastebin %files -n nemo-extension-pastebin
@ -663,12 +605,16 @@ find %{buildroot} -type f -name "*.la" -delete -print
%license nemo-seahorse/COPYING %license nemo-seahorse/COPYING
%doc nemo-seahorse/debian/changelog %doc nemo-seahorse/debian/changelog
%{_libdir}/nemo/extensions-3.0/libnemo-seahorse.so %{_libdir}/nemo/extensions-3.0/libnemo-seahorse.so
%{_datadir}/applications/nemo-seahorse-pgp-*.desktop
%{_datadir}/glib-2.0/schemas/org.nemo.plugins.seahorse.*.xml
%{_mandir}/man1/nemo-seahorse-tool.1%{?ext_man}
%dir %{_datadir}/nemo-seahorse
%{_datadir}/nemo-seahorse/ui
%files -n nemo-extension-share -f nemo-share.lang %files -n nemo-extension-share -f nemo-share.lang
%license nemo-share/COPYING %license nemo-share/COPYING
%doc nemo-share/AUTHORS nemo-share/debian/changelog %doc nemo-share/AUTHORS nemo-share/debian/changelog
%{_libdir}/nemo/extensions-3.0/libnemo-share.so %{_libdir}/nemo/extensions-3.0/libnemo-share.so
%exclude %{_libdir}/nemo/extensions-3.0/libnemo-share.a
%{_datadir}/nemo-share/ %{_datadir}/nemo-share/
%{_datadir}/polkit-1/actions/org.nemo.share.samba_install.policy %{_datadir}/polkit-1/actions/org.nemo.share.samba_install.policy

View File

@ -1,92 +0,0 @@
--- a/nemo-gtkhash/src/hash/hash-lib-crypto.c 2019-02-08 16:11:14.000000000 +0600
+++ b/nemo-gtkhash/src/hash/hash-lib-crypto.c 2019-04-26 16:38:09.666130133 +0600
@@ -34,7 +34,7 @@
#define LIB_DATA ((struct hash_lib_crypto_s *)func->lib_data)
struct hash_lib_crypto_s {
- EVP_MD_CTX ctx;
+ EVP_MD_CTX *ctx;
};
static const EVP_MD *gtkhash_hash_lib_crypto_get_md(const enum hash_func_e id)
@@ -44,8 +44,10 @@
return EVP_md4();
case HASH_FUNC_MD5:
return EVP_md5();
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
case HASH_FUNC_SHA0:
return EVP_sha();
+#endif
case HASH_FUNC_SHA1:
return EVP_sha1();
case HASH_FUNC_RIPEMD160:
@@ -69,9 +71,13 @@
if (!(md = gtkhash_hash_lib_crypto_get_md(id)))
return false;
- EVP_MD_CTX_init(&data.ctx);
- bool ret = (EVP_DigestInit_ex(&data.ctx, md, NULL) == 1);
- EVP_MD_CTX_cleanup(&data.ctx);
+ data.ctx = EVP_MD_CTX_init(&data.ctx);
+ bool ret = (EVP_DigestInit_ex(data.ctx, md, NULL) == 1);
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+ EVP_MD_CTX_destroy(data.ctx);
+#else
+ EVP_MD_CTX_cleanup(data.ctx);
+#endif
return ret;
}
@@ -84,37 +90,45 @@
if (!(md = gtkhash_hash_lib_crypto_get_md(func->id)))
g_assert_not_reached();
- EVP_MD_CTX_init(&LIB_DATA->ctx);
+ LIB_DATA->ctx = EVP_MD_CTX_create();
- if (EVP_DigestInit_ex(&LIB_DATA->ctx, md, NULL) != 1)
+ if (EVP_DigestInit_ex(LIB_DATA->ctx, md, NULL) != 1)
g_assert_not_reached();
}
void gtkhash_hash_lib_crypto_update(struct hash_func_s *func,
const uint8_t *buffer, const size_t size)
{
- EVP_DigestUpdate(&LIB_DATA->ctx, buffer, size);
+ EVP_DigestUpdate(LIB_DATA->ctx, buffer, size);
}
void gtkhash_hash_lib_crypto_stop(struct hash_func_s *func)
{
- EVP_MD_CTX_cleanup(&LIB_DATA->ctx);
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+ EVP_MD_CTX_destroy(LIB_DATA->ctx);
+#else
+ EVP_MD_CTX_cleanup(LIB_DATA->ctx);
+#endif
g_free(LIB_DATA);
}
uint8_t *gtkhash_hash_lib_crypto_finish(struct hash_func_s *func, size_t *size)
{
- *size = EVP_MD_CTX_size(&LIB_DATA->ctx);
+ *size = EVP_MD_CTX_size(LIB_DATA->ctx);
g_assert(*size > 0);
uint8_t *digest = g_malloc0(*size);
unsigned int len;
- if (EVP_DigestFinal_ex(&LIB_DATA->ctx, digest, &len) != 1)
+ if (EVP_DigestFinal_ex(LIB_DATA->ctx, digest, &len) != 1)
g_assert_not_reached();
g_assert(*size == len);
- EVP_MD_CTX_cleanup(&LIB_DATA->ctx);
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+ EVP_MD_CTX_destroy(LIB_DATA->ctx);
+#else
+ EVP_MD_CTX_cleanup(LIB_DATA->ctx);
+#endif
g_free(LIB_DATA);
return digest;

View File

@ -1,12 +0,0 @@
diff -ruN a/nemo-seahorse/Makefile.am b/nemo-seahorse/Makefile.am
--- a/nemo-seahorse/Makefile.am 2020-05-13 20:20:10.000000000 +0700
+++ b/nemo-seahorse/Makefile.am 2020-09-26 23:11:34.044931301 +0700
@@ -1,8 +1,6 @@
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
- data \
- tool \
nemo-ext \
po