The package rpms/golang-github-BurntSushi-freetype-go.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-github-BurntSushi-freetype-go....
Change: -ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change: ============
commit 2964cc9d11c689514924a03efea0a7ea689deb56 Author: mosquito sensor.wen@gmail.com Date: Thu Nov 15 01:53:40 2018 +0800
Change upstream to github.com/golang/freetype
diff --git a/.gitignore b/.gitignore index f3a1f87..dad1d38 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /freetype-go-b763ddb.tar.gz /freetype-go-b763ddbfe298bf71c999a2833470da508f3a0677.tar.gz +/freetype-e2365dfdc4a05e4b8299a783240d4a7d5a65d4e4.tar.gz diff --git a/README.md b/README.md index dd9afa4..5ab90b3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # golang-github-BurntSushi-freetype-go
-The golang-github-BurntSushi-freetype-go package \ No newline at end of file +The golang-github-BurntSushi-freetype-go package diff --git a/golang-github-BurntSushi-freetype-go.spec b/golang-github-BurntSushi-freetype-go.spec index 775f8a5..8c1c174 100644 --- a/golang-github-BurntSushi-freetype-go.spec +++ b/golang-github-BurntSushi-freetype-go.spec @@ -1,15 +1,20 @@ -# https://github.com/BurntSushi/freetype-go -%global goipath github.com/BurntSushi/freetype-go -%global commit b763ddbfe298bf71c999a2833470da508f3a0677 +# Run tests in check section +# disable for bootstrapping +%bcond_with check + +%global goipath github.com/golang/freetype +%global goipath2 github.com/BurntSushi/freetype-go/freetype +%global goname2 %gorpmname %{goipath2} +%global commit e2365dfdc4a05e4b8299a783240d4a7d5a65d4e4
%gometa
-Name: golang-github-BurntSushi-freetype-go +Name: %{goname} Version: 0 -Release: 0.4%{?dist} -Summary: A fork of freetype-go with bounding box calculations # Detected licences # - *No copyright* UNKNOWN at 'LICENSE' +Release: 0.5%{?dist} +Summary: The Freetype font rasterizer in the Go programming language License: GPLv2+ or FTL URL: %{gourl} Source0: %{gosource} @@ -17,7 +22,6 @@ Source0: %{gosource} %description %{summary}
- %package devel Summary: %{summary} BuildArch: noarch @@ -29,25 +33,44 @@ This package contains library source intended for building other packages which use import path with %{goipath} prefix.
+%package -n compat-%{goname2}-devel +Summary: %{summary} +BuildArch: noarch +Obsoletes: %{goname2}-devel < %{version}-%{release} + +%description -n compat-%{goname2}-devel +%{summary}. + +This package contains compatibility glue for code +that still imports the %{goipath2} Go namespace.
%prep %forgeautosetup
- %install %goinstall
+# Add symlink to older name +install -d -p %{buildroot}%{gopath}/src/%(dirname %{goipath2}) +ln -s %{gopath}/src/%{goipath} %{buildroot}%{gopath}/src/%{goipath2}
+%if %{with check} %check %gochecks - +%endif
%files devel -f devel.file-list %license LICENSE %doc README CONTRIBUTORS AUTHORS
+%files -n compat-%{goname2}-devel +%dir %{gopath}/src/%(dirname %{goipath2}) +%{gopath}/src/%{goipath2}
%changelog +* Wed Nov 14 2018 mosquito sensor.wen@gmail.com - 0-0.5.20181114gite2365df +- Change upstream to github.com/golang/freetype + * Mon Nov 12 2018 Robert-Andr Mauchin zebob.m@gmail.com - 0-0.4.20181113gitb763ddb - Update to new Go packaging
diff --git a/sources b/sources index b54b8f4..0750a31 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (freetype-go-b763ddbfe298bf71c999a2833470da508f3a0677.tar.gz) = 3e56e8375dc634a42cad2cbc6fb6e65a27ea94ce97513c428a9367922525b12ca05ccae7322256e537ac67a5846c3dfd2d2c9eee5beeb7f9a6a0ce3cdfa97de8 +SHA512 (freetype-e2365dfdc4a05e4b8299a783240d4a7d5a65d4e4.tar.gz) = 47f437a4d076cc6e72b295c3cc13bae66abc026b5f5961b17cae427acd285a006316adc44a48a2af5f8bdf1a787a0bc15a8c953664a5f65732868efbeabd8de9
commit 8678a3f9ebe2045ba526b01c79187730d096317a Author: Robert-Andr Mauchin zebob.m@gmail.com Date: Tue Nov 13 18:16:44 2018 +0100
Update to new Go packaging
Signed-off-by: Robert-Andr Mauchin zebob.m@gmail.com
diff --git a/.gitignore b/.gitignore index 63ff7b5..f3a1f87 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /freetype-go-b763ddb.tar.gz +/freetype-go-b763ddbfe298bf71c999a2833470da508f3a0677.tar.gz diff --git a/golang-github-BurntSushi-freetype-go.spec b/golang-github-BurntSushi-freetype-go.spec index a7e80a0..775f8a5 100644 --- a/golang-github-BurntSushi-freetype-go.spec +++ b/golang-github-BurntSushi-freetype-go.spec @@ -1,111 +1,56 @@ -%global debug_package %{nil} - -%global provider github -%global provider_tld com -%global project BurntSushi -%global repo freetype-go # https://github.com/BurntSushi/freetype-go -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} -%global commit b763ddbfe298bf71c999a2833470da508f3a0677 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global goipath github.com/BurntSushi/freetype-go +%global commit b763ddbfe298bf71c999a2833470da508f3a0677 + +%gometa
-Name: golang-%{provider}-%{project}-%{repo} +Name: golang-github-BurntSushi-freetype-go Version: 0 -Release: 0.3.git%{shortcommit}%{?dist} +Release: 0.4%{?dist} Summary: A fork of freetype-go with bounding box calculations +# Detected licences +# - *No copyright* UNKNOWN at 'LICENSE' License: GPLv2+ or FTL -URL: https://%%7Bprovider_prefix%7D -Source0: %{url}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz - -# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required -ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{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} +URL: %{gourl} +Source0: %{gosource}
%description -%{summary}. +%{summary} +
%package devel -Summary: %{summary} -BuildArch: noarch -Provides: golang(%{import_path}/freetype) = %{version}-%{release} -Provides: golang(%{import_path}/freetype/truetype) = %{version}-%{release} -Provides: golang(%{import_path}/freetype/raster) = %{version}-%{release} +Summary: %{summary} +BuildArch: noarch
%description devel -%{summary}. +%{summary}
This package contains library source intended for building other packages which use import path with -%{import_path} prefix. - -%package unit-test-devel -Summary: Unit tests for %{name} package -BuildArch: noarch -# test subpackage tests code from devel subpackage -Requires: %{name}-devel = %{version}-%{release} - -%description unit-test-devel -%{summary}. - -This package contains unit tests for project -providing packages with %{import_path} prefix. +%{goipath} prefix.
%prep -%setup -q -n %{repo}-%{commit} +%forgeautosetup
-%build
%install -# source codes for building projects -install -d -p %{buildroot}%{gopath}/src/%{import_path}/ -echo "%%dir %%{gopath}/src/%%{import_path}/." >> 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 - -# testing files for this project -install -d %{buildroot}%{gopath}/src/%{import_path}/ -# find all *_test.go files and generate unit-test.file-list -for file in $(find . -iname "*_test.go" -or -iname "luxi-fonts"); do - dirprefix=$(dirname $file) - install -d -p %{buildroot}%{gopath}/src/%{import_path}/$dirprefix - cp -pav $file %{buildroot}%{gopath}/src/%{import_path}/$file - echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list - while [ "$dirprefix" != "." ]; do - echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list - dirprefix=$(dirname $dirprefix) - done -done - -sort -u -o devel.file-list devel.file-list -sort -u -o unit-test-devel.file-list unit-test-devel.file-list +%goinstall
-%check -export GOPATH=%{buildroot}%{gopath}:%{gopath}
-%if ! 0%{?gotest:1} -%global gotest go test -%endif +%check +%gochecks
-%gotest %{import_path}/freetype -%gotest %{import_path}/freetype/raster -%gotest %{import_path}/freetype/truetype
%files devel -f devel.file-list -%doc README %license LICENSE -%dir %{gopath}/src/%{import_path} +%doc README CONTRIBUTORS AUTHORS
-%files unit-test-devel -f unit-test-devel.file-list
%changelog +* Mon Nov 12 2018 Robert-Andr Mauchin zebob.m@gmail.com - 0-0.4.20181113gitb763ddb +- Update to new Go packaging + * Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 0-0.3.gitb763ddb - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources index 28c75bc..b54b8f4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (freetype-go-b763ddb.tar.gz) = 3e56e8375dc634a42cad2cbc6fb6e65a27ea94ce97513c428a9367922525b12ca05ccae7322256e537ac67a5846c3dfd2d2c9eee5beeb7f9a6a0ce3cdfa97de8 +SHA512 (freetype-go-b763ddbfe298bf71c999a2833470da508f3a0677.tar.gz) = 3e56e8375dc634a42cad2cbc6fb6e65a27ea94ce97513c428a9367922525b12ca05ccae7322256e537ac67a5846c3dfd2d2c9eee5beeb7f9a6a0ce3cdfa97de8
commit ef92436830a86e52f27aece92db0409f7205fa8b Author: Fedora Release Engineering releng@fedoraproject.org Date: Fri Jul 13 03:14:08 2018 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering releng@fedoraproject.org
diff --git a/golang-github-BurntSushi-freetype-go.spec b/golang-github-BurntSushi-freetype-go.spec index de02aa0..a7e80a0 100644 --- a/golang-github-BurntSushi-freetype-go.spec +++ b/golang-github-BurntSushi-freetype-go.spec @@ -12,7 +12,7 @@
Name: golang-%{provider}-%{project}-%{repo} Version: 0 -Release: 0.2.git%{shortcommit}%{?dist} +Release: 0.3.git%{shortcommit}%{?dist} Summary: A fork of freetype-go with bounding box calculations License: GPLv2+ or FTL URL: https://%%7Bprovider_prefix%7D @@ -106,6 +106,9 @@ export GOPATH=%{buildroot}%{gopath}:%{gopath} %files unit-test-devel -f unit-test-devel.file-list
%changelog +* Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 0-0.3.gitb763ddb +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Wed Feb 07 2018 Fedora Release Engineering releng@fedoraproject.org - 0-0.2.gitb763ddb - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
arch-excludes@lists.fedoraproject.org