[packages/dotnet-notify-sharp] - added dbus patch (adjust for dbus-sharp 2.0 API); release 2

qboosh qboosh at pld-linux.org
Tue Apr 26 20:26:11 CEST 2022


commit fd079bee1a5bc4137802fa0b516afaec9a0fa7b0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Apr 26 20:26:28 2022 +0200

    - added dbus patch (adjust for dbus-sharp 2.0 API); release 2

 dotnet-notify-sharp.spec | 11 +++++++++--
 notify-sharp-dbus.patch  | 17 +++++++++++++++++
 2 files changed, 26 insertions(+), 2 deletions(-)
---
diff --git a/dotnet-notify-sharp.spec b/dotnet-notify-sharp.spec
index 03f7483..bd1c8d8 100644
--- a/dotnet-notify-sharp.spec
+++ b/dotnet-notify-sharp.spec
@@ -2,12 +2,13 @@ Summary:	C# client implementation for Desktop Notifications
 Summary(pl.UTF-8):	Implementacja C# klienta usługi Desktop Notifications
 Name:		dotnet-notify-sharp
 Version:	0.4.1
-Release:	1
+Release:	2
 License:	MIT
 Group:		Libraries
 Source0:	https://www.meebey.net/projects/notify-sharp/downloads/notify-sharp-%{version}.tar.gz
 # Source0-md5:	46fcb7a6b9b1cd0241366b8234e31e37
 Patch0:		%{name}-monodir.patch
+Patch1:		notify-sharp-dbus.patch
 URL:		https://www.meebey.net/projects/notify-sharp/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -18,12 +19,16 @@ BuildRequires:	mono-csharp >= 1.1.13
 BuildRequires:	mono-devel >= 1.1.13
 BuildRequires:	mono-monodoc >= 1.1.18
 BuildRequires:	pkgconfig
+BuildRequires:	rpmbuild(macros) >= 2.015
 Requires:	dotnet-dbus-sharp >= 1:0.7
 Requires:	dotnet-dbus-sharp-glib >= 0.5
 Requires:	dotnet-gtk-sharp2 >= 2.10.1
 Requires:	mono >= 1.1.13
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# no native code
+%define		_enable_debug_packages	0
+
 %description
 notify-sharp (Notify#) is a C# client implementation for Desktop
 Notifications, i.e. notification-daemon. It is inspired by the
@@ -64,12 +69,14 @@ Pliki programistyczne biblioteki notify-sharp.
 %prep
 %setup -q -n notify-sharp-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+	GMCS=/usr/bin/mcs
 
 %{__make}
 
diff --git a/notify-sharp-dbus.patch b/notify-sharp-dbus.patch
new file mode 100644
index 0000000..cf031e5
--- /dev/null
+++ b/notify-sharp-dbus.patch
@@ -0,0 +1,17 @@
+--- notify-sharp-0.4.1/configure.ac.orig	2022-04-25 21:42:49.771896082 +0200
++++ notify-sharp-0.4.1/configure.ac	2022-04-25 21:43:18.895071642 +0200
+@@ -66,10 +66,10 @@ GTK_SHARP_REQ_VERSION=2.10.1
+ PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTK_SHARP_REQ_VERSION)
+ AC_SUBST(GTK_SHARP_LIBS)
+ 
+-DBUS_SHARP_REQ_VERSION=0.7
+-DBUS_SHARP_GLIB_REQ_VERSION=0.5
+-PKG_CHECK_MODULES(DBUS_SHARP, dbus-sharp-1.0 >= $DBUS_SHARP_REQ_VERSION \
+-                              dbus-sharp-glib-1.0 >= $DBUS_SHARP_GLIB_REQ_VERSION)
++DBUS_SHARP_REQ_VERSION=0.8
++DBUS_SHARP_GLIB_REQ_VERSION=0.6
++PKG_CHECK_MODULES(DBUS_SHARP, dbus-sharp-2.0 >= $DBUS_SHARP_REQ_VERSION \
++                              dbus-sharp-glib-2.0 >= $DBUS_SHARP_GLIB_REQ_VERSION)
+ AC_SUBST(DBUS_SHARP_LIBS)
+ 
+ required_assemblies="Mono.Posix"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dotnet-notify-sharp.git/commitdiff/fd079bee1a5bc4137802fa0b516afaec9a0fa7b0



More information about the pld-cvs-commit mailing list