diff --git a/README.md b/README.md index 5234af1..602aed8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # nuget +Package manager for .Net/Mono development platform. + diff --git a/nuget-wrapper b/nuget-wrapper new file mode 100644 index 0000000..d2b9b4e --- /dev/null +++ b/nuget-wrapper @@ -0,0 +1,2 @@ +#!/bin/sh +exec mono $MONO_OPTIONS /usr/lib/nuget/nuget.exe "$@" diff --git a/nuget.pc b/nuget.pc new file mode 100644 index 0000000..0e3ba5a --- /dev/null +++ b/nuget.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${prefix}/lib +includedir=${prefix}/include +Libraries=${prefix}/lib/nuget/NuGet.Core.dll ${prefix}/lib/nuget/Microsoft.Web.XmlTransform.dll + +Name: nuget +Description: Library for acessing Microsoft NuGet repositories +Version: %{version} +Libs: -r:${libdir}/nuget/NuGet.Core.dll -r:${libdir}/nuget/Microsoft.Web.XmlTransform.dll diff --git a/nuget.spec b/nuget.spec new file mode 100644 index 0000000..1a357aa --- /dev/null +++ b/nuget.spec @@ -0,0 +1,45 @@ +Name: nuget +Version: 5.5.0.6382.bin +Release: 1mamba +Summary: Package manager for .Net/Mono development platform +Group: Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://nuget.org/ +Source: http://download.mono-project.com/sources/nuget/nuget-%{version}.tar.xz +Source1: nuget-wrapper +Source2: nuget.pc +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: mono-devel +## AUTOBUILDREQ-END +Requires: mono +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Package manager for .Net/Mono development platform. + +%prep +%setup -q + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -Dm 0644 nuget.exe %{buildroot}%{_prefix}/lib/nuget/nuget.exe +install -Dm 0755 %{SOURCE1} %{buildroot}%{_bindir}/nuget +install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/pkgconfig/nuget.pc + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/nuget +%{_prefix}/lib/nuget/nuget.exe +%{_datadir}/pkgconfig/nuget.pc + +%changelog +* Tue Aug 18 2020 Silvan Calarco 5.5.0.6382.bin-1mamba +- package created using the webbuild interface