File gdata-sharp.spec of Package gdata-sharp

# spec file for package gdata-sharp
# 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

Name:           gdata-sharp
Release:        0
Summary:        Google Data APIs (GData) for Mono/.NET
License:        Apache-2.0
Group:          Development/Libraries/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  mono-devel
BuildRequires:  nunit-devel
Provides:       google-gdata
BuildArch:      noarch
Patch0:         gdata-sharp-core-pc.patch
Patch1:         gdata-sharp-runtime-4.5.patch
# PATCH-FIX-OPENSUSE gdata-sharp-find-nunit.patch -- Use pkgconfig to find the right parameters to link nunit
Patch2:         gdata-sharp-find-nunit.patch
Patch3:         gdata-sharp-reproducible.patch

The GData .NET Client Library provides a library and source code
that make it easy to access data through Google Data APIs.

%package devel
Summary:        .NET library for the Google Data API
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}

%description devel
This package provides a simple protocol for the Google Data APIs (GData).

%setup -q -n libgoogle-data-mono-%{version}

%if 0%{?suse_version} > 1110
# Mono >= 3.2 isn't available for SLE
%patch1 -p1
%if 0%{?suse_version} != 1320 && 0%{?suse_version} != 1310
%patch2 -p1
%patch3 -p1

make PREFIX=%{_prefix}

make DESTDIR=%{buildroot} PREFIX=%{_prefix} install
mkdir %{buildroot}%{_datadir}
mv %{buildroot}%{_prefix}/lib/pkgconfig %{buildroot}%{_datadir}/


%files devel

openSUSE Build Service is sponsored by