Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.
/ golang-1.9-rpm Public archive

[deprecated] Use golang-1.10-rpm instead. Unofficial golang 1.9.x rpm packages for CentOS 6 and 7

License

Notifications You must be signed in to change notification settings

hnakamur/golang-1.9-rpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang-1.9-rpm

A Dockerfile to build The Go Programming Language 1.9.x rpm for CentOS 6 and 7 using fedora copr.

The spec file and patch files were copied from https://github.com/jcajka/copr-golang/tree/golang1.8

Setup

  1. Copy .envrc.example to .envrc.
  2. Go https://copr.fedoraproject.org/api/ and login in and see the values to set.
  3. Then modify .envrc

Usage: How to build rpms

Build docker image

To build the docker image to build the srpm or rpm files, run the following command.

./docker_wrapper.sh build

Build rpms using mock on a docker container

To try building rpm files with mock, run the following command.

source .envrc
./docker_wrapper.sh bash

Then in the docker container, run the fowllowing command to build rpms with mock.

./build.sh mock

If the build finish successfully, run the following command to upload the srpm file to copr.

./build.sh copr

Build srpm and upload it to copr

If you are sure your rpms will be built successfully, skip the above section "Build rpms interactively" and run the following command to run the docker image to build the srpm file and upload it to copr.

source .envrc
./docker_wrapper.sh run

NOTE: Using direnv

I recommend you to use direnv/direnv instead of running source .envrc yourself.

Modify this scripts to build other rpms

  1. Edit imagename in docker_wrapper.sh
  2. See NOTE comments in script/build.sh and edit variables and commands
  3. Put the spec file in the SPECS directory
  4. Put the source files in the SOURCES directory

License

MIT

About

[deprecated] Use golang-1.10-rpm instead. Unofficial golang 1.9.x rpm packages for CentOS 6 and 7

Resources

License

Stars

Watchers

Forks

Packages

No packages published