mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
@@ -0,0 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "golang-github-rs-curlie.spec"
|
||||
sources = "."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
# Generated by go2rpm 1.8.2
|
||||
%bcond_without check
|
||||
|
||||
# https://github.com/rs/curlie
|
||||
%global goipath github.com/rs/curlie
|
||||
Version: 1.6.9
|
||||
|
||||
%gometa -f
|
||||
|
||||
%global common_description %{expand:
|
||||
The power of curl, the ease of use of httpie.}
|
||||
|
||||
%global golicenses LICENSE
|
||||
%global godocs README.md
|
||||
|
||||
Name: %{goname}
|
||||
Release: %autorelease
|
||||
Summary: The power of curl, the ease of use of httpie
|
||||
|
||||
License: MIT
|
||||
URL: %{gourl}
|
||||
Source: %{gosource}
|
||||
|
||||
%description %{common_description}
|
||||
|
||||
%gopkg
|
||||
|
||||
%prep
|
||||
%goprep
|
||||
|
||||
%generate_buildrequires
|
||||
%go_generate_buildrequires
|
||||
|
||||
%build
|
||||
%gobuild -o %{gobuilddir}/bin/curlie %{goipath}
|
||||
|
||||
%install
|
||||
%gopkginstall
|
||||
install -m 0755 -vd %{buildroot}%{_bindir}
|
||||
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%gocheck
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_bindir}/curlie
|
||||
|
||||
%gopkgfiles
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
|
||||
%package -n curlie
|
||||
Summary: The power of curl, the ease of use of httpie
|
||||
%description -n curlie %{common_description}
|
||||
%files -n curlie
|
||||
%license LICENSE
|
||||
%{_bindir}/curlie
|
||||
Reference in New Issue
Block a user