Accepting request 481904 from home:luke_nukem:branches:devel:languages:rust
OBS-URL: https://build.opensuse.org/request/show/481904 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=83
This commit is contained in:
parent
2c12758fc1
commit
c95311bf32
14
rust.spec
14
rust.spec
@ -133,19 +133,25 @@ invoking gdb on rust binaries.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n rustc-%{version}-src
|
%setup -q -n rustc-%{version}-src
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
sed -e 's:<rust-triple>:%{rust_triple}:g' \
|
||||||
|
-e 's:<prefix>:%{_prefix}:g' \
|
||||||
|
-e 's:<libdir>:%{_prefix}/lib:g' \
|
||||||
|
-e 's:<mandir>:%{_mandir}:g' \
|
||||||
|
-e 's:<docdir>:%{_docdir}/%{name}:g' \
|
||||||
|
%{SOURCE1} > config.toml
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CPPFLAGS="%{optflags}" # eliminate complain from RPMlint
|
export CPPFLAGS="%{optflags}" # eliminate complain from RPMlint
|
||||||
|
./x.py build -v
|
||||||
|
./x.py doc -v
|
||||||
|
|
||||||
|
%install
|
||||||
sed -e 's:<rust-triple>:%{rust_triple}:g' \
|
sed -e 's:<rust-triple>:%{rust_triple}:g' \
|
||||||
-e 's:<prefix>:%{buildroot}%{_prefix}:g' \
|
-e 's:<prefix>:%{buildroot}%{_prefix}:g' \
|
||||||
-e 's:<libdir>:%{buildroot}%{_prefix}/lib:g' \
|
-e 's:<libdir>:%{buildroot}%{_prefix}/lib:g' \
|
||||||
-e 's:<mandir>:%{buildroot}%{_mandir}:g' \
|
-e 's:<mandir>:%{buildroot}%{_mandir}:g' \
|
||||||
-e 's:<docdir>:%{buildroot}%{_docdir}/%{name}:g' \
|
-e 's:<docdir>:%{buildroot}%{_docdir}/%{name}:g' \
|
||||||
%{SOURCE1} > config.toml
|
%{SOURCE1} > config.toml
|
||||||
./x.py build -v
|
|
||||||
./x.py doc -v
|
|
||||||
|
|
||||||
%install
|
|
||||||
./x.py dist --install
|
./x.py dist --install
|
||||||
# Fix any rpaths if needed
|
# Fix any rpaths if needed
|
||||||
chrpath -d %{buildroot}%{_prefix}/lib/lib*.so
|
chrpath -d %{buildroot}%{_prefix}/lib/lib*.so
|
||||||
|
Loading…
Reference in New Issue
Block a user