gtk-sharp2/gtk-sharp2.spec

188 lines
6.8 KiB
RPMSpec

%define majversion %(echo %version | cut -d. -f 1-2)
Name: gtk-sharp2
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: 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: libcairo-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglade-devel
BuildRequires: libglib-devel
BuildRequires: libgtk2-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libpango-devel
BuildRequires: libxml2-devel
BuildRequires: mono-devel
BuildRequires: perl-XML-LibXML
## AUTOBUILDREQ-END
BuildRequires: mono-devel >= 6.12.0.122-2mamba
Requires: mono-core
%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.
%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#, 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.
This package contains static libraries and header files needed 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.
%debug_package
%prep
%setup -q -n gtk-sharp-%{version}
%patch6 -p1
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
%build
%configure
%make -j1
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%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
%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)
%{_libdir}/lib*.so
%{_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/*/*gtk-sharp*
%{_prefix}/lib/mono/*/*pango-sharp*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_bindir}/gapi*
%{_prefix}/lib/gtk-sharp-?.?/gapi*
%{_libdir}/*.a
%{_libdir}/*.la
%{_datadir}/gapi-?.?
%{_libdir}/pkgconfig/*.pc
#%doc ChangeLog NEWS README README.generator
%files doc
%defattr(-,root,root)
%{_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
* Wed Jul 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.10-4mamba
- legacy package (rebuilt with mono 3)
* Tue Jan 11 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.10-3mamba
- rebuilt to add mono dependencies
* Sun Aug 29 2010 Davide Madrisan <davide.madrisan@gmail.com> 2.12.10-2mamba
- rebuilt to update the list of pkgconfig provides
* Sat May 29 2010 Automatic Build System <autodist@mambasoft.it> 2.12.10-1mamba
- automatic update to 2.12.10 by autodist
* Fri May 29 2009 Automatic Build System <autodist@mambasoft.it> 2.12.9-1mamba
- automatic update by autodist
* Mon May 18 2009 Automatic Build System <autodist@mambasoft.it> 2.12.8-3mamba
- automatic rebuild by autodist
* Wed Mar 25 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.8-2mamba
- added patch that fixes type in DateTimeTotime_t function (check with cdcollector)
* Mon Mar 23 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.8-1mamba
- automatic update by autodist
* Tue Jan 20 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.7-1mamba
- automatic update by autodist
* Tue Sep 09 2008 gil <puntogil@libero.it> 2.12.2-1mamba
- update to 2.12.2
* Sun Jul 01 2007 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.10.1-1mamba
- package created by autospec