diff --git a/Makefile b/Makefile index 70ee1c9..bca1946 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ srpm: prerequisites @git ls-files | sed 's|^|./|' > build/filelist.txt @mkdir -p build/zvirt-$(VERSION)/SOURCES @tar --verbatim-files-from --files-from=build/filelist.txt -cvzf build/zvirt-$(VERSION)/SOURCES/zvirt-$(VERSION).tar.gz --transform "s|^./|zvirt-$(VERSION)/|" - @rpmbuild --define "_topdir $$(pwd)/build/zvirt-$(VERSION)" -bs packaging/zvirt.spec + @rpmbuild --define "_topdir $$(pwd)/build/zvirt-$(VERSION)" --define "dist %{nil}" -bs packaging/zvirt.spec rpm: prerequisites srpm @echo "Creating RPM..." diff --git a/packaging/zvirt.spec b/packaging/zvirt.spec index 167ad37..526c5cf 100644 --- a/packaging/zvirt.spec +++ b/packaging/zvirt.spec @@ -1,6 +1,10 @@ Name: zvirt Version: 0.0.4 +%if %{defined dist} Release: 1%{?dist} +%else +Release: 1 +%endif Summary: Libvirt ZFS snapshots utility License: MIT @@ -12,6 +16,7 @@ BuildArch: noarch Requires: bash Requires: libvirt Requires: zfs +BuildRequires: make %description Zvirt takes snapshots of Libvirt domains using ZFS.