mirror of
https://abf.rosa.ru/djam/uv.git
synced 2025-04-11 11:34:11 +00:00
All checks were successful
Run CI/CD... / main (push) Successful in 56m36s
47 lines
1,009 B
RPMSpec
47 lines
1,009 B
RPMSpec
%define debug %nil
|
|
%define debug_package %nil
|
|
%define rustver 1.85
|
|
|
|
Name: uv
|
|
Version: 0.6.14
|
|
Release: 1
|
|
Summary: An extremely fast Python package and project manager
|
|
URL: https://docs.astral.sh/uv
|
|
Source0: https://github.com/astral-sh/uv/archive/%{version}/%{name}-%{version}.tar.gz
|
|
License: ASL 2.0 OR MIT
|
|
Group: Development/Other
|
|
%if %{mdvver} > 201610
|
|
BuildRequires: rust
|
|
BuildRequires: cargo
|
|
%endif
|
|
BuildRequires: git-core
|
|
BuildRequires: curl
|
|
BuildRequires: tar
|
|
BuildRequires: pkgconfig(openssl3.3)
|
|
|
|
%description
|
|
An extremely fast Python package and project manager, written
|
|
in Rust
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%if %{mdvver} <= 201610
|
|
curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs |\
|
|
sh -s -- -y --profile default --default-toolchain %{rustver}
|
|
%endif
|
|
|
|
|
|
%build
|
|
%if %{mdvver} <= 201610
|
|
source "$HOME/.cargo/env"
|
|
%endif
|
|
|
|
cargo build --release
|
|
|
|
%install
|
|
install -Dm0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
%files
|
|
%doc README.md LICENSE* docs
|
|
%{_bindir}/%{name}
|