built gogzip
This commit is contained in:
parent
f08962fab4
commit
cf0f68353e
2 changed files with 20 additions and 5 deletions
|
@ -22,3 +22,14 @@ $(NVR).src.rpm: $(spec)
|
|||
--define '_rpmdir $(outdir)' \
|
||||
--nodeps \
|
||||
-bs ./$(spec)
|
||||
|
||||
rpm: $(spec)
|
||||
rpmbuild \
|
||||
--define '_sourcedir $(pwd)' \
|
||||
--define '_specdir $(pwd)' \
|
||||
--define '_builddir $(pwd)' \
|
||||
--define '_srcrpmdir $(outdir)' \
|
||||
--define '_rpmdir $(outdir)' \
|
||||
--nodeps \
|
||||
-bb ./$(spec)
|
||||
|
||||
|
|
|
@ -12,26 +12,30 @@ URL: https://git.thisco.de/vbatts/hack-rpm
|
|||
Source0: https://git.thisco.de/vbatts/gogzip/archive/v0.1.0.tar.gz
|
||||
|
||||
BuildRequires: golang
|
||||
#Requires:
|
||||
|
||||
%global debug_package %{nil}
|
||||
%define __os_install_post %{nil}
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%setup -q -n gogzip
|
||||
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
go get ./...
|
||||
go build .
|
||||
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
mkdir -p %{buildroot}/usr/bin
|
||||
install gogzip %{buildroot}/usr/bin/gogzip
|
||||
|
||||
|
||||
%files
|
||||
%doc
|
||||
/usr/bin/gogzip
|
||||
|
||||
|
||||
|
||||
|
|
Reference in a new issue