From af5b9601772e85f07ebff858ec2532b1cef14d58 Mon Sep 17 00:00:00 2001 From: Fred Eisele Date: Tue, 25 Mar 2014 16:03:29 -0500 Subject: [PATCH 1/3] added files to assist in building nuget packages --- builds/nuget/libzmq.autopkg | 51 +++++++++++++++++++++++++++++++++++++ builds/nuget/readme.nuget | 12 +++++++++ 2 files changed, 63 insertions(+) create mode 100644 builds/nuget/libzmq.autopkg create mode 100644 builds/nuget/readme.nuget diff --git a/builds/nuget/libzmq.autopkg b/builds/nuget/libzmq.autopkg new file mode 100644 index 00000000..ca1f753e --- /dev/null +++ b/builds/nuget/libzmq.autopkg @@ -0,0 +1,51 @@ +nuget{ + nuspec{ + id = czmq; + version: 2.1.0; + title: ZMQ - Code Connected; + authors: {phreed}; + owners: {phreed}; + licenseUrl: https://www.gnu.org/licenses/lgpl.html; + projectUrl: http://czmq.zeromq.org/; + iconUrl: http://czmq.zeromq.org/local--files/admin:css/logo.gif; + requireLicenseAcceptance: false; + summary: High-level C binding for ZeroMQ and all-round Slice of Heaven for C developers.; + description: @" +ZeroMQ \zeromq\: +- Connect your code in any language, on any platform. +- Carries messages across inproc, IPC, TCP, TPIC, multicast. +- Smart patterns like pub-sub, push-pull, and router-dealer. +- High-speed asynchronous I/O engines, in a tiny library. +- Backed by a large and active open source community. +- Supports every modern language and platform. +- Build any architecture: centralized, distributed, small, or large. +- Free software with full commercial support."; + releaseNotes: "Made a NuGet package."; + copyright: Copyright 2014; + tags: {0mq, zeromq, nuget, native; } + } + + files{ + #defines { + SDK_ROOT = ..\..\; + SDK_2010 = ..\msvc\; + } + include: { "${SDK_ROOT}include\*" }; + docs: { "${SDK_ROOT}doc\*.txt" }; + + [x64,v100,debug] { + lib: ${SDK_2010}Debug\libzmq.lib; + symbols: ${SDK_2010}Debug\libzmq.pdb; + } + + [x64,v100,release] { + lib: ${SDK_2010}Release\libzmq.lib; + } + + targets{ + Defines += HAS_CPP_ZMQ_SDK; + } + } +} + + diff --git a/builds/nuget/readme.nuget b/builds/nuget/readme.nuget new file mode 100644 index 00000000..365cffc9 --- /dev/null +++ b/builds/nuget/readme.nuget @@ -0,0 +1,12 @@ + +NuGet is a package management system for MS-Windows. +It is similar in spirit to tools like Maven or Gradle. + +It was originaly for .Net only packages but it has +recently been augmented to working with native packages. +http://docs.nuget.org/docs/reference/support-for-native-projects + +The instructions for building a NuGet package can be found here: +http://coapp.org/pages/tutorials.html + + From 394e4c603241406a23e8f8df60b54dcce4bf12c4 Mon Sep 17 00:00:00 2001 From: Fred Eisele Date: Tue, 25 Mar 2014 16:55:23 -0500 Subject: [PATCH 2/3] corrected some issues with the autopkg, include the dll --- builds/nuget/libzmq.autopkg | 13 +++++++------ builds/nuget/readme.nuget | 8 ++++++++ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/builds/nuget/libzmq.autopkg b/builds/nuget/libzmq.autopkg index ca1f753e..abedf403 100644 --- a/builds/nuget/libzmq.autopkg +++ b/builds/nuget/libzmq.autopkg @@ -1,15 +1,15 @@ nuget{ nuspec{ - id = czmq; - version: 2.1.0; + id = libzmq; + version : 4.1.0; title: ZMQ - Code Connected; authors: {phreed}; owners: {phreed}; - licenseUrl: https://www.gnu.org/licenses/lgpl.html; - projectUrl: http://czmq.zeromq.org/; - iconUrl: http://czmq.zeromq.org/local--files/admin:css/logo.gif; + licenseUrl: "https://www.gnu.org/licenses/lgpl.html"; + projectUrl: "http://www.zeromq.org/"; + iconUrl: "http://www.zeromq.org/local--files/admin:css/logo.gif"; requireLicenseAcceptance: false; - summary: High-level C binding for ZeroMQ and all-round Slice of Heaven for C developers.; + summary: Code Connected; description: @" ZeroMQ \zeromq\: - Connect your code in any language, on any platform. @@ -40,6 +40,7 @@ ZeroMQ \zeromq\: [x64,v100,release] { lib: ${SDK_2010}Release\libzmq.lib; + bin: ${SDK_2010}..\..\lib\libzmq.dll; } targets{ diff --git a/builds/nuget/readme.nuget b/builds/nuget/readme.nuget index 365cffc9..633743a9 100644 --- a/builds/nuget/readme.nuget +++ b/builds/nuget/readme.nuget @@ -10,3 +10,11 @@ The instructions for building a NuGet package can be found here: http://coapp.org/pages/tutorials.html +The basic procedure is to first build all +the artifacts and then run ... + Write-NuGetPackage .\libzmq.autopkg + +The *.nuget files thus produced can then be installed +in a local repository or uploaded to one of the nuget servers. + + From 91c409fd9374118c0d463851bad8a8c94b59d9d8 Mon Sep 17 00:00:00 2001 From: Fred Eisele Date: Tue, 25 Mar 2014 17:34:09 -0500 Subject: [PATCH 3/3] updated with better owner, author and copyright information --- builds/nuget/libzmq.autopkg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builds/nuget/libzmq.autopkg b/builds/nuget/libzmq.autopkg index abedf403..8b8b3657 100644 --- a/builds/nuget/libzmq.autopkg +++ b/builds/nuget/libzmq.autopkg @@ -1,10 +1,10 @@ nuget{ nuspec{ id = libzmq; - version : 4.1.0; + version : 4.1.0-alpha; title: ZMQ - Code Connected; - authors: {phreed}; - owners: {phreed}; + authors: { zeromq }; + owners: { phreed, jgoz }; licenseUrl: "https://www.gnu.org/licenses/lgpl.html"; projectUrl: "http://www.zeromq.org/"; iconUrl: "http://www.zeromq.org/local--files/admin:css/logo.gif"; @@ -21,7 +21,7 @@ ZeroMQ \zeromq\: - Build any architecture: centralized, distributed, small, or large. - Free software with full commercial support."; releaseNotes: "Made a NuGet package."; - copyright: Copyright 2014; + copyright: Copyright 2012 iMatix Corporation and Contributors; tags: {0mq, zeromq, nuget, native; } }