The package rpms/golang-github-chaseadamsio-goorgeous.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-chaseadamsio-goorge....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit afd745a3f6c4c5339367f3ec2634e306f06a9ecb
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Tue Feb 26 04:17:30 2019 -0500
Change Blackfriday import path to V1 instead of V2.
diff --git a/golang-github-chaseadamsio-goorgeous.spec
b/golang-github-chaseadamsio-goorgeous.spec
index be06307..315be65 100644
--- a/golang-github-chaseadamsio-goorgeous.spec
+++ b/golang-github-chaseadamsio-goorgeous.spec
@@ -21,7 +21,7 @@ Emacs.
Summary: %{summary}
BuildArch: noarch
-BuildRequires:
golang(github.com/russross/blackfriday)
+BuildRequires: golang(gopkg.in/russross/blackfriday.v1)
BuildRequires:
golang(github.com/shurcooL/sanitized_anchor_name)
%description devel
@@ -33,6 +33,9 @@ which use import path with %{goipath} prefix.
%prep
%forgeautosetup -p1
+# Replace blackfriday import path to avoid conflict with v2
+sed -i
's|"github.com/russross/blackfriday|"gopkg.in/russross/blackfriday.v1|'
$(find . -name '*.go')
+
# Blackfriday removed the footnotes features.
# We need to remove such feature from goorgeous upstream as well
# Until then, we skip this feature test
@@ -52,6 +55,9 @@ sed -i '431s/Errorf/Skipf/' goorgeous_test.go
%changelog
+* Tue Feb 26 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 2.0.0-6
+- Fix build against to use old Blackfriday
+
* Tue Feb 26 2019 Elliott Sales de Andrade <quantum.analyst(a)gmail.com> - 2.0.0-6
- Rewrite spec using new template
commit 29e7e4d4d19022dcc52e34a68e0af130b1a6a4b3
Author: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
Date: Tue Feb 26 04:05:45 2019 -0500
Rewrite spec using new template.
diff --git a/.gitignore b/.gitignore
index 7d60130..2e658e4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/goorgeous-054aba6.tar.gz
/goorgeous-e0b2cd6.tar.gz
+/goorgeous-2.0.0.tar.gz
diff --git a/golang-github-chaseadamsio-goorgeous.spec
b/golang-github-chaseadamsio-goorgeous.spec
index 2d8b543..be06307 100644
--- a/golang-github-chaseadamsio-goorgeous.spec
+++ b/golang-github-chaseadamsio-goorgeous.spec
@@ -1,177 +1,60 @@
-# 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
-
-
-%global provider github
-%global provider_tld com
-%global project chaseadamsio
-%global repo goorgeous
#
https://github.com/chaseadamsio/goorgeous
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit e0b2cd6d4e7abdf9a33f017bcc97df2242e05572
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
+%global goipath
github.com/chaseadamsio/goorgeous
Version: 2.0.0
-Release: 5%{dist}
-Summary: Org to HTML Parser written in Go
-License: MIT
-URL: https://%{provider_prefix}
-Source0:
https://%{provider_prefix}/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 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}
+%gometa
+Name: %{goname}
+Release: 6%{?dist}
+Summary: Org to HTML Parser written in Go
+License: MIT
+URL: %{gourl}
+Source0: %{gosource}
%description
The purpose of this package is to come as close as possible as parsing an *.org
document into HTML, the same way one might publish with org-publish-html from
Emacs.
-%if 0%{?with_devel}
+
%package devel
Summary: %{summary}
BuildArch: noarch
-%if 0%{?with_check} && ! 0%{?with_bundled}
BuildRequires:
golang(github.com/russross/blackfriday)
BuildRequires:
golang(github.com/shurcooL/sanitized_anchor_name)
-%endif
-
-Requires:
golang(github.com/russross/blackfriday)
-Requires:
golang(github.com/shurcooL/sanitized_anchor_name)
-
-Provides: golang(%{import_path}) = %{version}-%{release}
%description devel
%{summary}
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%package unit-test-devel
-Summary: Unit tests for %{name} package
-
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
-
-%if 0%{?with_check} && ! 0%{?with_bundled}
-%endif
-
-
-%description unit-test-devel
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+This package contains library source intended for building other packages
+which use import path with %{goipath} prefix.
%prep
-%setup -q -n %{repo}-%{commit}
+%forgeautosetup -p1
+
# Blackfriday removed the footnotes features.
# We need to remove such feature from goorgeous upstream as well
# Until then, we skip this feature test
sed -i '431s/Errorf/Skipf/' goorgeous_test.go
-%build
-%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
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . \( -iname "*.go" -or -iname "*.s" \) \! -iname
"*_test.go") ; 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" >> devel.file-list
-
- while [ "$dirprefix" != "." ]; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >>
devel.file-list
- dirprefix=$(dirname $dirprefix)
- done
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test} && 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test-devel.file-list
-for file in $(find . -iname "*_test.go") ; 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
-# install data used for tests
-cp -pav ./testdata %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%{gopath}/src/%%{import_path}/testdata" >>
unit-test-devel.file-list
-
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list 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
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
+%install
+%goinstall
-%gotest %{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}
-%endif
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test-devel -f unit-test-devel.file-list
-%license LICENSE
-%endif
%changelog
+* Tue Feb 26 2019 Elliott Sales de Andrade <quantum.analyst(a)gmail.com> - 2.0.0-6
+- Rewrite spec using new template
+
* Thu Jan 31 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.0.0-5
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
@@ -206,4 +89,3 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
* Sat Feb 25 2017 Athos Ribeiro <athoscr(a)fedoraproject.org> - 0-0.1.git054aba6
- Initial package
-
diff --git a/sources b/sources
index 7c9ed81..5982705 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (goorgeous-e0b2cd6.tar.gz) =
d5c39c4f6bcfb250f7b98f60042f3c23a7151a5bfb79528379d554028f92b5412911ef9497cb1fd4f74f75c2fc77aa7f65a42ae1dd353b8a9d2f57909c63257f
+SHA512 (goorgeous-2.0.0.tar.gz) =
94b9c76b70a26bba520b7f0e800591bbc377408f397e2a9c42a3b3b4b0d6f984e69070b7a2421a1bbba56ef47cb152b8acfd975e8cfea210f9e40b15ef476607