-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgolang-github-shurcooL-sanitized_anchor_name.patch
42 lines (37 loc) · 1.42 KB
/
golang-github-shurcooL-sanitized_anchor_name.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
diff --git a/golang-github-shurcooL-sanitized_anchor_name.spec b/golang-github-shurcooL-sanitized_anchor_name.spec
index 70bd4d3..6b5b437 100644
--- a/golang-github-shurcooL-sanitized_anchor_name.spec
+++ b/golang-github-shurcooL-sanitized_anchor_name.spec
@@ -6,10 +6,14 @@
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
%global commit 8e87604bec3c645a4eeaee97dfec9f25811ff20d
%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global gccgo_version >= 5
+%global golang_version >= 1.2.1-3
Name: golang-%{provider}-%{project}-%{repo}
Version: 0
-Release: 0.1.git%{shortcommit}%{?dist}
+Release: 0.1.sgit%{shortcommit}%{?dist}
+# Be ahead of Fedora
+Epoch: 1
Summary: Package sanitized_anchor_name provides a func to create sanitized anchor names
License: MIT
URL: https://%{import_path}
@@ -25,8 +29,9 @@ ExclusiveArch: %{ix86} x86_64 %{arm}
%{summary}
%package devel
-BuildRequires: golang >= 1.2.1-3
-Requires: golang >= 1.2.1-3
+
+%buildrequiresgo
+%requiresgo
Summary: %{summary}
Provides: golang(%{import_path}) = %{version}-%{release}
@@ -47,7 +52,8 @@ install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/
%check
-GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+
+%gotest %{import_path}
%files devel
%doc README.md LICENSE