diff --git a/Makefile b/Makefile index 96485d9..bd8bfae 100644 --- a/Makefile +++ b/Makefile @@ -59,20 +59,13 @@ cleanall: clean rm -f $(BIN) rm -f versitygw-*.tar rm -f versitygw-*.tar.gz - rm -f versitygw.spec - -%.spec: %.spec.in - sed -e 's/@@VERSION@@/$(VERSION)/g' < $< > $@+ - mv $@+ $@ TARFILE = $(BIN)-$(VERSION).tar -dist: $(BIN).spec +dist: echo $(VERSION) >VERSION git archive --format=tar --prefix $(BIN)-$(VERSION)/ HEAD > $(TARFILE) - @ tar rf $(TARFILE) --transform="s@\(.*\)@$(BIN)-$(VERSION)/\1@" $(BIN).spec VERSION rm -f VERSION - rm -f $(BIN).spec gzip -f $(TARFILE) # Creates and runs S3 gateway instance in a docker container diff --git a/versitygw.spec.in b/versitygw.spec.in deleted file mode 100644 index f939e76..0000000 --- a/versitygw.spec.in +++ /dev/null @@ -1,31 +0,0 @@ -%global debug_package %{nil} -%define pkg_version @@VERSION@@ - -Name: versitygw -Version: %{pkg_version} -Release: 1%{?dist} -Summary: Versity S3 Gateway - -License: Apache-2.0 -URL: https://github.com/versity/versitygw -Source0: %{name}-%{version}.tar.gz -%description -The S3 gateway is an S3 protocol translator that allows an S3 client -to access the supported backend storage as if it was a native S3 service. - -BuildRequires: golang >= 1.20 - -%prep -%setup - -%build -make - -%install -mkdir -p %{buildroot}%{_bindir} -install -m 0755 %{name} %{buildroot}%{_bindir}/ - -%post - -%files -%{_bindir}/%{name}