Projects
Eulaceura:Factory
golang-gopkg-yaml
_service:obs_scm:golang-gopkg-yaml.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:golang-gopkg-yaml.spec of Package golang-gopkg-yaml
%global goipath github.com/go-yaml/yaml %gometa Name: golang-gopkg-yaml Version: 1 Release: 25 Summary: YAML support for the Go language License: LGPLv3 with exceptions URL: https://github.com/go-yaml/yaml Source0: https://github.com/go-yaml/yaml/archive/cd8b52f8269e0feb286dfeef29f8fe4d5b397e0b/yaml-cd8b52f8269e0feb286dfeef29f8fe4d5b397e0b.tar.gz Source1: https://github.com/go-yaml/yaml/archive/1b9791953ba4027efaeb728c7355e542a203be5e/yaml-1b9791953ba4027efaeb728c7355e542a203be5e.tar.gz %description YAML support for the Go language. %package devel Summary: YAML support for the Go language BuildArch: noarch BuildRequires: golang(gopkg.in/check.v1) go-compilers-golang-compiler Requires: golang(gopkg.in/check.v1) %description devel YAML support for the Go language.The yaml package is almost compatible with YAML 1.1, including support for anchors, tags, etc. There are still a few missing bits, such as document merging, base-60 floats (huh?), and multi-document unmarshalling. These features are not hard to add, and will be introduced as necessary. This package contains library source intended for building other packages which use import path with gopkg.in/v1/yaml prefix. %package devel-v2 Summary: YAML support for the Go language BuildArch: noarch %description devel-v2 YAML support for the Go language.The yaml package supports most of YAML 1.1 and 1.2,including support for anchors, tags, map merging, etc. Multi-document unmarshalling is not yet implemented, and base-60 floats from YAML 1.1 are purposefully not supported since they're a poor design and are gone in YAML 1.2. This package contains library source intended for building other packages which use import path with gopkg.in/v1/yaml prefix. %prep %autosetup -n yaml-1b9791953ba4027efaeb728c7355e542a203be5e -T -b 1 -p1 %autosetup -n yaml-cd8b52f8269e0feb286dfeef29f8fe4d5b397e0b -p1 %install %goinstall %goinstall -i gopkg.in/v2/yaml -o devel.file-list %goinstall -i gopkg.in/yaml.v2 -o devel.file-list cw=$(pwd) cd ../yaml-1b9791953ba4027efaeb728c7355e542a203be5e %goinstall -i gopkg.in/v1/yaml -o ${cw}/v1_devel.file-list %goinstall -i gopkg.in/yaml.v1 -o ${cw}/v1_devel.file-list cw=$(pwd) cd %{buildroot}/%{gopath}/src/gopkg.in/v2/yaml/ sed -i 's/"github\.com\/go-yaml\/yaml/"gopkg\.in\/v2\/yaml/g' $(find . -name '*.go') cd %{buildroot}/%{gopath}/src/gopkg.in/yaml.v2/ sed -i 's/"github\.com\/go-yaml\/yaml/"gopkg\.in\/yaml\.v2/g' $(find . -name '*.go') cd %{buildroot}/%{gopath}/src/gopkg.in/yaml.v1/ sed -i 's/"gopkg\.in\/v1\/yaml/"gopkg\.in\/yaml\.v1/g' $(find . -name '*.go') cd ${cw} %check %gochecks cw=$(pwd) cd %{buildroot}/%{gopath}/src/gopkg.in/v2/yaml/ %gochecks -i gopkg.in/v2/yaml cd %{buildroot}/%{gopath}/src/gopkg.in/yaml.v2/ %gochecks cd ${cw} %files devel -f v1_devel.file-list %doc README.md LICENSE LICENSE.libyaml %files devel-v2 -f devel.file-list %doc README.md LICENSE LICENSE.libyaml %changelog * Wed Mar 11 2020 likexin <likexin4@huawei.com> - 1-25 - add buildrequires go-compilers-golang-compiler * Tue Mar 3 2020 likexin <likexin4@huawei.com> - 1-24 - package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2