diff --git a/Makefile b/Makefile index 35eeddb6..777ffb51 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ sdist: find `pwd`/dist -name '*.tar.gz' -printf '%f\n' -exec mv {} . \; tarball: - git archive --prefix=osbuild-$(VERSION)/ --format=tar.gz HEAD > $(VERSION).tar.gz + git archive --prefix=osbuild-$(VERSION)/ --format=tar.gz HEAD > osbuild-$(VERSION).tar.gz srpm: $(PACKAGE_NAME).spec check-working-directory tarball /usr/bin/rpmbuild -bs \ diff --git a/osbuild.spec b/osbuild.spec index 806425dd..1889e94b 100644 --- a/osbuild.spec +++ b/osbuild.spec @@ -1,14 +1,19 @@ +%global forgeurl https://github.com/osbuild/osbuild + +Version: 7 + +%forgemeta + %global pypi_name osbuild %global pkgdir %{_prefix}/lib/%{pypi_name} Name: %{pypi_name} -Version: 7 Release: 1%{?dist} License: ASL 2.0 -URL: https://github.com/osbuild/osbuild +URL: %{forgeurl} -Source0: https://github.com/osbuild/%{pypi_name}/archive/%{version}.tar.gz +Source0: %{forgesource} BuildArch: noarch Summary: A build system for OS images @@ -41,7 +46,7 @@ Summary: %{summary} A build system for OS images %prep -%autosetup -n %{name}-%{version} +%forgesetup %build %py3_build