[Pkg-cli-libs-commits] [nunit] 06/06: Build .nupkg files as nupkg-foo packages, placing the nupkg files in /usr/share/nupkg/ - this location can be used by adding file:///usr/share/nupkg as a source via the nuget command line

Jo Shields directhex at moszumanska.debian.org
Mon Jun 29 12:15:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

directhex pushed a commit to branch master
in repository nunit.

commit 885695d83f20df036abe1cadc528a3fe76237870
Author: Jo Shields <jo.shields at xamarin.com>
Date:   Mon Jun 29 12:41:21 2015 +0100

    Build .nupkg files as nupkg-foo packages, placing the nupkg files in /usr/share/nupkg/ - this location can be used by adding file:///usr/share/nupkg as a source via the nuget command line
---
 debian/control                                   | 46 +++++++++++++++++++++++-
 debian/nupkg-nunit.2.6.4.install                 |  1 +
 debian/nupkg-nunit.mocks.2.6.4.install           |  1 +
 debian/nupkg-nunit.runners.2.6.4.install         |  1 +
 debian/patches/fixup_nuspec_and_avoid_nant.patch | 19 +++++-----
 debian/rules                                     |  4 +++
 6 files changed, 61 insertions(+), 11 deletions(-)

diff --git a/debian/control b/debian/control
index 284b77b..cc56071 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Maintainer: Debian CLI Libraries Team <pkg-cli-libs-team at lists.alioth.debian.org
 Uploaders: Mirco Bauer <meebey at debian.org>,
            Julian Taylor <jtaylor.debian at googlemail.com>
 Build-Depends: cli-common-dev (>= 0.5.7), debhelper (>= 7.0.50~)
-Build-Depends-Indep: mono-devel (>= 2.4.3), mono-xbuild, monodoc-base
+Build-Depends-Indep: mono-devel (>= 2.4.3), mono-xbuild, monodoc-base, nuget
 Standards-Version: 3.9.3
 Homepage: http://www.nunit.org/
 Vcs-Git: git://git.debian.org/pkg-cli-libs/packages/nunit.git
@@ -25,6 +25,22 @@ Description: Unit test framework for CLI - Console test runner
  .
  This package contains the console front-end.
 
+Package: nupkg-nunit.runners.2.6.4
+Architecture: all
+Section: cli-mono
+Depends: ${misc:Depends}
+Suggests: nuget
+Description: Unit test framework for CLI - NuGet package - Runners
+ NUnit is a unit testing framework for all .NET languages. It serves the
+ same purpose as JUnit does in the Java world. It supports test
+ categories, testing for exceptions and writing test results in plain
+ text or XML.
+ .
+ This package contains the command-line NUnit runner tools and related 
+ plumbing, as a NuGet package, for use with the "nuget" command
+
+
+
 Package: nunit-gui
 Architecture: all
 Depends: ${cli:Depends}, ${misc:Depends}
@@ -91,6 +107,20 @@ Description: Unit test framework for CLI - Assemblies
  .
  This package contains the nunit.framework assembly
 
+Package: nupkg-nunit.2.6.4
+Architecture: all
+Section: cli-mono
+Depends: ${misc:Depends}
+Suggests: nuget
+Description: Unit test framework for CLI - NuGet package - Framework
+ NUnit is a unit testing framework for all .NET languages. It serves the
+ same purpose as JUnit does in the Java world. It supports test
+ categories, testing for exceptions and writing test results in plain
+ text or XML.
+ .
+ This package contains the nunit.framework assembly as a NuGet package, 
+ for use with the "nuget" command
+
 Package: libnunit-mocks2.6.3-cil
 Architecture: all
 Section: cli-mono
@@ -104,6 +134,20 @@ Description: Unit test framework for CLI - Assemblies
  .
  This package contains the nunit.mocks assembly
 
+Package: nupkg-nunit.mocks.2.6.4
+Architecture: all
+Section: cli-mono
+Depends: ${misc:Depends}
+Suggests: nuget
+Description: Unit test framework for CLI - NuGet package - Mocks
+ NUnit is a unit testing framework for all .NET languages. It serves the
+ same purpose as JUnit does in the Java world. It supports test
+ categories, testing for exceptions and writing test results in plain
+ text or XML.
+ .
+ This package contains the nunit.mocks assembly as a NuGet package, for
+ use with the "nuget" command
+
 Package: libnunit-util2.6.3-cil
 Architecture: all
 Section: cli-mono
diff --git a/debian/nupkg-nunit.2.6.4.install b/debian/nupkg-nunit.2.6.4.install
new file mode 100644
index 0000000..5a0ac31
--- /dev/null
+++ b/debian/nupkg-nunit.2.6.4.install
@@ -0,0 +1 @@
+NUnit.2.6.4.nupkg	/usr/share/nupkg/
diff --git a/debian/nupkg-nunit.mocks.2.6.4.install b/debian/nupkg-nunit.mocks.2.6.4.install
new file mode 100644
index 0000000..46feaca
--- /dev/null
+++ b/debian/nupkg-nunit.mocks.2.6.4.install
@@ -0,0 +1 @@
+NUnit.Mocks.2.6.4.nupkg		/usr/share/nupkg/
diff --git a/debian/nupkg-nunit.runners.2.6.4.install b/debian/nupkg-nunit.runners.2.6.4.install
new file mode 100644
index 0000000..c734283
--- /dev/null
+++ b/debian/nupkg-nunit.runners.2.6.4.install
@@ -0,0 +1 @@
+NUnit.Runners.2.6.4.nupkg	/usr/share/nupkg/
diff --git a/debian/patches/fixup_nuspec_and_avoid_nant.patch b/debian/patches/fixup_nuspec_and_avoid_nant.patch
index 0e0ee94..2cfd41c 100644
--- a/debian/patches/fixup_nuspec_and_avoid_nant.patch
+++ b/debian/patches/fixup_nuspec_and_avoid_nant.patch
@@ -1,7 +1,7 @@
 Index: nunit/nuget/nunit.mocks.nuspec
 ===================================================================
---- nunit.orig/nuget/nunit.mocks.nuspec	2014-09-16 11:47:13.930568164 +0100
-+++ nunit/nuget/nunit.mocks.nuspec	2015-06-29 12:28:04.421174500 +0100
+--- nunit.orig/nuget/nunit.mocks.nuspec	2015-06-29 12:49:10.953204696 +0100
++++ nunit/nuget/nunit.mocks.nuspec	2015-06-29 12:49:10.949204696 +0100
 @@ -2,7 +2,7 @@
  <package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  	<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
@@ -25,8 +25,8 @@ Index: nunit/nuget/nunit.mocks.nuspec
 +</package>
 Index: nunit/nuget/nunit.nuspec
 ===================================================================
---- nunit.orig/nuget/nunit.nuspec	2014-09-26 11:44:33.604999882 +0100
-+++ nunit/nuget/nunit.nuspec	2015-06-29 12:28:44.945175466 +0100
+--- nunit.orig/nuget/nunit.nuspec	2015-06-29 12:49:10.953204696 +0100
++++ nunit/nuget/nunit.nuspec	2015-06-29 12:49:10.953204696 +0100
 @@ -2,7 +2,7 @@
  <package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  	<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
@@ -44,16 +44,16 @@ Index: nunit/nuget/nunit.nuspec
 -		<file src="${current.build.dir}\framework\nunit.framework.dll" target="lib" />
 -		<file src="${current.build.dir}\framework\nunit.framework.xml" target="lib" />
 +		<file src="../license.txt" />
-+		<file src="bin/Debug/framework/nunit.framework.dll" target="lib" />
-+		<file src="bin/Debug/framework/nunit.framework.xml" target="lib" />
++		<file src="../bin/Debug/framework/nunit.framework.dll" target="lib" />
++		<file src="../bin/Debug/framework/nunit.framework.xml" target="lib" />
  	</files>
 -</package>
 \ No newline at end of file
 +</package>
 Index: nunit/nuget/nunit.runners.nuspec
 ===================================================================
---- nunit.orig/nuget/nunit.runners.nuspec	2014-09-16 11:47:13.930568164 +0100
-+++ nunit/nuget/nunit.runners.nuspec	2015-06-29 12:36:05.737185975 +0100
+--- nunit.orig/nuget/nunit.runners.nuspec	2015-06-29 12:49:10.953204696 +0100
++++ nunit/nuget/nunit.runners.nuspec	2015-06-29 12:49:20.893204933 +0100
 @@ -2,7 +2,7 @@
  <package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  	<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
@@ -63,7 +63,7 @@ Index: nunit/nuget/nunit.runners.nuspec
  		<title>NUnit.Runners</title>
  		<authors>Charlie Poole</authors>
  		<owners>Charlie Poole</owners>
-@@ -16,41 +16,19 @@
+@@ -16,41 +16,18 @@
  		<tags>nunit test testing tdd runner</tags>
  	</metadata>
  	<files>
@@ -109,7 +109,6 @@ Index: nunit/nuget/nunit.runners.nuspec
 +		<file src="../bin/Debug/framework/nunit.framework.dll" target="tools" />
 +		<file src="../bin/Debug/nunit-console.exe" target="tools" />
 +		<file src="../bin/Debug/nunit-console.exe.config" target="tools" />
-+		<file src="/usr/lib/cli/log4net-1.2/log4net.dll" target="tools/lib" />
 +		<file src="../bin/Debug/lib/nunit.core.dll" target="tools/lib" />
 +		<file src="../bin/Debug/lib/nunit.core.interfaces.dll" target="tools/lib" />
 +		<file src="../bin/Debug/lib/nunit.uiexception.dll" target="tools/lib" />
diff --git a/debian/rules b/debian/rules
index 24bbaff..3cfad70 100755
--- a/debian/rules
+++ b/debian/rules
@@ -31,6 +31,10 @@ override_dh_auto_build:
 	  -o monodocer bin/Debug/lib/nunit.core.dll;
 	mdoc assemble -o nunit.core monodocer;
 
+	nuget pack nuget/nunit.nuspec -Verbose -NoPackageAnalysis -NoDefaultExcludes
+	nuget pack nuget/nunit.mocks.nuspec -Verbose -NoPackageAnalysis -NoDefaultExcludes
+	nuget pack nuget/nunit.runners.nuspec -Verbose -NoPackageAnalysis -NoDefaultExcludes
+
 override_dh_install:
 	install -D -m 755 debian/nunit-console.sh debian/nunit-console/usr/bin/nunit-console
 	install -D -m 755 debian/nunit-gui.sh debian/nunit-gui/usr/bin/nunit-gui

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cli-libs/packages/nunit.git



More information about the Pkg-cli-libs-commits mailing list