The package rpms/golang-bitbucket-kardianos-osext.git has added or updated architecture
specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/golang-bitbucket-kardianos-osext.....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit f579bed992a8891e5d31bb0dc7b5332f29d80e93
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Sat Mar 2 17:23:26 2019 +0100
Bump to commit ae77be60afb1dcacde03767a8c37337fad28ac14
Use new go packaging
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index c84a286..6753208 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/default.tar.bz2
/osext-9b883c5.tar.gz
+/osext-ae77be60afb1dcacde03767a8c37337fad28ac14.tar.gz
diff --git a/golang-bitbucket-kardianos-osext.spec
b/golang-bitbucket-kardianos-osext.spec
index 90c8bfa..13a74e3 100644
--- a/golang-bitbucket-kardianos-osext.spec
+++ b/golang-bitbucket-kardianos-osext.spec
@@ -1,258 +1,81 @@
-# If any of the following macros should be set otherwise,
-# you can wrap any of them with the following conditions:
-# - %%if 0%%{centos} == 7
-# - %%if 0%%{?rhel} == 7
-# - %%if 0%%{?fedora} == 23
-# Or just test for particular distribution:
-# - %%if 0%%{centos}
-# - %%if 0%%{?rhel}
-# - %%if 0%%{?fedora}
-#
-# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
-# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0
condition.
-# (Don't forget to replace double percentage symbol with single one in order to apply
a condition)
-
-# Generate devel rpm
-%global with_devel 1
-# Build project from bundled dependencies
-%global with_bundled 0
-# Build with debug info rpm
-%global with_debug 0
-# Run tests in check section
-%global with_check 1
-# Generate unit-test rpm
-%global with_unit_test 1
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-
-# upstream has moved from bitbucket to github, provide both things
-
-%global project kardianos
-%global repo osext
-
-# old:
https://bitbucket.org/kardianos/osext
-%global old_commit 364fb577de68fb646c4cb39cc0e09c887ee16376
-%global old_shortcommit %(c=%{old_commit}; echo ${c:0:12})
-%global provider bitbucket
-%global provider_tld org
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global old_name golang-%{provider}-%{project}-%{repo}
-
-# new:
https://github.com/kardianos/osext
-%global commit 9b883c5eb462dd5cb1b0a7a104fe86bc6b9bd391
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global new_provider github
-%global new_provider_tld com
-%global new_provider_prefix %{new_provider}.%{new_provider_tld}/%{project}/%{repo}
-%global new_import_path %{new_provider_prefix}
-%global new_name golang-%{new_provider}-%{project}-%{repo}
-
-
-Name: %{old_name}
+#
https://github.com/kardianos/osext
+%global goipath
github.com/kardianos/osext
+%global commit ae77be60afb1dcacde03767a8c37337fad28ac14
+
+%global oldgoipath
bitbucket.org/kardianos/osext
+%global oldgoname %gorpmname %{oldgoipath}
+
+%gometa
+
+Name: %{oldgoname}
Version: 0
-Release: 0.21.git%{shortcommit}%{?dist}
+Release: 0.22%{?dist}
Summary: Extensions to the standard Go OS package
License: BSD
-URL: https://%{new_provider_prefix}
-Source0: https://%{provider_prefix}/get/default.tar.bz2
-Source1:
https://%{new_provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+URL: %{gourl}
+Source0: %{gosource}
Patch0: 00-disable-broken-test.patch
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-
%description
%{summary}
-This package provides extensions to the standard Go OS package,
-including Executable, which returns an absolute path which can
-be used to re-invoke the current program, and ExecutableFolder,
-which returns the directory containing the same.
-
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
-
-Provides: golang(%{import_path}) = %{version}-%{release}
+%package devel
+Summary: %{summary}
+BuildArch: noarch
%description devel
%{summary}
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
+This package contains compatibility glue for code that still imports the
+%{oldgoipath} Go namespace.
-%package -n %{new_name}-devel
-Summary: %{summary}
-BuildArch: noarch
-
-Provides: golang(%{new_import_path}) = %{version}-%{release}
-
-%description -n %{new_name}-devel
-%{summary}
+%package -n %{goname}-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{goname}-devel
+%{common_description}
This package contains library source intended for
building other packages which use import path with
-%{new_import_path} prefix.
-%endif
-
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%package unit-test
-Summary: Unit tests for %{old_name} package
-
-# test subpackage tests code from devel subpackage
-Requires: %{old_name}-devel = %{version}-%{release}
-
-%description unit-test
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-
-
-%package -n %{new_name}-unit-test
-Summary: Unit tests for %{new_name} package
-
-# test subpackage tests code from devel subpackage
-Requires: %{new_name}-devel = %{version}-%{release}
-
-%description -n %{new_name}-unit-test
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{new_import_path} prefix.
-%endif
+%{goipath} prefix.
%prep
-%setup -n %{repo}-%{commit} -b1
-%patch0 -p1
-
-%setup -n %{project}-%{repo}-%{old_shortcommit} -b0
-
-
-%build
+%forgeautosetup
%install
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-
-install -d -p %{buildroot}/%{gopath}/src/%{new_import_path}/
-echo "%%dir %%{gopath}/src/%%{new_import_path}/." >> new-devel.file-list
-
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >>
devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-
-pushd ../%{repo}-%{commit}
-# find all *.go but no *_test.go files and generate new-devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- echo "%%dir %%{gopath}/src/%%{new_import_path}/$(dirname $file)" >>
new-devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{new_import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{new_import_path}/$file
- echo "%%{gopath}/src/%%{new_import_path}/$file" >>
../%{project}-%{repo}-%{old_shortcommit}/new-devel.file-list
-done
-popd
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test} && 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-install -d -p %{buildroot}/%{gopath}/src/%{new_import_path}/
-
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >>
devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-
- echo "%%dir %%{gopath}/src/%%{new_import_path}/$(dirname $file)" >>
new-devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{new_import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{new_import_path}/$file
- echo "%%{gopath}/src/%%{new_import_path}/$file" >>
new-unit-test.file-list
-done
-
-pushd ../%{repo}-%{commit}
-for file in $(find . -iname "*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{new_import_path}/$(dirname $file)" >>
new-devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{new_import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{new_import_path}/$file
- echo "%%{gopath}/src/%%{new_import_path}/$file" >>
../%{project}-%{repo}-%{old_shortcommit}/new-unit-test.file-list
-done
-popd
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-sort -u -o new-devel.file-list new-devel.file-list
-%endif
-
-
-%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-# No dependency directories so far
+%goinstall
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%endif
+install -m 0755 -vd %{buildroot}%{gopath}/src/%(dirname %{oldgoipath})
+ln -s %{gopath}/src/%{goipath} %{buildroot}%{gopath}/src/%{oldgoipath}
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}
-%gotest %{new_import_path}
-%endif
-
-
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
+%check
+%gochecks
-%if 0%{?with_devel}
-%files devel -f devel.file-list
-%license LICENSE
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%files -n %{new_name}-devel -f new-devel.file-list
+%files devel
%license LICENSE
-%dir %{gopath}/src/%{new_provider}.%{new_provider_tld}/%{project}
-%endif
+%doc README.md
+%dir %{gopath}/src/%(dirname %{oldgoipath})
+%{gopath}/src/%{oldgoipath}
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test -f unit-test.file-list
+%files -n %{goname}-devel -f devel.file-list
%license LICENSE
-
-%files -n %{new_name}-unit-test -f new-unit-test.file-list
-%license LICENSE
-%endif
+%doc README.md
%changelog
+* Sat Mar 02 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> -
0-0.22.20181006gitae77be6
+- Bump to commit ae77be60afb1dcacde03767a8c37337fad28ac14
+- Use new go packaging
+
* Thu Jan 31 2019 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.21.git9b883c5
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
@@ -268,7 +91,7 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
* Wed Jul 26 2017 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.17.git9b883c5
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
-* Fri Mar 04 2017 Fabio Valentini <decathorpe(a)gmail.com> - 0-0.16.git9b883c5
+* Sat Mar 04 2017 Fabio Valentini <decathorpe(a)gmail.com> - 0-0.16.git9b883c5
- Disable a broken test that leads to intermittent failures.
* Fri Mar 03 2017 Fabio Valentini <decathorpe(a)gmail.com> - 0-0.15.git9b883c5
@@ -319,4 +142,3 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
* Sat Oct 12 2013 Lokesh Mandvekar <lsm5(a)redhat.com> 0-0.1.hg364fb577de68
- Initial fedora package
-
diff --git a/sources b/sources
index b89606f..aba05d8 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-SHA512 (default.tar.bz2) =
c415be4babcdc0587592db8edfcfa9b2e81151fad38d95b64deced9b9df32a4834a46649664228343b7d34f028f4450cb317c23632384174dee360e640a1d009
-SHA512 (osext-9b883c5.tar.gz) =
9e6e266aca00fa896b129258ba9a35471be1be1bbad7a3ceab03d433fef384c8e55ee08707d65a18d7ff5e7224886a7d15c40e4a914b58af58e20f7170991df1
+SHA512 (osext-ae77be60afb1dcacde03767a8c37337fad28ac14.tar.gz) =
924fb47d68a300e7a17e67259c1ca6f395c23a2d630cabccdcea7ff76a9087597b317c2cdc9cecc42d885ce1e8faab338539f210681f02c695657d7b17039bc7