diff --git a/python-ncclient.changes b/python-ncclient.changes index 537fb7c..bf6c181 100644 --- a/python-ncclient.changes +++ b/python-ncclient.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 29 10:26:26 UTC 2015 - tbechtold@suse.com + +- Unify spec file. Use fedora compatible files macros + ------------------------------------------------------------------- Mon Aug 26 14:59:37 UTC 2013 - rhafer@suse.com diff --git a/python-ncclient.spec b/python-ncclient.spec index 779d7cf..3964eb5 100644 --- a/python-ncclient.spec +++ b/python-ncclient.spec @@ -1,7 +1,7 @@ # # spec file for package python-ncclient # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,7 @@ Source: ncclient-%{version}.tar.gz # quantum nexus plugin to work with nexus switches Patch0: nexus-support.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: openstack-suse-macros BuildRequires: python-base # Documentation requirements: BuildRequires: python-Sphinx @@ -47,15 +48,15 @@ and application development around the NETCONF protocol. %patch0 -p1 %build -python setup.py build +%{__python2} setup.py build cd docs && make html && rm build/html/.buildinfo %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%{__python2} setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root) %doc LICENSE README examples docs/build/html -%{python_sitelib}/* +%{python2_sitelib}/* %changelog