Mageia Bugzilla – Attachment 11595 Details for
Bug 26392
Inconsistent source paths in different Golang components;
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
suggestion golang-gopatricia replacement
golang-github-tchap-go-patricia.spec (text/plain), 2.35 KB, created by
Jybz
on 2020-04-18 19:23:52 CEST
(
hide
)
Description:
suggestion golang-gopatricia replacement
Filename:
MIME Type:
Creator:
Jybz
Created:
2020-04-18 19:23:52 CEST
Size:
2.35 KB
patch
obsolete
># Run tests in check section >%bcond_without check > ># £global debug_package %{nil} >%global goipath github.com/tchap/go-patricia >%global provider github >%global provider_tld com >%global project tchap >%global repo go-patricia ># https://github.com/tchap/go-patricia >%global forgeurl https://%{provider}.%{provider_tld}/%{project}/%{repo} >Version: 2.3.0 > > ># global gopath %{_prefix}/lib/golang >%global goroot %{_datadir}/gocode >%global gopath %{goroot} ># global gosrc %{gopath}/src/%{provider}.%{provider_tld}/%{project}/%{repo} >%global gosrc %{gopath}/src/%{goipath} > >#global __requires_exclude golang\\(github.com/project/repo/api\\) > >%global common_description %{expand: >A generic patricia trie (also called radix tree) implemented in Go (Golang). > >The patricia trie as implemented in this library enables fast visiting of items >in some particular ways: > > visit all items saved in the tree, > visit all items matching particular prefix (visit subtree), or > given a string, visit all items matching some prefix of that string. > >[]byte type is used for keys, interface{} for values. > >Trie is not thread safe. Synchronize the access yourself.} > >%gometa > > >Name: %{goname} >Release: %mkrel 1 >Summary: A generic patricia trie (also called radix tree) implemented in Go (Golang) ># For a full list of valid (and invalid) licenses, see /usr/share/rpmlint/TagsCheck.py >License: MIT >#For other groups, see /usr/share/rpmlint/config.d/distribution.exceptions.conf >Group: Development/Other ># For menu, see /usr/share/rpmlint/MenuCheck.py >URL: %{gourl} >Source0: %{gosource} ># Patch0: OnePatchFileInSOURCES.patch ># Patch0: %{forgeurl}/commit/%{Patch0Commit}.patch#/%{Patch0Name}.patch > > >Provides: golang(%{goipath}) = %{version}-%{release} > >BuildRequires: golang ># BuildRequires: golang(github.com/project/repo) > > >%description >%{common_description} > > >%package devel >BuildArch: noarch >Summary: %{summary} > >Provides: golang-%{provider}-%{project}-%{repo}-devel = %{version}-%{release} > > >%description devel >%{common_description} > >This package contains the source code needed for building packages that import >the %{goipath} Go namespace. > > >%prep >%gosetup > > >%install >%goinstall > > >%if %{with check} >%check >%gochecks >%endif > > >%files devel -f devel.file-list >%license LICENSE >%doc README.md AUTHORS
# Run tests in check section %bcond_without check # £global debug_package %{nil} %global goipath github.com/tchap/go-patricia %global provider github %global provider_tld com %global project tchap %global repo go-patricia # https://github.com/tchap/go-patricia %global forgeurl https://%{provider}.%{provider_tld}/%{project}/%{repo} Version: 2.3.0 # global gopath %{_prefix}/lib/golang %global goroot %{_datadir}/gocode %global gopath %{goroot} # global gosrc %{gopath}/src/%{provider}.%{provider_tld}/%{project}/%{repo} %global gosrc %{gopath}/src/%{goipath} #global __requires_exclude golang\\(github.com/project/repo/api\\) %global common_description %{expand: A generic patricia trie (also called radix tree) implemented in Go (Golang). The patricia trie as implemented in this library enables fast visiting of items in some particular ways: visit all items saved in the tree, visit all items matching particular prefix (visit subtree), or given a string, visit all items matching some prefix of that string. []byte type is used for keys, interface{} for values. Trie is not thread safe. Synchronize the access yourself.} %gometa Name: %{goname} Release: %mkrel 1 Summary: A generic patricia trie (also called radix tree) implemented in Go (Golang) # For a full list of valid (and invalid) licenses, see /usr/share/rpmlint/TagsCheck.py License: MIT #For other groups, see /usr/share/rpmlint/config.d/distribution.exceptions.conf Group: Development/Other # For menu, see /usr/share/rpmlint/MenuCheck.py URL: %{gourl} Source0: %{gosource} # Patch0: OnePatchFileInSOURCES.patch # Patch0: %{forgeurl}/commit/%{Patch0Commit}.patch#/%{Patch0Name}.patch Provides: golang(%{goipath}) = %{version}-%{release} BuildRequires: golang # BuildRequires: golang(github.com/project/repo) %description %{common_description} %package devel BuildArch: noarch Summary: %{summary} Provides: golang-%{provider}-%{project}-%{repo}-devel = %{version}-%{release} %description devel %{common_description} This package contains the source code needed for building packages that import the %{goipath} Go namespace. %prep %gosetup %install %goinstall %if %{with check} %check %gochecks %endif %files devel -f devel.file-list %license LICENSE %doc README.md AUTHORS
View Attachment As Raw
Actions:
View
Attachments on
bug 26392
: 11595 |
11597
|
11598
|
11600