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:
Thomas Bechtold
2016-10-08 14:31:59 +02:00
committed by Dirk Mueller
parent 6118dc3310
commit b3ebb31022
87 changed files with 90 additions and 86 deletions

View File

@@ -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