File mono-uia.spec of Package mono-uia

#
# spec file for package mono-uia
#
# 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/
#

# norootforbuild


Name:           mono-uia
Version:        2.0.2
Release:        8
License:        MIT
Group:          System/Libraries
Url:            http://www.mono-project.com/Accessibility
Source0:        %{name}-%{version}.tar.bz2
Patch0:         mono-uia-mono-2.8.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       mono-core >= 2.4
Requires:       mono-winfxcore
BuildRequires:  gtk-sharp2 >= 2.12.8
BuildRequires:  mono-core >= 2.4
BuildRequires:  mono-devel >= 2.4
BuildRequires:  mono-nunit >= 2.4
Summary:        Implementations of members and interfaces based on MS UIA API

%description
User Interface Automation (UIA) is a new accessibility standard

%package devel
License:        MIT
Summary:        mono-uia devel package
Group:          Development/Languages
Requires:       mono-uia == %{version}-%{release}

%description devel
Implementations of the members and interfaces based on MS UIA API

%prep
%setup -q
%patch0

%build
%configure --disable-tests --enable-winfxcore
#Break build with parrallel make
make

%install
make DESTDIR=%{buildroot} install
rm %{buildroot}%{_prefix}/lib/mono/2.0/WindowsBase.dll
rm -r %{buildroot}%{_prefix}/lib/mono/gac/WindowsBase

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README COPYING NEWS
%{_prefix}/lib/mono/accessibility
%{_prefix}/lib/mono/gac/UIAutomationProvider
%{_prefix}/lib/mono/accessibility/UIAutomationProvider.dll
%{_prefix}/lib/mono/gac/UIAutomationTypes
%{_prefix}/lib/mono/accessibility/UIAutomationTypes.dll
%{_prefix}/lib/mono/gac/UIAutomationBridge
%{_prefix}/lib/mono/accessibility/UIAutomationBridge.dll
%{_prefix}/lib/mono/gac/UIAutomationClient
%{_prefix}/lib/mono/accessibility/UIAutomationClient.dll
%{_prefix}/lib/mono/gac/UIAutomationSource
%{_prefix}/lib/mono/accessibility/UIAutomationSource.dll

%files devel
%defattr(-,root,root,-)
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by