Package rust-cargo: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | %def_without bootstrap Name: rust-cargo Version: 0.22.0 Release: alt1 Summary: The Rust package manager Group: Development/Other License: Apache 2.0, MIT URL: http://crates.io # Cloned from https://github.com/rust-lang/cargo Source: %name-%version.tar %if_with bootstrap %ifarch x86_64 Source1: https://static.rust-lang.org/cargo-dist/2016-03-21/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz %endif %ifarch %ix86 Source1: https://static.rust-lang.org/cargo-dist/2016-03-21/cargo-nightly-i686-unknown-linux-gnu.tar.gz %endif %endif Source2: vendor.tar Packager: Vladimir Lettiev <crux@altlinux.org> BuildPreReq: /proc BuildRequires: curl openssl-devel cmake rust python-devel libssh2-devel libgit2-devel zlib-devel libcurl-devel %if_without bootstrap BuildRequires: rust-cargo %endif %description %summary %prep %setup -a2 %if_with bootstrap tar xf %SOURCE1 %endif mkdir .cargo cat <<EOF > .cargo/config [source.offline] directory = "%_builddir/%name-%version/vendor" [source.crates-io] replace-with = "offline" EOF %build cargo build --release %install cargo install --root=%buildroot%prefix mkdir -p %buildroot%_man1dir cp src/etc/man/*.1 %buildroot%_man1dir %check CFG_DISABLE_CROSS_TESTS=1 cargo test || : %files %doc LICENSE-APACHE LICENSE-MIT LICENSE-THIRD-PARTY README.md %_bindir/cargo %_man1dir/cargo* %changelog * Thu Oct 19 2017 Vladimir Lettiev <crux@altlinux.org> 0.22.0-alt1 - 0.22.0 * Fri Sep 15 2017 Vladimir Lettiev <crux@altlinux.org> 0.21.1-alt1 - 0.21.1 * Sun Jul 23 2017 Vladimir Lettiev <crux@altlinux.org> 0.20.0-alt1 - 0.20.0 * Mon Jul 10 2017 Vladimir Lettiev <crux@altlinux.org> 0.19.0-alt1 - 0.19.0 - bootstrap x86 arch * Tue Nov 15 2016 Vladimir Lettiev <crux@altlinux.ru> 0.14.0-alt1 - 0.14.0 * Thu Oct 06 2016 Vladimir Lettiev <crux@altlinux.ru> 0.13.0-alt1 - 0.13.0 * Tue Oct 04 2016 Vladimir Lettiev <crux@altlinux.ru> 0.12.0-alt1 - 0.12.0 * Mon Jul 11 2016 Vladimir Lettiev <crux@altlinux.ru> 0.11.0-alt1 - 0.11.0 * Mon Apr 25 2016 Vladimir Lettiev <crux@altlinux.ru> 0.10.0-alt1 - 0.10.0 * Fri Jan 22 2016 Vladimir Lettiev <crux@altlinux.ru> 0.8.0-alt1 - 0.8.0 - bootstrap support * Sun Jan 17 2016 Vladimir Lettiev <crux@altlinux.ru> 0.7.0-alt1 - initial build for Sisyphus |