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 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | %def_with bootstrap Name: rust-cargo Version: 0.25.0 Release: alt0.M80C.1 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 %define r_arch x86_64 %endif %ifarch %ix86 %define r_arch i686 %endif %define cargo cargo-nightly-%r_arch-unknown-linux-gnu/cargo/bin/cargo Source1: https://static.rust-lang.org/cargo-dist/2016-03-21/cargo-nightly-%r_arch-unknown-linux-gnu.tar.gz %endif # How to get vendor.tar # ## Fetch new cargo release and start build # # $ git fetch upstream # $ git fetch --tags upstream # $ git merge -s ours 0.25.0 # $ gear-hsh $TMP/hasher # ## Build failed with some missing deps... ## ## Install openssl-devel and zlib-devel and start shell session ## with internet access inside build chroot # # $ hsh-install $TMP/hasher openssl-devel zlib-devel # $ share_network=1 hsh-shell --mountpoints=/proc $TMP/hasher # ## Install cargo-vendor crate # # $ cargo install --git https://github.com/alexcrichton/cargo-vendor # ... # $ cd ~/RPM/BUILD/rust-cargo-0.25.0 # $ ~/.cargo/bin/cargo-vendor -x vendor # ## Cargo-vendor will download all deps inside vendor directory ## Now just sync vendor dir in gear and continue build # # $ exit # $ rsync -avP --delete \ # $TMP/hasher/chroot/usr/src/RPM/BUILD/rust-cargo-0.25.0/vendor/ \ # ./vendor/ # $ git add vendor # $ git commit -m "updated vendor crates" # $ gear-hsh $TMP/hasher # 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 %define cargo %_bindir/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 * Wed Sep 12 2018 Andrey Cherepanov <cas@altlinux.org> 0.25.0-alt0.M80C.1 - Backport new version to c8 branch (by bootstrap). * Mon Mar 26 2018 Vladimir Lettiev <crux@altlinux.org> 0.25.0-alt1 - 0.25.0 * Thu Feb 15 2018 Andrey Cherepanov <cas@altlinux.org> 0.22.0-alt0.M80P.1 - backport new version to p8 branch * Wed Feb 14 2018 Andrey Cherepanov <cas@altlinux.org> 0.21.1-alt0.M80P.1 - backport new version to p8 branch * 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 * Wed Aug 02 2017 Vladimir Lettiev <crux@altlinux.org> 0.20.0-alt0.M80P.1 - backported with bootstrap to p8 * 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 |