From 0ed70419221396c5246e879feb59838b6cd2b7a0 Mon Sep 17 00:00:00 2001 From: Dominik Mierzejewski Date: Mon, 22 Feb 2016 01:16:18 +0100 Subject: [PATCH] fix macro usage --- openbabel.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openbabel.spec b/openbabel.spec index 188b5a0..004221a 100644 --- a/openbabel.spec +++ b/openbabel.spec @@ -1,8 +1,8 @@ %global commit a345105b28173eb7da14ecd1e5beebe94140c6d7 %global shortcommit %(c=%{commit}; echo ${c:0:7}) -%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) -%{!?python2_sitearch: %define python2_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%{!?perl_vendorarch:%global perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)} +%{!?python2_sitearch:%global python2_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} # we don't want to provide private Perl or Python extension libs %global __provides_exclude_from ^(%{perl_vendorarch}/auto/.*\\.so|%{python2_sitearch}/.*\\.so)$ @@ -214,7 +214,7 @@ make test %{python2_sitearch}/openbabel.py* %{python2_sitearch}/pybel.py* # Egg-info is not generated in 2.3.2, see upstream bug 837 -#%{python_sitearch}/openbabel*.egg-info +#%%{python_sitearch}/openbabel*.egg-info %files -n ruby-%{name} %{ruby_vendorarchdir}/openbabel.so @@ -222,6 +222,7 @@ make test %changelog * Thu Feb 18 2016 Dominik Mierzejewski - 2.3.90-0.9.20150402gita345105 - drop redundant BuildRoot and defattr +- fix macro usage * Thu Feb 04 2016 Fedora Release Engineering - 2.3.90-0.8.20150402gita345105 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild