Merge pull request #13 from terrapkg/package/curlie

Add Curlie
This commit is contained in:
lleyton
2022-10-25 21:43:57 -07:00
committed by GitHub
2 changed files with 68 additions and 0 deletions
+6
View File
@@ -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