File mono-nuget.spec of Package mono-nuget

# spec file for package mono-nuget
# Copyright (c) 2015 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:           mono-nuget
Version:        2.8.5
Release:        0
Summary:        DotNet package manager
License:        Apache-2.0
Group:          Development/Languages/Mono
Source1:        mono-nuget.pc
Patch0:         fix_xdt_hintpath.patch
BuildArch:      noarch
BuildRequires:  dos2unix
BuildRequires:  mono-devel
BuildRequires:  pkgconfig
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This is the Xamarin version of NuGet for use with MonoDevelop.

%package devel
Summary:        Development files for NuGet
Group:          Development/Languages/Mono
Requires:       mono-nuget = %{version}

%description devel
This package contains development files for NuGet integration into MonoDevelop.

%setup -q -n nuget-git
%patch0 -p1
cp -a %{SOURCE3} ./
chmod +x



mkdir -p %{buildroot}%{_datadir}/pkgconfig
install -m0644 %{SOURCE1} %{buildroot}%{_datadir}/pkgconfig/

mkdir -p %{buildroot}%{_prefix}/lib/mono/nuget
install -m0755 src/CommandLine/bin/Release/NuGet.Core.dll %{buildroot}%{_prefix}/lib/mono/nuget/
install -m0755 xdt/XmlTransform/bin/Debug/Microsoft.Web.XmlTransform.dll %{buildroot}%{_prefix}/lib/mono/nuget/
install -m0755 src/CommandLine/bin/Release/NuGet.exe %{buildroot}%{_prefix}/lib/mono/nuget/

%defattr(-, root, root)

%files devel
%defattr(-, root, root)

openSUSE Build Service is sponsored by