forked from mpinheir/eqk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTerremoto-em-go.spec
74 lines (56 loc) · 1.88 KB
/
Terremoto-em-go.spec
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
## START: Set by rpmautospec
## (rpmautospec version 0.3.5)
## RPMAUTOSPEC: autorelease
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 10;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
# Generated by go2rpm 1.9.0
%bcond_without check
# https://github.com/geraldosimiao/Terremoto-em-go
%global goipath github.com/geraldosimiao/Terremoto-em-go
%global tag 1.0.10
%gometa -f
%global common_description %{expand:
Go program to list earthquakes, above 6 degrees, that occurred in the last 30 days}
%global godocs README.md
Name: terremoto-em-go
Version: 1
Release: %autorelease -p
Summary: This Go program fetches and displas Earthquake data
License: MIT
URL: %{gourl}
Source: %{gosource}
%description
The program fetches data from the USGS Earthquake API and displays information about them, including location, magnitude, and time.
%gopkg
%prep
%goprep
%autopatch -p1
%generate_buildrequires
%go_generate_buildrequires
%build
%gobuild -o %{gobuilddir}/bin/Terremoto-em-go %{goipath}
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%if %{with check}
%check
%gocheck
%endif
%files
%doc README.md
%{_bindir}/*
%gopkgfiles
%changelog
* Fri Jan 19 2024 Geraldo Simiao <[email protected]> - 0.3 to 0.8
- Testing github webhook and copr packaging
* Fri Jan 19 2024 Geraldo Simiao <[email protected]> - 0.2
- Rebuild with forked sources
* Thu Jan 18 2024 Geraldo Simiao <[email protected]> - 0
- Rebuild to new commit
* Wed Oct 25 2023 Geraldo Simiao <[email protected]> - 0
- Initial package for fedora