Browse Source

built gogzip

master
Vincent Batts 9 months ago
parent
commit
cf0f68353e
2 changed files with 20 additions and 5 deletions
  1. +11
    -0
      .copr/Makefile
  2. +9
    -5
      hack-rpm.spec

+ 11
- 0
.copr/Makefile View File

@@ -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)


+ 9
- 5
hack-rpm.spec View File

@@ -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