|
|
ea7aef2 |
%if 0%{?fedora} || 0%{?rhel} == 6
|
|
|
ea7aef2 |
%global with_devel 1
|
|
|
ea7aef2 |
%global with_bundled 0
|
|
|
ea7aef2 |
%global with_debug 0
|
|
|
ea7aef2 |
# cannot find package "github.com/fsouza/go-dockerclient/vendor/github.com/docker/docker/pkg/archive"
|
|
|
ea7aef2 |
%global with_check 0
|
|
|
ea7aef2 |
%global with_unit_test 1
|
|
|
ea7aef2 |
%else
|
|
|
ea7aef2 |
%global with_devel 0
|
|
|
ea7aef2 |
%global with_bundled 0
|
|
|
ea7aef2 |
%global with_debug 0
|
|
|
ea7aef2 |
%global with_check 0
|
|
|
ea7aef2 |
%global with_unit_test 0
|
|
|
ea7aef2 |
%endif
|
|
|
ea7aef2 |
|
|
|
ea7aef2 |
%if 0%{?with_debug}
|
|
|
ea7aef2 |
%global _dwz_low_mem_die_limit 0
|
|
|
ea7aef2 |
%else
|
|
|
7c4824b |
%global debug_package %{nil}
|
|
|
ea7aef2 |
%endif
|
|
|
ea7aef2 |
|
|
|
e03e7a0 |
%global provider github
|
|
|
ea7aef2 |
%global provider_tld com
|
|
|
e03e7a0 |
%global project fsouza
|
|
|
e03e7a0 |
%global repo go-dockerclient
|
|
|
ea7aef2 |
# https://github.com/fsouza/go-dockerclient
|
|
|
ea7aef2 |
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
|
ea7aef2 |
%global import_path %{provider_prefix}
|
|
Fridolin Pokorny |
1463711 |
%global commit 2350d7bc12bb04f2d7d6824c7718012b1397b760
|
|
|
7c4824b |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
7c4824b |
|
|
|
ea7aef2 |
Name: golang-%{provider}-%{project}-%{repo}
|
|
|
ea7aef2 |
Version: 0.2.1
|
|
|
5ee5c65 |
Release: 23.git%{shortcommit}%{?dist}
|
|
|
ea7aef2 |
Summary: Client for the Docker remote API
|
|
|
ea7aef2 |
License: BSD
|
|
|
ea7aef2 |
URL: https://%{provider_prefix}
|
|
|
ea7aef2 |
Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
|
|
|
5c18b05 |
Patch0: remove-external-from-imported-packages.patch
|
|
|
ea7aef2 |
|
|
|
2077484 |
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
|
|
|
2077484 |
ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
|
|
|
2b710d8 |
ExcludeArch: ppc64
|
|
|
2077484 |
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
|
|
|
2077484 |
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
|
|
|
7c4824b |
|
|
|
7c4824b |
%description
|
|
|
7c4824b |
%{summary}
|
|
|
7c4824b |
|
|
|
ea7aef2 |
%if 0%{?with_devel}
|
|
|
7c4824b |
%package devel
|
|
|
ea7aef2 |
Summary: %{summary}
|
|
|
ea7aef2 |
BuildArch: noarch
|
|
|
ea7aef2 |
|
|
|
ea7aef2 |
%if 0%{?with_check}
|
|
|
6d02844 |
BuildRequires: golang(github.com/docker/docker/opts)
|
|
|
6d02844 |
BuildRequires: golang(github.com/docker/docker/pkg/archive)
|
|
|
6d02844 |
BuildRequires: golang(github.com/docker/docker/pkg/fileutils)
|
|
|
6d02844 |
BuildRequires: golang(github.com/docker/docker/pkg/homedir)
|
|
|
6d02844 |
BuildRequires: golang(github.com/docker/docker/pkg/stdcopy)
|
|
|
6d02844 |
BuildRequires: golang(github.com/gorilla/mux)
|
|
|
6d02844 |
BuildRequires: golang(github.com/hashicorp/go-cleanhttp)
|
|
|
ea7aef2 |
%endif
|
|
|
4761736 |
|
|
|
6d02844 |
Requires: golang(github.com/docker/docker/opts)
|
|
|
6d02844 |
Requires: golang(github.com/docker/docker/pkg/archive)
|
|
|
6d02844 |
Requires: golang(github.com/docker/docker/pkg/fileutils)
|
|
|
6d02844 |
Requires: golang(github.com/docker/docker/pkg/homedir)
|
|
|
6d02844 |
Requires: golang(github.com/docker/docker/pkg/stdcopy)
|
|
|
6d02844 |
Requires: golang(github.com/gorilla/mux)
|
|
|
6d02844 |
Requires: golang(github.com/hashicorp/go-cleanhttp)
|
|
|
7c4824b |
|
|
|
ea7aef2 |
Provides: golang(%{import_path}) = %{version}-%{release}
|
|
|
ea7aef2 |
Provides: golang(%{import_path}/testing) = %{version}-%{release}
|
|
|
ea7aef2 |
|
|
|
7c4824b |
%description devel
|
|
|
7c4824b |
%{summary}
|
|
|
7c4824b |
|
|
|
ea7aef2 |
This package contains library source intended for
|
|
|
ea7aef2 |
building other packages which use import path with
|
|
|
ea7aef2 |
%{import_path} prefix.
|
|
|
ea7aef2 |
%endif
|
|
|
ea7aef2 |
|
|
|
2077484 |
%if 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
ea7aef2 |
%package unit-test
|
|
|
ea7aef2 |
Summary: Unit tests for %{name} package
|
|
|
2077484 |
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
|
|
|
2077484 |
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
|
|
|
ea7aef2 |
|
|
|
ea7aef2 |
%if 0%{?with_check}
|
|
|
ea7aef2 |
#Here comes all BuildRequires: PACKAGE the unit tests
|
|
|
ea7aef2 |
#in %%check section need for running
|
|
|
ea7aef2 |
%endif
|
|
|
ea7aef2 |
|
|
|
ea7aef2 |
# test subpackage tests code from devel subpackage
|
|
|
ea7aef2 |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
ea7aef2 |
|
|
|
ea7aef2 |
%description unit-test
|
|
|
ea7aef2 |
%{summary}
|
|
|
ea7aef2 |
|
|
|
ea7aef2 |
This package contains unit tests for project
|
|
|
ea7aef2 |
providing packages with %{import_path} prefix.
|
|
|
ea7aef2 |
%endif
|
|
|
7c4824b |
|
|
|
7c4824b |
%prep
|
|
|
ea7aef2 |
%setup -q -n %{repo}-%{commit}
|
|
|
5c18b05 |
%patch0 -p1
|
|
|
7c4824b |
|
|
|
7c4824b |
%build
|
|
|
7c4824b |
|
|
|
7c4824b |
%install
|
|
|
ea7aef2 |
# source codes for building projects
|
|
|
ea7aef2 |
%if 0%{?with_devel}
|
|
|
ea7aef2 |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
|
|
|
2077484 |
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
|
|
|
ea7aef2 |
# find all *.go but no *_test.go files and generate devel.file-list
|
|
|
f179ebd |
for file in $(find . -iname "*.go" \! -iname "*_test.go" | grep -v "./external") ; do
|
|
|
2077484 |
echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
|
|
|
ea7aef2 |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
|
|
|
ea7aef2 |
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
|
|
|
ea7aef2 |
echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
|
|
|
ea7aef2 |
done
|
|
|
ea7aef2 |
%endif
|
|
|
ea7aef2 |
|
|
|
ea7aef2 |
# testing files for this project
|
|
|
2077484 |
%if 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
ea7aef2 |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
|
|
|
ea7aef2 |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/testing/data
|
|
|
2077484 |
echo "%%dir %%{gopath}/src/%%{import_path}/./testing" >> devel.file-list
|
|
|
ea7aef2 |
cp -rpav testing/data %{buildroot}/%{gopath}/src/%{import_path}/testing/.
|
|
|
ea7aef2 |
echo "%%{gopath}/src/%%{import_path}/testing/data" >> unit-test.file-list
|
|
|
ea7aef2 |
# find all *_test.go files and generate unit-test.file-list
|
|
|
f179ebd |
for file in $(find . -iname "*_test.go" | grep -v "./external"); do
|
|
|
2077484 |
echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
|
|
|
ea7aef2 |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
|
|
|
ea7aef2 |
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
|
|
|
ea7aef2 |
echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
|
|
|
ea7aef2 |
done
|
|
|
ea7aef2 |
%endif
|
|
|
7c4824b |
|
|
|
2077484 |
%if 0%{?with_devel}
|
|
|
2077484 |
sort -u -o devel.file-list devel.file-list
|
|
|
2077484 |
%endif
|
|
|
2077484 |
|
|
|
ea7aef2 |
%check
|
|
|
ea7aef2 |
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
2077484 |
%if ! 0%{?with_bundled}
|
|
|
2077484 |
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
|
|
|
ea7aef2 |
%else
|
|
|
2077484 |
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
|
|
|
ea7aef2 |
%endif
|
|
|
2077484 |
|
|
|
2077484 |
%if ! 0%{?gotest:1}
|
|
|
2077484 |
%global gotest go test
|
|
|
ea7aef2 |
%endif
|
|
|
ea7aef2 |
|
|
|
2077484 |
%gotest %{import_path}
|
|
|
2077484 |
%gotest %{import_path}/testing
|
|
|
ea7aef2 |
%endif
|
|
|
ea7aef2 |
|
|
|
2077484 |
#define license tag if not already defined
|
|
|
2077484 |
%{!?_licensedir:%global license %doc}
|
|
|
2077484 |
|
|
|
ea7aef2 |
%if 0%{?with_devel}
|
|
|
ea7aef2 |
%files devel -f devel.file-list
|
|
|
2077484 |
%license LICENSE DOCKER-LICENSE
|
|
|
ea7aef2 |
%doc AUTHORS README.markdown
|
|
|
e03e7a0 |
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
|
|
|
ea7aef2 |
%endif
|
|
|
ea7aef2 |
|
|
|
2077484 |
%if 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
ea7aef2 |
%files unit-test -f unit-test.file-list
|
|
|
2077484 |
%license LICENSE DOCKER-LICENSE
|
|
|
ea7aef2 |
%doc AUTHORS README.markdown
|
|
|
ea7aef2 |
%endif
|
|
|
7c4824b |
|
|
|
7c4824b |
%changelog
|
|
|
5ee5c65 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-23.git2350d7b
|
|
|
5ee5c65 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
5ee5c65 |
|
|
|
31e1934 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-22.git2350d7b
|
|
|
31e1934 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
31e1934 |
|
|
|
da62867 |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-21.git2350d7b
|
|
|
da62867 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
da62867 |
|
|
|
9efc8b6 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-20.git2350d7b
|
|
|
9efc8b6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
9efc8b6 |
|
|
|
2b710d8 |
* Mon Jun 26 2017 Jan Chaloupka <jchaloup@redhat.com> - 0.2.1-19.git2350d7b
|
|
|
2b710d8 |
- No docker on ppc64 so far
|
|
|
2b710d8 |
related: #1215656
|
|
|
2b710d8 |
|
|
|
a683a97 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-18.git2350d7b
|
|
|
a683a97 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
a683a97 |
|
|
|
c645925 |
* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-17.git2350d7b
|
|
|
c645925 |
- https://fedoraproject.org/wiki/Changes/golang1.7
|
|
|
c645925 |
|
|
|
7e6a6bc |
* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-16.git2350d7b
|
|
|
7e6a6bc |
- https://fedoraproject.org/wiki/Changes/golang1.6
|
|
|
7e6a6bc |
|
|
|
6d02844 |
* Tue Feb 09 2016 jchaloup <jchaloup@redhat.com> - 0.2.1-15.git2350d7b
|
|
|
6d02844 |
- Add missing [B]R not reported by 'gofed lint'
|
|
|
6d02844 |
related: #1215656
|
|
|
6d02844 |
|
|
|
5c18b05 |
* Mon Feb 08 2016 jchaloup <jchaloup@redhat.com> - 0.2.1-14.git2350d7b
|
|
|
5c18b05 |
- don't import bundled deps
|
|
|
5c18b05 |
related: #1215656
|
|
|
5c18b05 |
|
|
|
c7fbae1 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-13.git2350d7b
|
|
|
c7fbae1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
c7fbae1 |
|
|
|
f179ebd |
* Wed Jan 13 2016 jchaloup <jchaloup@redhat.com> - 0.2.1-12.git2350d7b
|
|
|
f179ebd |
- vendor directory was renamed to external
|
|
|
f179ebd |
related: #1215656
|
|
|
f179ebd |
|
|
Fridolin Pokorny |
1463711 |
* Wed Jan 06 2016 Fridolin Pokorny <fpokorny@redhat.com> - 0.2.1-11.git2350d7b
|
|
Fridolin Pokorny |
1463711 |
- Bump to upstream 2350d7bc12bb04f2d7d6824c7718012b1397b760
|
|
Fridolin Pokorny |
1463711 |
related: #1215656
|
|
Fridolin Pokorny |
1463711 |
|
|
|
2077484 |
* Sat Sep 12 2015 jchaloup <jchaloup@redhat.com> - 0.2.1-10.gitf95d189
|
|
|
2077484 |
- Update to spec-2.1
|
|
|
2077484 |
related: #1215656
|
|
|
2077484 |
|
|
|
ea7aef2 |
* Fri Jul 31 2015 jchaloup <jchaloup@redhat.com> - 0.2.1-9.gitf95d189
|
|
|
ea7aef2 |
- Update spec file to spec-2.0
|
|
|
ea7aef2 |
related: #1215656
|
|
|
ea7aef2 |
|
|
|
3f0b5f7 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-8.gitf95d189
|
|
|
3f0b5f7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
3f0b5f7 |
|
|
|
4761736 |
* Wed Jun 10 2015 jchaloup <jchaloup@redhat.com> - 0.2.1-7.gitf95d189
|
|
|
4761736 |
- Add missing Provides
|
|
|
4761736 |
related: #1215656
|
|
|
4761736 |
|
|
|
c4d8862 |
* Tue Jun 02 2015 jchaloup <jchaloup@redhat.com> - 0.2.1-6.gitf95d189
|
|
|
c4d8862 |
- Bump to upstream f95d189acbfcb8628482decdb662d30bc74913e8
|
|
|
c4d8862 |
related: #1215656
|
|
|
c4d8862 |
|
|
|
77bff3b |
* Mon Apr 27 2015 jchaloup <jchaloup@redhat.com> - 0.2.1-5.git0dfe1f1
|
|
|
77bff3b |
- Bump to upstream 0dfe1f16045e9e460430ee10ec1dea8d86c9bd9f
|
|
|
77bff3b |
resolves: #1215656
|
|
|
77bff3b |
|
|
|
2c3c32a |
* Wed Jan 28 2015 jchaloup <jchaloup@redhat.com> - 0.2.1-4.git0758f40
|
|
|
2c3c32a |
- Bump to upstream 0758f407f25a8df60c540b0ec758905192687e14
|
|
|
2c3c32a |
related: #1085840
|
|
|
2c3c32a |
|
|
|
45032e4 |
* Wed Dec 24 2014 jchaloup <jchaloup@redhat.com> - 0.2.1-3.git15d2c6e
|
|
|
45032e4 |
- Bump to b52383442df766febf51f9f858ee311f69a2f264
|
|
|
45032e4 |
related: #1085840
|
|
|
45032e4 |
|
|
|
e03e7a0 |
* Thu Oct 16 2014 lsm5@riseup.net - 0.2.1-2.git15d2c6e
|
|
|
e03e7a0 |
- update to latest upstream commit
|
|
|
e03e7a0 |
|
|
|
450350e |
* Mon Sep 29 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.2.1-1.git0236a64
|
|
|
450350e |
- update to upstream commit 0236a64c6c4bd563ec277ba00e370cc753e1677c
|
|
|
450350e |
- don't own dirs owned by golang, don't redefine gopath
|
|
|
450350e |
- preserve timestamps of copied files
|
|
|
450350e |
|
|
Colin Walters |
90a714d |
* Tue Jul 22 2014 Colin Walters <walters@redhat.com>
|
|
Colin Walters |
90a714d |
- Update to newer version for Kubernetes work
|
|
Colin Walters |
90a714d |
|
|
|
802c58a |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.2.gitd639515
|
|
|
802c58a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
802c58a |
|
|
|
7c4824b |
* Thu Apr 03 2014 Lokesh Mandvekar <lsm5@redhat.com> 0-0.1.git
|
|
|
7c4824b |
- Initial package
|
|
|
2077484 |
|