From 8c6b2bce164173674a53cc9a7f17db0d025244ed Mon Sep 17 00:00:00 2001
From: Aditya Ramteke <adityaramteke05icr@gmail.com>
Date: Tue, 19 Sep 2017 11:23:36 +0530
Subject: [PATCH] Replace rm -rf requirements.txt step with proper rpm macro.

https://github.com/redhat-openstack/easyfix/issues/5

Change-Id: Ic9e6791351290c0631939ae2bb53a83d50cb901f
---
 python-magnumclient.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/python-magnumclient.spec b/python-magnumclient.spec
index 2a07a2c..ea17cfb 100644
--- a/python-magnumclient.spec
+++ b/python-magnumclient.spec
@@ -107,6 +107,7 @@ Summary:        python-magnumclient documentation
 BuildRequires:   python-sphinx
 BuildRequires:   python-openstackdocstheme
 BuildRequires:   python-os-client-config
+BuildRequires:   openstack-macros
 #BuildRequires:   python-decorator
 
 %description -n python-%{pname}-doc
@@ -152,7 +153,7 @@ Requires:  python3-prettytable
 %autosetup -n %{name}-%{upstream_version} -S git
 
 # let RPM handle deps
-rm -rf {test-,}requirements.txt
+%py_req_cleanup
 
 %build
 %py2_build
-- 
GitLab