[packages/gnome-user-share] - updated to 48.0 (rewritten in rust)
qboosh
qboosh at pld-linux.org
Sun May 4 21:03:03 CEST 2025
commit 61f198e448034c61fb4af0b7334b8010daf1e289
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun May 4 20:53:12 2025 +0200
- updated to 48.0 (rewritten in rust)
gnome-user-share-meson.patch | 10 +++++-----
gnome-user-share.spec | 30 +++++++++++++++++++++++++-----
2 files changed, 30 insertions(+), 10 deletions(-)
---
diff --git a/gnome-user-share.spec b/gnome-user-share.spec
index 52007a0..70766bf 100644
--- a/gnome-user-share.spec
+++ b/gnome-user-share.spec
@@ -1,21 +1,28 @@
Summary: An integrated file sharing solution for the GNOME Desktop
Summary(pl.UTF-8): Zintegrowane rozwiązanie do współdzielenia plików dla środowiska GNOME
Name: gnome-user-share
-Version: 47.2
+Version: 48.0
Release: 1
License: GPL v2
Group: X11/Applications
-Source0: https://download.gnome.org/sources/gnome-user-share/47/%{name}-%{version}.tar.xz
-# Source0-md5: 55986957295b3e7e08df6e8f6d3c8bf8
+Source0: https://download.gnome.org/sources/gnome-user-share/48/%{name}-%{version}.tar.xz
+# Source0-md5: efc5a2f41efa58bf52405518b9aa69e0
+# cargo vendor-filterer --platform='*-unknown-linux-*' --tier=2 --features selinux
+Source1: %{name}-vendor-%{version}.tar.xz
+# Source1-md5: 6d407f9d1be601f00c27f85c90850bff
Patch0: %{name}-meson.patch
URL: https://gitlab.gnome.org/GNOME/gnome-user-share/
+BuildRequires: cargo
+# for selinux
+BuildRequires: clang
BuildRequires: gettext-tools
BuildRequires: glib2-devel >= 1:2.74.0
-BuildRequires: libselinux-devel
+BuildRequires: libselinux-devel >= 2.8
BuildRequires: meson >= 0.58.0
BuildRequires: ninja >= 1.5
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 2.042
+BuildRequires: rust >= 1.80.0
BuildRequires: systemd-units
BuildRequires: tar >= 1:1.22
BuildRequires: xz
@@ -29,6 +36,7 @@ Requires: apache-mod_authz_groupfile >= 2.4
Requires: apache-mod_dav >= 2.4
Requires: apache-mod_dnssd >= 0.6
Requires: glib2 >= 1:2.74.0
+Requires: libselinux >= 2.8
Requires: systemd-units >= 1:250.1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -41,9 +49,21 @@ Zintegrowane rozwiązanie do współdzielenia plików dla środowiska
GNOME. Używa WebDAV.
%prep
-%setup -q
+%setup -q -b1
%patch -P0 -p1
+# use offline registry
+CARGO_HOME="$(pwd)/.cargo"
+
+mkdir -p "$CARGO_HOME"
+cat >$CARGO_HOME/config.toml <<EOF
+[source.crates-io]
+replace-with = 'vendored-sources'
+
+[source.vendored-sources]
+directory = '$PWD/vendor'
+EOF
+
%build
%meson \
-Dhttpd=/usr/sbin/httpd \
diff --git a/gnome-user-share-meson.patch b/gnome-user-share-meson.patch
index 0765cbc..a90deca 100644
--- a/gnome-user-share-meson.patch
+++ b/gnome-user-share-meson.patch
@@ -1,7 +1,7 @@
---- gnome-user-share-47.0/meson.build.orig 2024-10-04 13:37:10.522107724 +0200
-+++ gnome-user-share-47.0/meson.build 2024-10-04 18:14:25.841986467 +0200
-@@ -79,6 +79,9 @@ if systemd_systemduserunitdir == ''
- systemd_systemduserunitdir = dependency('systemd').get_variable(pkgconfig: 'systemduserunitdir')
+--- gnome-user-share-48.0/meson.build.orig 2025-03-15 19:05:02.000000000 +0100
++++ gnome-user-share-48.0/meson.build 2025-04-30 21:28:11.050732923 +0200
+@@ -55,6 +55,9 @@ if systemd_systemduserunitdir == ''
+ endif
endif
+if get_option('httpd')[0] != 'httpd'
@@ -10,7 +10,7 @@
httpd = find_program(get_option('httpd'), required: false)
httpd_path = ''
-@@ -100,6 +103,7 @@ if httpd.found()
+@@ -76,6 +79,7 @@ if httpd.found()
error('httpd version @0@ >= @1@: NO'.format(version, req_version))
endif
endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gnome-user-share.git/commitdiff/61f198e448034c61fb4af0b7334b8010daf1e289
More information about the pld-cvs-commit
mailing list