commit db75392d4c6a2cc6bce746a2f96ad2e52e5604d5
Author: Jakub Bogusz <[email protected]>
Date:   Tue Apr 26 20:58:10 2022 +0200

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

 dotnet-notify-sharp3.spec | 13 ++++++++++---
 notify-sharp-dbus.patch   | 17 +++++++++++++++++
 2 files changed, 27 insertions(+), 3 deletions(-)
---
diff --git a/dotnet-notify-sharp3.spec b/dotnet-notify-sharp3.spec
index 2eb7e58..6008a81 100644
--- a/dotnet-notify-sharp3.spec
+++ b/dotnet-notify-sharp3.spec
@@ -2,29 +2,34 @@ Summary:      C# client implementation for Desktop 
Notifications
 Summary(pl.UTF-8):     Implementacja C# klienta usługi Desktop Notifications
 Name:          dotnet-notify-sharp3
 Version:       3.0.3
-Release:       2
+Release:       3
 License:       MIT
 Group:         Development/Libraries
 Source0:       
https://www.meebey.net/projects/notify-sharp/downloads/notify-sharp-%{version}.tar.gz
 # Source0-md5: 827ad0436e6540a8b9f621c3fa77e137
 Patch0:                monodir.patch
+Patch1:                notify-sharp-dbus.patch
 URL:           https://www.meebey.net/projects/notify-sharp/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
 BuildRequires: dotnet-dbus-sharp-devel >= 1:0.7
 BuildRequires: dotnet-dbus-sharp-glib-devel >= 0.5
 BuildRequires: dotnet-gtk-sharp3-devel >= 2.99.1
-BuildRequires: gtk+3-devel
+BuildRequires: gtk+3-devel >= 3.0
 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-sharp3 >= 2.99.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
@@ -65,12 +70,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..483e9c8
--- /dev/null
+++ b/notify-sharp-dbus.patch
@@ -0,0 +1,17 @@
+--- notify-sharp-3.0.3/configure.ac.orig       2014-12-18 12:23:53.000000000 
+0100
++++ notify-sharp-3.0.3/configure.ac    2022-04-25 21:35:50.830832347 +0200
+@@ -67,10 +67,10 @@ GTK_SHARP_REQ_VERSION=2.99.1
+ PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-3.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-sharp3.git/commitdiff/db75392d4c6a2cc6bce746a2f96ad2e52e5604d5

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to