Use %autosetup instead of %setup
This simplifies the process of adding patches to spec files. Adding a patch is then just adding a %patch source and %Autosetup will apply the patches in order. Also add a speccheck for that case. Change-Id: Ic4a925d800f3816b6cea865f779aa455e5b5a592
This commit is contained in:
committed by
Dirk Mueller
parent
6118dc3310
commit
b3ebb31022
@@ -50,7 +50,7 @@ BuildRequires: {{ py2pkg('oslosphinx') }}
|
||||
Python client library for interacting with OpenStack Sahara API.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%autosetup -n %{name}-%{version}
|
||||
# FIXME: can be removed when https://review.openstack.org/#/c/363681/ is merged
|
||||
sed -i -e 's/^\s\{4\}git_cmd\(.*\)/ "\/usr\/bin\/true"\1/' doc/source/conf.py
|
||||
|
||||
|
||||
Reference in New Issue
Block a user