rebuilt with mono 6.12.0.122-2mamba to fix automatic deps [release 2.12.45-2mamba;Wed Nov 24 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 23:34:26 +01:00
parent 04c14cfdb4
commit c5bff60b3c
3 changed files with 59 additions and 51 deletions

View File

@ -4,7 +4,6 @@ Gtk#, a GUI Toolkit, is a set of .NET bindings for the gtk+ (http://www.gtk.org/
This library allows you to build fully native graphical Gnome application using Mono.
GTK# is an event-driven system like any other modern windowing library.
Every widget in an application has handler methods that get called when particular events happen.
Applications built using Gtk# will run on many platforms including Linux, Windows and MacOS X.
Gtk is the native toolkit for the Linux desktop running GNOME, so applications will look and function best on here.

View File

@ -0,0 +1,30 @@
diff --git a/sample/test/TestRange.cs b/sample/test/TestRange.cs
index 82fb811..29a8ee7 100644
--- a/sample/test/TestRange.cs
+++ b/sample/test/TestRange.cs
@@ -32,14 +32,14 @@ namespace WidgetViewer {
HScale hscale = new HScale (adjustment);
hscale.SetSizeRequest (150, -1);
- ((Range) hscale).UpdatePolicy = UpdateType.Delayed;
+ ((Gtk.Range) hscale).UpdatePolicy = UpdateType.Delayed;
hscale.Digits = 1;
hscale.DrawValue = true;
box2.PackStart (hscale, true, true, 0);
HScrollbar hscrollbar = new HScrollbar (adjustment);
- ((Range) hscrollbar).UpdatePolicy = UpdateType.Continuous;
+ ((Gtk.Range) hscrollbar).UpdatePolicy = UpdateType.Continuous;
box2.PackStart (hscrollbar, true, true, 0);
hscale = new HScale (adjustment);
@@ -59,7 +59,7 @@ namespace WidgetViewer {
vscale.SetSizeRequest (-1, 200);
vscale.Digits = 2;
vscale.DrawValue = true;
- ((Range) vscale).Inverted = true;
+ ((Gtk.Range) vscale).Inverted = true;
hbox.PackStart (vscale, true, true, 0);
vscale = new VScale (adjustment);

View File

@ -1,67 +1,46 @@
%define majversion %(echo %version | cut -d. -f 1-2)
Name: gtk-sharp2
Version: 2.12.10
Release: 5mamba
Version: 2.12.45
Release: 2mamba
Summary: A set of .NET bindings for the GTK+ toolkit and assorted GNOME libraries
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
URL: http://www.mono-project.com/GtkSharp
Source: http://ftp.gnome.org/pub/GNOME/sources/gtk-sharp/%{majversion}/gtk-sharp-%{version}.tar.bz2
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.mono-project.com/docs/gui/gtksharp/
Source: https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-%{version}.tar.gz
Patch1: gtk-sharp-2.12.2-libdir.patch
Patch2: gtk-sharp-2.10.1-fix_doc.patch
Patch3: gtk-sharp-2.12.8-DateTimeToTime_t.patch
Patch4: gtk-sharp-2.12.10-glib-2.34.patch
Patch5: gtk-sharp-2.12.10-pkg-config-x86_64.patch
Patch6: gtk-sharp2-2.12.45-gtkrange.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libatk-devel
BuildRequires: libbzip2-devel
BuildRequires: libcairo-devel
BuildRequires: libelf-devel
BuildRequires: libexpat-devel
BuildRequires: libffi-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglade-devel
BuildRequires: libGL-devel
BuildRequires: libglib-devel
BuildRequires: libgraphite2-devel
BuildRequires: libgtk2-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libicu-devel
BuildRequires: liblzma-devel
BuildRequires: libpango-devel
BuildRequires: libpixman-devel
BuildRequires: libpng15-devel
BuildRequires: libpthread-stubs-devel
BuildRequires: libselinux-devel
BuildRequires: libstdc++6-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libxcb-devel
BuildRequires: libXdmcp-devel
BuildRequires: libxml2-devel
BuildRequires: libXrender-devel
BuildRequires: libz-devel
BuildRequires: mono-core
BuildRequires: perl-XML-LibXML
BuildRequires: udev-devel
## AUTOBUILDREQ-END
BuildRequires: mono-devel
BuildRequires: perl-XML-LibXML
## AUTOBUILDREQ-END
BuildRequires: mono-devel >= 6.12.0.122-2mamba
Requires: mono-core
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Gtk#, a GUI Toolkit, is a set of .NET bindings for the gtk+ (http://www.gtk.org/) toolkit and assorted GNOME (http://www.gnome.org/) libraries.
This library allows you to build fully native graphical Gnome application using Mono.
GTK# is an event-driven system like any other modern windowing library.
Every widget in an application has handler methods that get called when particular events happen.
Applications built using Gtk# will run on many platforms including Linux, Windows and MacOS X.
Gtk is the native toolkit for the Linux desktop running GNOME, so applications will look and function best on here.
@ -76,11 +55,9 @@ Gtk#, a GUI Toolkit, is a set of .NET bindings for the gtk+ (http://www.gtk.org/
This library allows you to build fully native graphical Gnome application using Mono.
GTK# is an event-driven system like any other modern windowing library.
Every widget in an application has handler methods that get called when particular events happen.
Applications built using Gtk# will run on many platforms including Linux, Windows and MacOS X.
Gtk is the native toolkit for the Linux desktop running GNOME, so applications will look and function best on here.
This package contains static libraries and header files need for development.
This package contains static libraries and header files needed for development.
%package doc
Summary: Documentation for %{name}
@ -92,24 +69,21 @@ Gtk-sharp, a GUI Toolkit, is a set of .NET bindings for the gtk+ (http://www.gtk
This library allows you to build fully native graphical Gnome application using Mono.
GTK-sharp is an event-driven system like any other modern windowing library.
Every widget in an application has handler methods that get called when particular events happen.
Applications built using Gtk-sharp will run on many platforms including Linux, Windows and MacOS X.
Gtk is the native toolkit for the Linux desktop running GNOME, so applications will look and function best on here.
This package contains the documentation for development.
%debug_package
%prep
%setup -q -n gtk-sharp-%{version}
%patch1 -p1
#%patch2 -p1
%patch3 -p1
%patch5 -p1
cd glib
%patch4 -p0
%patch6 -p1
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
%build
#autoreconf -fi
%configure
%make -j1
%install
@ -117,12 +91,12 @@ cd glib
%makeinstall \
GACUTIL_FLAGS="/package gtk-sharp-2.0 /gacdir %{_prefix}/lib /root %{buildroot}%{_prefix}/lib"
# postplug one-shot update script to remove old package with wrong script
install -d %{buildroot}%{_sysconfdir}/postplug/updates.d
cat > %{buildroot}%{_sysconfdir}/postplug/updates.d/gtk-sharp-remove-broken-001.upd << _EOF
rpm -e gtk-sharp-2.12.10-2mamba --noscripts
exit 0
_EOF
## postplug one-shot update script to remove old package with wrong script
#install -d %{buildroot}%{_sysconfdir}/postplug/updates.d
#cat > %{buildroot}%{_sysconfdir}/postplug/updates.d/gtk-sharp-remove-broken-001.upd << _EOF
#rpm -e gtk-sharp-2.12.10-2mamba --noscripts
#exit 0
#_EOF
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -145,8 +119,7 @@ exit 0
%files
%defattr(-,root,root)
%{_sysconfdir}/postplug/updates.d/gtk-sharp-remove-broken-001.upd
%{_libdir}/*.so
%{_libdir}/lib*.so
%{_prefix}/lib/mono/*/*atk-sharp*
%{_prefix}/lib/mono/*/*gdk-sharp*
%{_prefix}/lib/mono/*/*glade-sharp*
@ -171,6 +144,12 @@ exit 0
%{_prefix}/lib/monodoc/sources/gtk-sharp*
%changelog
* Wed Nov 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.45-2mamba
- rebuilt with mono 6.12.0.122-2mamba to fix automatic deps
* Mon Nov 22 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.45-1mamba
- update to 2.12.45
* Mon Sep 16 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.10-5mamba
- rebuilt with mono 2