From 526588e9ed7fe8061ae29cf03791f395772b3142 Mon Sep 17 00:00:00 2001 From: Jacek Konieczny Date: Sat, 28 Nov 2015 19:20:07 +0100 Subject: [PATCH] automatic change: use py_build/py_install macros --- carbon.spec | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/carbon.spec b/carbon.spec index c8cfc7f..531fdbe 100644 --- a/carbon.spec +++ b/carbon.spec @@ -42,16 +42,14 @@ Carbon is a data collection and storage agent. %setup -q %build -%{__python} setup.py build +%py_build %install rm -rf $RPM_BUILD_ROOT # http://graphite.readthedocs.org/en/0.9.12/install-source.html#installing-carbon-in-a-custom-location -%{__python} setup.py install \ - --skip-build \ - --optimize=2 \ +%py_install \ --install-scripts=%{_bindir} \ --install-lib=%{py_sitescriptdir}/ \ --install-data=%{_sharedstatedir}/%{name} \ -- 2.43.0