File mono-qt4.spec of Package mono-qt4

#
# spec file for package mono-qt4
#
# Copyright (c) 2011 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.7.2
Release:        1
License:        GPL-2.0+
Summary:        Mono Qt4 kdebindings library
Url:            https://projects.kde.org/projects/kde/kdebindings/csharp/qyoto
Group:          Development/Languages/Mono
Source0:        qyoto-%{version}.tar.bz2
Patch1:         qyoto-remove-examples.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
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

%build
%cmake_kde4 -d build
%make_jobs

%install
cd build
%make_install

%package -n libqyoto2
License:        GPL-2.0+
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
License:        GPL-2.0+
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/

%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