mono-nuget-vl.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. Name: mono-nuget
  2. Version: 2.8.3
  3. Release: 2%{?_dist_release}
  4. Summary: DotNet package manager
  5. Summary(ja): DotNet パッケージマネージャー
  6. License: Apache License 2.0
  7. Group: Development/Tools
  8. URL: https://github.com/directhex/xamarin-nuget/
  9. Source0: http://origin-download.mono-project.com/sources/nuget/nuget-%{version}+md58+dhx1.tar.bz2
  10. Source1: mono-nuget.pc
  11. Source3: build-minimal.sh
  12. Patch0: fix_xdt_hintpath.patch
  13. BuildArch: noarch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: dos2unix
  16. BuildRequires: mono-devel
  17. BuildRequires: pkgconfig
  18. %description
  19. This is the Xamarin version of NuGet for use with MonoDevelop.
  20. %package devel
  21. Summary: Development files for NuGet
  22. Summary(ja): NuGet の開発用ファイル
  23. Group: Development/Libraries
  24. Requires: mono-nuget = %{version}-%{release}
  25. %description devel
  26. This package contains development files for NuGet integration into MonoDevelop.
  27. %prep
  28. %setup -q -n nuget-git
  29. %patch0 -p1
  30. cp -a %{SOURCE3} ./
  31. chmod +x build-minimal.sh
  32. %build
  33. ./build-minimal.sh
  34. %install
  35. rm -rf %{buildroot}
  36. mkdir -p %{buildroot}%{_datadir}/pkgconfig
  37. install -m0644 %{SOURCE1} %{buildroot}%{_datadir}/pkgconfig/
  38. mkdir -p %{buildroot}%{_prefix}/lib/mono/nuget
  39. install -m0755 src/CommandLine/bin/Release/NuGet.Core.dll %{buildroot}%{_prefix}/lib/mono/nuget/
  40. install -m0755 xdt/XmlTransform/bin/Debug/Microsoft.Web.XmlTransform.dll %{buildroot}%{_prefix}/lib/mono/nuget/
  41. install -m0755 src/CommandLine/bin/Release/NuGet.exe %{buildroot}%{_prefix}/lib/mono/nuget/
  42. %clean
  43. rm -rf %{buildroot}
  44. %files
  45. %defattr(-, root, root)
  46. %doc COPYRIGHT.txt LICENSE.txt
  47. %{_prefix}/lib/mono/nuget
  48. %files devel
  49. %defattr(-, root, root)
  50. %{_datadir}/pkgconfig/mono-nuget.pc
  51. %changelog
  52. * Tue May 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.8.3-2
  53. - initial build for VineLinux
  54. * Sat May 2 2015 mailaender@opensuse.org
  55. - update to version 2.8.3 for MonoDevelop 5.8 and above
  56. - add fix_xdt_hintpath.patch to fix the build
  57. - add build-minimal.sh as it was removed from the tarball
  58. - add pkgconfig as this contains a .pc file
  59. * Mon Dec 22 2014 mailaender@opensuse.org
  60. - initial packaging