]> git.pld-linux.org Git - packages/dotnet-notify-sharp.git/commitdiff
- added dbus patch (adjust for dbus-sharp 2.0 API); release 2 master auto/th/dotnet-notify-sharp-0.4.1-2
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 26 Apr 2022 18:26:28 +0000 (20:26 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 26 Apr 2022 18:26:28 +0000 (20:26 +0200)
dotnet-notify-sharp.spec
notify-sharp-dbus.patch [new file with mode: 0644]

index 03f74830b697edcf245f894f9766eb337354b467..bd1c8d897a384317c203c73d3b59c246430dc8eb 100644 (file)
@@ -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 (file)
index 0000000..cf031e5
--- /dev/null
@@ -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"
This page took 0.158832 seconds and 4 git commands to generate.