File mono-qt4.spec of Package mono-qt4

#
# spec file for package mono-qt4
#
# Copyright (c) 2014 SUSE LINUX Products 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 http://bugs.opensuse.org/
#


Name:           mono-qt4
Version:        4.14.3
Release:        0
Summary:        Mono Qt4 kdebindings library
License:        GPL-2.0+
Group:          Development/Languages/Mono
Url:            https://projects.kde.org/projects/kde/kdebindings/csharp/qyoto
Source0:        qyoto-%{version}.tar.xz
Patch1:         qyoto-remove-examples.patch
# PATCH-FIX-UPSTREAM qyoto-qdbus-non-generic.patch kde#339977 dimstar@opensuse.org -- The DllImport attribute cannot be applied to a method that is generic or contained in a generic type.
Patch2:         qyoto-qdbus-non-generic.patch
BuildRequires:  cmake
BuildRequires:  kde4-filesystem
BuildRequires:  libQtWebKit-devel
BuildRequires:  libmono-2_0-devel
BuildRequires:  libqimageblitz-devel
BuildRequires:  libqscintilla-devel
BuildRequires:  libsmokegen-devel
BuildRequires:  libsmokeqt-devel
BuildRequires:  mono
BuildRequires:  mono-devel
BuildRequires:  phonon-devel
BuildRequires:  qwt-devel
BuildRequires:  sqlite-devel
BuildRequires:  xz
Requires:       libqyoto2 = %{version}
Provides:       mono-qt = 4.7.0
Obsoletes:      mono-qt < 4.7.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
.NET/Mono bindings for the Qt4 libraries from the kdebindings Qyoto project.

%prep
%setup -q -n qyoto-%{version}
%patch1 -p1
%patch2 -p1

%build
%cmake_kde4 -d build
%make_jobs

%install
cd build
%make_install

%package -n libqyoto2
Summary:        Mono bindings for Qt4 libraries
Group:          Development/Languages/Mono

%description -n libqyoto2
Shared library for the .NET/Mono bindings for the Qt4 libraries.

%package devel
Summary:        Development libraries for Mono-Qt4
Group:          Development/Languages/Mono
Requires:       %{name} = %{version}

%description devel
This package contains development files for the .NET/Mono bindings for the Qt4 libraries.

%post -n libqyoto2 -p /sbin/ldconfig

%postun -n libqyoto2 -p /sbin/ldconfig

%files -n libqyoto2
%defattr(-,root,root)
%{_kde4_libdir}/libqyoto.so.*

%files
%defattr(-,root,root)
%dir %{_prefix}/lib/mono
%{_prefix}/lib/mono/qyoto/
%{_prefix}/lib/mono/gac/qt-dotnet/
%{_prefix}/lib/mono/gac/qtscript/
%{_prefix}/lib/mono/gac/qttest/
%{_prefix}/lib/mono/gac/qtuitools/
%{_prefix}/lib/mono/gac/qtwebkit/
%{_prefix}/lib/mono/gac/phonon/
%{_prefix}/lib/mono/gac/qscintilla/
%{_datadir}/qyoto/
%exclude %{_datadir}/qyoto/cmake

%files devel
%defattr(-,root,root)
%{_kde4_bindir}/csrcc
%{_kde4_bindir}/uics
%{_includedir}/qyoto
%{_kde4_libdir}/pkgconfig/qyoto.pc
%{_kde4_libdir}/pkgconfig/qtwebkit-sharp.pc
%{_kde4_libdir}/pkgconfig/qttest-sharp.pc
%{_kde4_libdir}/pkgconfig/qtuitools-sharp.pc
%{_kde4_libdir}/pkgconfig/qtscript-sharp.pc
%{_kde4_libdir}/libqtscript-sharp.so
%{_kde4_libdir}/libphonon-sharp.so
%{_kde4_libdir}/libqyoto.so
%{_kde4_libdir}/libqttest-sharp.so
%{_kde4_libdir}/libqtuitools-sharp.so
%{_kde4_libdir}/libqtwebkit-sharp.so
%{_kde4_libdir}/libqscintilla-sharp.so
%{_datadir}/qyoto/cmake

%changelog
openSUSE Build Service is sponsored by