File gnome-sharp2.spec of Package gnome-sharp2

# spec file for package gnome-sharp2
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%define _name gnome-sharp

Name:           gnome-sharp2
Version:        2.24.2
Release:        0
Summary:        Mono bindings for GNOME
License:        LGPL-2.1
Group:          System/GUI/GNOME
Patch0:         fix-sample-mono-path.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  pkgconfig(gapi-2.0)
BuildRequires:  pkgconfig(glade-sharp-2.0)
BuildRequires:  pkgconfig(gmodule-2.0)
BuildRequires:  pkgconfig(gnome-vfs-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gtk-sharp-2.0)
BuildRequires:  pkgconfig(libgnomecanvas-2.0)
BuildRequires:  pkgconfig(libgnomeui-2.0)
BuildRequires:  pkgconfig(mono)
BuildRequires:  pkgconfig(mono-cairo)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package contains Mono bindings for GNOME.

%package -n gnome-sharp2-complete
Summary:        GTK+ and GNOME bindings for Mono (virtual package)
Group:          System/GUI/GNOME
Requires:       art-sharp2 = %{version}
Requires:       gconf-sharp2 = %{version}
Requires:       gnome-sharp2 = %{version}
Requires:       gnome-vfs-sharp2 = %{version}

%description -n gnome-sharp2-complete
Gtk# is a library that allows you to build fully native graphical GNOME
applications using Mono. Gtk# is a binding to GTK+, the cross platform
user interface toolkit used in GNOME. It includes bindings for Gtk,
Atk, Pango, Gdk, libgnome, libgnomeui and libgnomecanvas.  (Virtual
package which depends on all gtk-sharp2 subpackages)

%package -n gnome-vfs-sharp2
Summary:        Mono bindings for gnomevfs
Group:          System/GUI/GNOME

%description -n gnome-vfs-sharp2
This package contains Mono bindings for gnomevfs.

%package -n art-sharp2
Summary:        Mono bindings for libart
Group:          System/GUI/GNOME

%description -n art-sharp2
This package contains Mono bindings for libart.

%package -n gconf-sharp2
Summary:        Mono bindings for gconf
Group:          System/GUI/GNOME

%description -n gconf-sharp2
This package contains Mono bindings for gconf and gconf peditors.

%package -n gconf-sharp-peditors2
Summary:        Mono bindings for gconf property editors
Group:          System/GUI/GNOME

%description -n gconf-sharp-peditors2
This package contains Mono bindings for gconf property editors.

%setup -q -n %{_name}-%{version}
%patch0 -p1

autoreconf -fiv
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure \
    --libexecdir=%{_prefix}/lib \
    --disable-static \
make %{?_smp_mflags}

find %{buildroot} -type f -name '*.la' -delete -print

%post -n gnome-sharp2 -p /sbin/ldconfig

%postun -n gnome-sharp2 -p /sbin/ldconfig

%files -n gnome-sharp2-complete
%defattr(-, root, root)
%dir %{_prefix}/lib/gtk-sharp-2.0
%dir %{_prefix}/lib/mono/gtk-sharp-2.0

%files -n gnome-sharp2

%files -n gnome-vfs-sharp2

%files -n art-sharp2

%files -n gconf-sharp2
%defattr(-, root, root)

%files -n gconf-sharp-peditors2
%defattr(-, root, root)

openSUSE Build Service is sponsored by