Fix build issues:
- s/$RPM_BUILD_ROOT/%{buildroot} - s/$RPM_BUILD_DIR/%{_builddir}
This commit is contained in:
parent
22f958a6d2
commit
e3cde7667d
10
swig.spec
10
swig.spec
@ -52,7 +52,7 @@ cat << \EOF > %{name}-prov
|
|||||||
%{__perl_provides} `perl -p -e 's|\S+%{_docdir}/%{name}-doc-%{version}\S+||'`
|
%{__perl_provides} `perl -p -e 's|\S+%{_docdir}/%{name}-doc-%{version}\S+||'`
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
%define __perl_provides $RPM_BUILD_DIR/%{name}-%{version}/%{name}-prov
|
%define __perl_provides %{_builddir}/%{name}-%{version}/%{name}-prov
|
||||||
chmod +x %{__perl_provides}
|
chmod +x %{__perl_provides}
|
||||||
|
|
||||||
cat << \EOF > %{name}-req
|
cat << \EOF > %{name}-req
|
||||||
@ -60,7 +60,7 @@ cat << \EOF > %{name}-req
|
|||||||
%{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-doc-%{version}\S+||'`
|
%{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-doc-%{version}\S+||'`
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
%define __perl_requires $RPM_BUILD_DIR/%{name}-%{version}/%{name}-req
|
%define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
|
||||||
chmod +x %{__perl_requires}
|
chmod +x %{__perl_requires}
|
||||||
|
|
||||||
for all in CHANGES README; do
|
for all in CHANGES README; do
|
||||||
@ -78,7 +78,7 @@ make %{?_smp_mflags}
|
|||||||
#make check
|
#make check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
pushd Examples/
|
pushd Examples/
|
||||||
# Remove all arch dependent files in Examples/
|
# Remove all arch dependent files in Examples/
|
||||||
@ -96,10 +96,10 @@ for all in `find -type f`; do
|
|||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=%{buildroot} install
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
Reference in New Issue
Block a user