summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/bcfg2.spec3
1 files changed, 1 insertions, 2 deletions
diff --git a/misc/bcfg2.spec b/misc/bcfg2.spec
index 3bc1a0a04..76624e142 100644
--- a/misc/bcfg2.spec
+++ b/misc/bcfg2.spec
@@ -39,7 +39,6 @@ Source0: ftp://ftp.mcs.anl.gov/pub/bcfg/bcfg2-%{version}%{?_pre_rc}.tar
Source1: ftp://ftp.mcs.anl.gov/pub/bcfg/bcfg2-%{version}%{?_pre_rc}.tar.gz.gpg
# Used in %%check
Source2: http://www.w3.org/2001/XMLSchema.xsd
-Source3: http://www.w3.org/2001/xml.xsd
%if %{?rhel}%{!?rhel:10} <= 5 || 0%{?suse_version}
# EL5 and OpenSUSE require the BuildRoot tag
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -513,7 +512,7 @@ rm -rf %{buildroot}
# Downloads not allowed in koji; fix .xsd urls to point to local files
sed -i "s@schema_url = .*\$@schema_url = 'file://`pwd`/`basename %{SOURCE2}`'@" \
testsuite/Testschema/test_schema.py
-sed 's@http://www.w3.org/2001/xml.xsd@file://%{SOURCE3}@' \
+sed "s@http://www.w3.org/2001/xml.xsd@file://$(pwd)/schemas/xml.xsd@" \
%{SOURCE2} > `basename %{SOURCE2}`
%{__python} setup.py test
%endif