From f08962fab4f40521dd6d48060d955624dcab958f Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Thu, 17 Oct 2019 08:35:06 -0400 Subject: [PATCH] initial commit --- .copr/Makefile | 24 ++++++++++++++++++++++++ hack-rpm.spec | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .copr/Makefile create mode 100644 hack-rpm.spec diff --git a/.copr/Makefile b/.copr/Makefile new file mode 100644 index 0000000..52e1480 --- /dev/null +++ b/.copr/Makefile @@ -0,0 +1,24 @@ + +pkgname := hack-rpm +spec := $(pkgname).spec +pwd := $(shell pwd) +NAME := $(shell rpmspec -q --qf "%{name}" $(spec)) +VERSION := $(shell rpmspec -q --qf "%{version}" $(spec)) +RELEASE := $(shell rpmspec -q --qf "%{release}" $(spec)) +NVR := $(NAME)-$(VERSION)-$(RELEASE) +outdir ?= $(pwd) + +default: srpm + +.PHONY:srpm +srpm: $(NVR).src.rpm + +$(NVR).src.rpm: $(spec) + rpmbuild \ + --define '_sourcedir $(pwd)' \ + --define '_specdir $(pwd)' \ + --define '_builddir $(pwd)' \ + --define '_srcrpmdir $(outdir)' \ + --define '_rpmdir $(outdir)' \ + --nodeps \ + -bs ./$(spec) diff --git a/hack-rpm.spec b/hack-rpm.spec new file mode 100644 index 0000000..a5b26ef --- /dev/null +++ b/hack-rpm.spec @@ -0,0 +1,39 @@ + +%define _disable_source_fetch 0 + +Name: hack-rpm +Version: 0.1 +Release: 1%{?dist} +Summary: testing + +Group: testing +License: MIT +URL: https://git.thisco.de/vbatts/hack-rpm +Source0: https://git.thisco.de/vbatts/gogzip/archive/v0.1.0.tar.gz + +BuildRequires: golang +#Requires: + +%description +%{summary}. + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%install +make install DESTDIR=%{buildroot} + + +%files +%doc + + + +%changelog +