%define majversion %(echo %version | cut -d. -f 1-2) Name: gtk-sharp Version: 2.99.3 Release: 2mamba Summary: A set of .NET bindings for the GTK+ toolkit and assorted GNOME libraries Group: Development/Languages Vendor: openmamba Distribution: openmamba Packager: Stefano Cotta Ramusino URL: http://www.mono-project.com/GtkSharp Source: http://ftp.gnome.org/pub/GNOME/sources/gtk-sharp/%{majversion}/gtk-sharp-%{version}.tar.xz Patch1: %{name}-2.12.2-libdir.patch Patch2: %{name}-2.10.1-fix_doc.patch Patch3: %{name}-2.12.8-DateTimeToTime_t.patch Patch4: gtk-sharp-2.99.3-pkg-config-x86_64.patch License: LGPL Requires: mono-core BuildRequires: mono-devel ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libatk-devel BuildRequires: libcairo-devel BuildRequires: libglade-devel BuildRequires: libglib-devel BuildRequires: libgtk-devel BuildRequires: libpango-devel BuildRequires: libxml2-devel BuildRequires: mono-core BuildRequires: monodoc-devel BuildRequires: perl-XML-LibXML ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Gtk-sharp, 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-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. %package devel Summary: Static libraries and headers for %{name} Group: Development/Libraries Requires: perl-XML-LibXML Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel Gtk-sharp, 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-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 static libraries and header files need for development. %package doc Summary: Documentation for %{name} Group: Documentation Requires: monodoc %description doc Gtk-sharp, 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-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. %prep %setup -q #%patch1 -p1 #%patch2 -p1 %patch3 -p1 %patch4 -p1 sed -i "s|gmcs|dmcs|" configure %build #autoreconf -fi %configure %make -j1 \ GACUTIL_FLAGS="/package %{name}-3.0 /gacdir %{_prefix}/lib /root %{buildroot}%{_prefix}/lib" \ GMCS=mcs %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall \ GACUTIL_FLAGS="/package %{name}-3.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 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post doc # FIXME: doc requires mono-tools [ -x %{_bindir}/monodoc ] && %{_bindir}/monodoc --make-search-index &>/dev/null exit 0 %postun doc if [ "$1" = "0" ]; then [ -x %{_bindir}/monodoc ] && %{_bindir}/monodoc --make-search-index &>/dev/null fi exit 0 %files %defattr(-,root,root) %{_sysconfdir}/postplug/updates.d/gtk-sharp-remove-broken-001.upd %{_bindir}/gapi* %{_libdir}/libatksharpglue-3.so %{_libdir}/libgiosharpglue-3.so %{_libdir}/libgtksharpglue-3.so %{_libdir}/libpangosharpglue-3.so %{_libdir}/libmono-profiler-gui-thread-check.so.* %dir %{_prefix}/lib/gapi-* %{_prefix}/lib/gapi-*/gapi-fixup.exe %{_prefix}/lib/gapi-*/gapi-parser.exe %{_prefix}/lib/gapi-*/gapi2xml.pl %{_prefix}/lib/gapi-*/gapi_codegen.exe %{_prefix}/lib/gapi-*/gapi_pp.pl %{_prefix}/lib/mono/gac/cairo-sharp/1.10.0.0__0738eb9f132ed756/cairo-sharp.dll %{_prefix}/lib/mono/gac/gio-sharp/3.0.0.0__35e10195dab3c99f/gio-sharp.dll %{_prefix}/lib/mono/gac/gio-sharp/3.0.0.0__35e10195dab3c99f/gio-sharp.dll.config %{_prefix}/lib/mono/gtk-sharp-3.0/cairo-sharp.dll %{_prefix}/lib/mono/gtk-sharp-3.0/gio-sharp.dll %dir %{_prefix}/lib/mono/%{name}-?.? %{_prefix}/lib/mono/*/*atk-sharp* %{_prefix}/lib/mono/*/*gdk-sharp* #%{_prefix}/lib/mono/*/*glade-sharp* %{_prefix}/lib/mono/*/*glib-sharp* %{_prefix}/lib/mono/*/*gtk-dotnet* %{_prefix}/lib/mono/*/*%{name}* %{_prefix}/lib/mono/*/*pango-sharp* %{_datadir}/gapi-?.? %doc AUTHORS COPYING %files devel %defattr(-,root,root) %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/libmono-profiler-gui-thread-check.so %{_libdir}/pkgconfig/*.pc %doc NEWS README README.generator %files doc %defattr(-,root,root) %{_prefix}/lib/monodoc/sources/%{name}* %changelog * Sun Dec 27 2015 Silvan Calarco 2.99.3-2mamba - rebuilt with mono 4.2.2.4 * Sat Jun 07 2014 Automatic Build System 2.99.3-1mamba - automatic version update by autodist * Thu Dec 05 2013 Automatic Build System 2.99.2-1mamba - automatic version update by autodist * Tue Oct 29 2013 Automatic Build System 2.99.1-1mamba - automatic version update by autodist * Mon Sep 16 2013 Silvan Calarco 2.99.0-3mamba - rebuilt with mono 2.10 * Sat Aug 10 2013 Silvan Calarco 2.99.0-2mamba - fix manual GACUTIL_FLAGS for 3.0 * Wed Oct 24 2012 Automatic Build System 2.99.0-1mamba - update to 2.99.0 * Tue Jan 11 2011 Silvan Calarco 2.12.10-3mamba - rebuilt to add mono dependencies * Sun Aug 29 2010 Davide Madrisan 2.12.10-2mamba - rebuilt to update the list of pkgconfig provides * Sat May 29 2010 Automatic Build System 2.12.10-1mamba - automatic update to 2.12.10 by autodist * Fri May 29 2009 Automatic Build System 2.12.9-1mamba - automatic update by autodist * Mon May 18 2009 Automatic Build System 2.12.8-3mamba - automatic rebuild by autodist * Wed Mar 25 2009 Silvan Calarco 2.12.8-2mamba - added patch that fixes type in DateTimeTotime_t function (check with cdcollector) * Mon Mar 23 2009 Silvan Calarco 2.12.8-1mamba - automatic update by autodist * Tue Jan 20 2009 Silvan Calarco 2.12.7-1mamba - automatic update by autodist * Tue Sep 09 2008 gil 2.12.2-1mamba - update to 2.12.2 * Sun Jul 01 2007 Stefano Cotta Ramusino 2.10.1-1mamba - package created by autospec