commit f43d6861924021e77ec9ef2b53af8d2ac1c0772a
Author: Jan Palus <[email protected]>
Date:   Tue Dec 10 13:44:40 2024 +0100

    package output of `mix deps.get` to fix offline build

 ex_doc.spec | 39 +++++++++------------------------------
 1 file changed, 9 insertions(+), 30 deletions(-)
---
diff --git a/ex_doc.spec b/ex_doc.spec
index 628c51e..dcac5bc 100644
--- a/ex_doc.spec
+++ b/ex_doc.spec
@@ -6,30 +6,16 @@ License:      Apache v2.0
 Group:         Development/Tools
 Source0:       
https://github.com/elixir-lang/ex_doc/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: 9d10b02ccf164f3571efe2b593f412a2
-Source1:       https://repo.hex.pm/tarballs/earmark_parser-1.4.39.tar
-# Source1-md5: f4541e91891b213f09ffb9b20e2ca3ce
-Source2:       https://repo.hex.pm/tarballs/easyhtml-0.3.2.tar
-# Source2-md5: 0813574edda74add2aa0e6cda102765a
-Source3:       https://repo.hex.pm/tarballs/floki-0.36.2.tar
-# Source3-md5: 228ab5f1e324b0ebdf74b368ef0b039f
-Source4:       https://repo.hex.pm/tarballs/jason-1.4.1.tar
-# Source4-md5: abba3e1577cebebb42936ec0b67a05c9
-Source5:       https://repo.hex.pm/tarballs/makeup-1.1.2.tar
-# Source5-md5: afbbedb30fac9f624c1b6b5dd0010f0b
-Source6:       https://repo.hex.pm/tarballs/makeup_c-0.1.1.tar
-# Source6-md5: 68ccf7c3da96181d1c463b010ddbdb97
-Source7:       https://repo.hex.pm/tarballs/makeup_elixir-0.16.2.tar
-# Source7-md5: 7bde55455d0b66d7d2838fd50b1b9444
-Source8:       https://repo.hex.pm/tarballs/makeup_erlang-1.0.0.tar
-# Source8-md5: 144c1b1838fc2730c674bfab8a5baf99
-Source9:       https://repo.hex.pm/tarballs/makeup_html-0.1.1.tar
-# Source9-md5: 8805161dda84519a6754dbd316bae7e5
-Source10:      https://repo.hex.pm/tarballs/nimble_parsec-1.4.0.tar
-# Source10-md5:        bd05f136e479edd64804a6f512939f13
+Source1:       ex_doc-deps-0.34.2.tar.xz
+# Source1-md5: a7964a34c54d3861c0174761a1d2a2b4
+Source2:       https://builds.hex.pm/installs/1.16.0/hex-2.1.1.ez
+# Source2-md5: 5729d2386063767b7d9a93e06dfb49e3
 URL:           https://elixir-lang.org/
 BuildRequires: elixir
 BuildRequires: erlang >= 2:17
 BuildRequires: rpmbuild(macros) >= 2.035
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
 %{?erlang_requires}
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -39,19 +25,12 @@ ExDoc is a tool to generate documentation for Erlang and 
Elixir
 projects.
 
 %prep
-%setup -q
-
-mkdir deps
-cd deps
-for s in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} \
-       %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10}; do
-       fn=`basename $s`
-       tar -Oxf $s contents.tar.gz | tar -zx --one-top-level=${fn%-*}
-done
+%setup -q -a1
 
 %build
 LC_ALL=C.UTF-8; export LC_ALL
-%__mix deps.get
+MIX_ARCHIVES=$(pwd)/archives; export MIX_ARCHIVES
+%__mix archive.install --force %{SOURCE2}
 MIX_ENV=prod %__mix escript.build
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ex_doc.git/commitdiff/f43d6861924021e77ec9ef2b53af8d2ac1c0772a

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to