Projects
home:Eustace:branches:Eulaceura:Factory
which-rs
_service:obs_scm:which-rs.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:which-rs.spec of Package which-rs
%global debug_package %{nil} %global rustflags -Clink-arg=-Wl,-z,relro,-z,now Name: which-rs Version: 6.0.0 Release: 1 Summary: A Rust equivalent of Unix command "which". Locate installed executable in cross platforms. License: MIT License URL: https://github.com/harryfei/which-rs Source0: %{name}-%{version}.tar.gz Source1: vendor.tar.xz Source2: cargo_config BuildRequires: cargo BuildRequires: rust BuildRequires: gcc gcc-c++ clang Requires: gcc gcc-c++ clang %description A Rust equivalent of Unix command "which". Locate installed executable in cross platforms. %prep %setup -q -T -b 0 -n %{name}-%{version} %setup -q -D -T -a 1 -n %{name}-%{version} mkdir cargo-home cp %{SOURCE2} cargo-home/config %build export RUSTFLAGS="%{rustflags}" export CARGO_HOME=`pwd`/cargo-home/ cargo build --release %install # rustflags must be exported again at install as cargo build will # rebuild the project if it detects flags have changed (to none or other) export RUSTFLAGS="%{rustflags}" # install stage also requires re-export of 'cargo-home' or cargo # will try to download source deps and rebuild export CARGO_HOME=`pwd`/cargo-home/ mkdir -p %{buildroot}%{_libdir} install -Dm755 target/release/libwhich.* %{buildroot}%{_libdir} %files %license LICENSE.txt %{_libdir}/libwhich.* %changelog * Fri Jan 26 2024 huangduirong<huangduirong@huawei.com> - 6.0.0-1 - Init package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2