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)' \
|
--define '_rpmdir $(outdir)' \
|
||||||
--nodeps \
|
--nodeps \
|
||||||
-bs ./$(spec)
|
-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
|
Source0: https://git.thisco.de/vbatts/gogzip/archive/v0.1.0.tar.gz
|
||||||
|
|
||||||
BuildRequires: golang
|
BuildRequires: golang
|
||||||
#Requires:
|
|
||||||
|
%global debug_package %{nil}
|
||||||
|
%define __os_install_post %{nil}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q -n gogzip
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
go get ./...
|
||||||
make %{?_smp_mflags}
|
go build .
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot}
|
mkdir -p %{buildroot}/usr/bin
|
||||||
|
install gogzip %{buildroot}/usr/bin/gogzip
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc
|
%doc
|
||||||
|
/usr/bin/gogzip
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue