diff --git a/_service b/_service
index 98db7c0..011bd1e 100644
--- a/_service
+++ b/_service
@@ -3,7 +3,7 @@
-->
-
+
git
https://github.com/alacritty/alacritty.git
fed349aa2c567cbba900d56f72a830be45e0dfc8
@@ -26,10 +26,18 @@
-->
alacritty_terminal/tests
-
-
+
+
*.tar
xz
+
+ alacritty
+ xz
+ true
+
+
+ alacritty
+
diff --git a/alacritty-0.9.0.tar.xz b/alacritty-0.9.0.tar.xz
index c43f971..54ace26 100644
--- a/alacritty-0.9.0.tar.xz
+++ b/alacritty-0.9.0.tar.xz
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3b4bed2a661886599537b025525b04760b5ce70d5b32bd6c6a6ff3d3a9bba35a
-size 338720
+oid sha256:95fded611f8396a4ed2dcea94d264ae03e69ab0619fdda586ea97c7f7b15afad
+size 960252
diff --git a/alacritty.changes b/alacritty.changes
index 9cde924..a8b6b63 100644
--- a/alacritty.changes
+++ b/alacritty.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Tue Sep 28 05:51:17 UTC 2021 - William Brown
+
+- Replace rust-packaging with cargo-packaging
+
-------------------------------------------------------------------
Mon Aug 9 06:50:04 UTC 2021 - Aleksa Sarai
diff --git a/alacritty.spec b/alacritty.spec
index 032da59..97294fe 100644
--- a/alacritty.spec
+++ b/alacritty.spec
@@ -24,16 +24,15 @@ License: Apache-2.0
URL: https://github.com/alacritty/alacritty
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
+Source2: cargo_config
Source3: README.suse-maint
-# cargo vendor supplement
-Source99: revendor_source.sh
+BuildRequires: cargo-packaging
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: freetype-devel
BuildRequires: libxcb-devel
BuildRequires: libxkbcommon-devel
BuildRequires: pkgconfig
-BuildRequires: rust-packaging
BuildRequires: update-desktop-files
BuildRequires: xclip
BuildRequires: pkgconfig(fontconfig)
@@ -70,20 +69,10 @@ The official zsh completion script for alacritty.
%prep
%autosetup -a1
-%define cargo_registry $(pwd)/vendor
-%{cargo_prep}
-
-%ifarch aarch64 ppc64le riscv64
-# Remove checksum of config.guess and config.sub since aarch64 and ppc64le modify them
-sed -i 's#"expat/conftools/config.guess":"ebaffe1c6683ae2c3dcabb87825a83b892f00391514756f7640c4a3dcafbad4f",##g' ./vendor/expat-sys/.cargo-checksum.json
-sed -i 's#"expat/conftools/config.sub":"523cb028db907d1fbbcecdcac6737f9e2eeba48fb639231dbc5ae69238f276c9",##g' ./vendor/expat-sys/.cargo-checksum.json
-%endif
-%ifarch riscv64
-sed -i -e 's#"config.guess":"e0c1d7ef8ce964fb57c35e7704ae8661d7e4ca87d6a3c18950e503ae26b62319",##' -e 's#"config.sub":"f7e62c3cb15cd5bbc4e7f3617793b227481fc554d39697a9c322a266d20fb626",##' vendor/servo-fontconfig-sys/.cargo-checksum.json
-%endif
+mkdir .cargo
+cp %{SOURCE2} .cargo/config
%build
-export CARGO_NET_OFFLINE=true
%{cargo_build}
%install
diff --git a/cargo_config b/cargo_config
new file mode 100644
index 0000000..6fb4ff4
--- /dev/null
+++ b/cargo_config
@@ -0,0 +1,5 @@
+[source.crates-io]
+replace-with = "vendored-sources"
+
+[source.vendored-sources]
+directory = "vendor"
\ No newline at end of file
diff --git a/revendor_source.sh b/revendor_source.sh
deleted file mode 100644
index 023a4f3..0000000
--- a/revendor_source.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-set -euo pipefail
-
-# packaging helper to workaround:
-# https://github.com/rust-lang/cargo/issues/7058
-
-wd="$(mktemp -d /tmp/revendor.XXXXXXXXXX)"
-
-# take what we need into the build
-cp vendor*xz $wd
-
-cd $wd
-
-echo -n "Extracting vendor..."
-tar xf vendor*xz
-echo "done"
-
-echo -n "Ejecting winapi bloat... "
-rm -fr vendor/winapi*gnu*/lib/*.a
-echo "done"
-
-# remake tarball
-echo -n "Compressing archive... "
-tar -cf - vendor/ | xz -9 -c - > vendor-merged.tar.xz
-echo "done"
-
-cd -
-
-echo -n "Replacing tarball... "
-cp $wd/vendor-merged.tar.xz vendor.tar.xz
-rm -fr $wd
-echo "ok"
diff --git a/vendor.tar.xz b/vendor.tar.xz
index 1a9c636..88e0a61 100644
--- a/vendor.tar.xz
+++ b/vendor.tar.xz
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:626f2061c9e170b990a763a4bfa342dd6fb50e9cdb6a05e122d274401b390ee9
-size 7992240
+oid sha256:c5662a441145cb82b4aff9a70f753fa592175362d6eaedae2af761d1ceaac676
+size 11832896