diff --git a/5minute.spec b/5minute.spec index 9dec467..2655d39 100644 --- a/5minute.spec +++ b/5minute.spec @@ -5,7 +5,9 @@ Summary: Give me an instance of mine image on OpenStack. Hurry! License: GPLv2 URL: https://github.com/SatelliteQE/%{name}/ Source0: https://github.com/SatelliteQE/%{name}/archive/%{name}-%{version}.tar.gz -BuildRequires: pandoc +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3 BuildRequires: python3-cinderclient BuildRequires: python3-heatclient BuildRequires: python3-neutronclient @@ -14,8 +16,8 @@ BuildRequires: python3-prettytable BuildRequires: python3-novaclient BuildRequires: python3-keystoneclient BuildRequires: python3-glanceclient -BuildRequires: python3-devel BuildRequires: python3-setuptools +Requires: python3 Requires: python3-cinderclient Requires: python3-heatclient Requires: python3-neutronclient @@ -24,7 +26,6 @@ Requires: python3-prettytable Requires: python3-novaclient Requires: python3-keystoneclient Requires: python3-glanceclient -BuildArch: noarch %description This is a command-line tool to provide and maintain virtual machine on @@ -35,13 +36,10 @@ easily provide hosts for development, testing or to scale your production environment from command-line. %prep -%autosetup -n %{name}-%{name}-%{version} -sed -i '/env python3/d' vminute/__init__.py -sed -i '/env python3/d' vminute/vminute.py +%autosetup -n %{name}-%{version} %build -pandoc --from=markdown --to=rst --output=README README.md %py3_build %install @@ -53,8 +51,8 @@ pandoc --from=markdown --to=rst --output=README README.md %files %license LICENSE %doc README.md -%{python3_sitelib}/* %{_bindir}/%{name} +%{python3_sitelib}/* %changelog * Sat Jul 14 2018 Jan Hutar - 0.2.31-1