diff --git a/rust.spec b/rust.spec index 2c47ba9..b4dc7d2 100644 --- a/rust.spec +++ b/rust.spec @@ -133,19 +133,25 @@ invoking gdb on rust binaries. %prep %setup -q -n rustc-%{version}-src %patch1 -p1 +sed -e 's::%{rust_triple}:g' \ + -e 's::%{_prefix}:g' \ + -e 's::%{_prefix}/lib:g' \ + -e 's::%{_mandir}:g' \ + -e 's::%{_docdir}/%{name}:g' \ + %{SOURCE1} > config.toml %build export CPPFLAGS="%{optflags}" # eliminate complain from RPMlint +./x.py build -v +./x.py doc -v + +%install sed -e 's::%{rust_triple}:g' \ -e 's::%{buildroot}%{_prefix}:g' \ -e 's::%{buildroot}%{_prefix}/lib:g' \ -e 's::%{buildroot}%{_mandir}:g' \ -e 's::%{buildroot}%{_docdir}/%{name}:g' \ %{SOURCE1} > config.toml -./x.py build -v -./x.py doc -v - -%install ./x.py dist --install # Fix any rpaths if needed chrpath -d %{buildroot}%{_prefix}/lib/lib*.so