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

index 2eb7e589d6283468e18cc92a85ae88a8f5d8e6e0..6008a819bf8b712bf275badd6202aa8637bbe733 100644 (file)
@@ -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 (file)
index 0000000..483e9c8
--- /dev/null
@@ -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"
This page took 0.166715 seconds and 4 git commands to generate.