Bug 1527820 - Request: go-hvkvp - Utility to read keyvalue pairs from the Hyper-V Data Exechange service
Summary: Request: go-hvkvp - Utility to read keyvalue pairs from the Hyper-V Data Exec...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Container Development Kit (CDK)
Classification: Red Hat
Component: distribution
Version: unspecified
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
: 2.3
Assignee: Lalatendu Mohanty
QA Contact: Ondřej Pták
Robert Krátký
URL:
Whiteboard:
Depends On: 1524245
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-20 08:17 UTC by Praveen Kumar
Modified: 2020-02-21 05:49 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1524245
Environment:
Last Closed: 2020-02-18 06:30:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Praveen Kumar 2017-12-20 08:17:05 UTC
+++ This bug was initially created as a clone of Bug #1524245 +++

Spec URL: https://raw.githubusercontent.com/gbraad/go-hvkvp/master/hvkvp.spec
SRPM URL: https://copr-be.cloud.fedoraproject.org/results/gbraad/go-hvkvp/epel-7-x86_64/00686411-go-hvkvp/go-hvkvp-0.4-2.el7.centos.src.rpm
Description: Utility to read keyvalue pairs from the Hyper-V Data Exechange service

This utility is used by Minishift to provide a static IP on startup. This has been implemented as part of the task: https://github.com/minishift/minishift/issues/1316 The current package is unsigned and has been part of an experimental feature, but we now want to move ahead with a general availability.

Fedora Account System Username: gbraad

--- Additional comment from Robert-André Mauchin on 2017-12-11 19:07:08 EST ---

Hello,

 - Not useful:

%if ! 0%{?with_bundled}
export GOPATH=$(pwd):%{gopath}
%else
echo "Unable to build from bundled deps. No Godeps nor vendor directory"
exit 1
%endif

 - Remove unused stuff:

# Build with debug info rpm
%global with_debug 1
# Run tests in check section
%global with_check 1

 - What are you trying to do here? You make a directory just to remove it on the next line:

%build
mkdir -p src/%{import_path}
rmdir src/%{import_path}
ln -s ../../../ src/%{import_path

   It should look like this:

mkdir -p ./_build/src/%{provider}.%{provider_tld}/%{project}
ln -s $(pwd) ./_build/src/%{provider_prefix}
export GOPATH=$(pwd)/_build:%{gopath}

%gobuild -o bin/%{executable_name} %{import_path}/cmd/%{executable_name}

 - Not needed even for EL6/7:

# handle license on el{6,7}: global must be defined after the License field above
%{!?_licensedir: %global license %doc}

 - Changelog info is not coherent with the header. It should just be:

* Mon Dec 11 2017 Gerard Braad <me> 0.4-0.2

 - Use a more meaningful name for your archive, with:

Source0:        https://%{provider_prefix}/archive/%{version}/%{name}-%{version}.tar.gz

Comment 2 Praveen Kumar 2020-02-18 06:30:15 UTC
Since we moved on to CRC and CDK is now maintenance mode so closing this one.


Note You need to log in before you can comment on or make changes to this bug.