From e3cde7667d1da66080c1ac2d24c34c6f09280729 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Mon, 7 Dec 2009 11:38:56 +0000 Subject: [PATCH] Fix build issues: - s/$RPM_BUILD_ROOT/%{buildroot} - s/$RPM_BUILD_DIR/%{_builddir} --- swig.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/swig.spec b/swig.spec index f85947c..91ca721 100644 --- a/swig.spec +++ b/swig.spec @@ -52,7 +52,7 @@ cat << \EOF > %{name}-prov %{__perl_provides} `perl -p -e 's|\S+%{_docdir}/%{name}-doc-%{version}\S+||'` EOF -%define __perl_provides $RPM_BUILD_DIR/%{name}-%{version}/%{name}-prov +%define __perl_provides %{_builddir}/%{name}-%{version}/%{name}-prov chmod +x %{__perl_provides} cat << \EOF > %{name}-req @@ -60,7 +60,7 @@ cat << \EOF > %{name}-req %{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-doc-%{version}\S+||'` EOF -%define __perl_requires $RPM_BUILD_DIR/%{name}-%{version}/%{name}-req +%define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req chmod +x %{__perl_requires} for all in CHANGES README; do @@ -78,7 +78,7 @@ make %{?_smp_mflags} #make check %install -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} pushd Examples/ # Remove all arch dependent files in Examples/ @@ -96,10 +96,10 @@ for all in `find -type f`; do done popd -make DESTDIR=$RPM_BUILD_ROOT install +make DESTDIR=%{buildroot} install %clean -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} %files %defattr(-,root,root,-)