diff options
author | CoprDistGit <infra@openeuler.org> | 2024-04-16 01:47:50 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-04-16 01:47:50 +0000 |
commit | d8132c5b0027e2cf374304e815f0dcc48a8ddd0f (patch) | |
tree | d2bf758b3c87effcda292d33901cc216ae8c9477 | |
parent | 3f9f84306c945e3ae3864e3997984e3148bb4578 (diff) |
automatic import of torchtext
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | sources | 4 | ||||
-rw-r--r-- | torchtext.spec | 13 |
3 files changed, 19 insertions, 2 deletions
@@ -1,2 +1,6 @@ /v0.17.2.tar.gz /text-0.17.2.tar.gz +/double-conversion-3.3.0.tar.gz +/re2-2024-04-01.tar.gz +/sentencepiece-0.2.0.tar.gz +/utf8proc-2.9.0.tar.gz @@ -1 +1,5 @@ +b344abb64084a4a1d98a43e67752989b double-conversion-3.3.0.tar.gz +05e993e11aa173b63552fb4d88e6524c re2-2024-04-01.tar.gz +6ee244227f5ee8123de05980920e2936 sentencepiece-0.2.0.tar.gz 68518753c6146f84382b0183846452fe text-0.17.2.tar.gz +7e4ab708f463f99cc1da799726252e7c utf8proc-2.9.0.tar.gz diff --git a/torchtext.spec b/torchtext.spec index bd55ca0..fe8367b 100644 --- a/torchtext.spec +++ b/torchtext.spec @@ -16,7 +16,12 @@ License: %{pkg_license} # the url and source URL: https://pytorch.org/text/stable/index.html -Source0: https://github.com/pytorch/text/archive/refs/tags/v%{version}.tar.gz#/text-%{version}.tar.gz +Source0: https://github.com/pytorch/text/archive/refs/tags/v%{version}.tar.gz#/text-%{version}.tar.gz + +Source1: https://github.com/google/double-conversion/archive/refs/tags/v3.3.0.tar.gz#/double-conversion-3.3.0.tar.gz +Source2: https://github.com/google/re2/archive/refs/tags/2024-04-01.tar.gz#/re2-2024-04-01.tar.gz +Source3: https://github.com/google/sentencepiece/archive/refs/tags/v0.2.0.tar.gz#/sentencepiece-0.2.0.tar.gz +Source4: https://github.com/JuliaStrings/utf8proc/archive/refs/tags/v2.9.0.tar.gz#/utf8proc-2.9.0.tar.gz # patch Patch0: 001-fix-submodule.patch @@ -27,7 +32,7 @@ BuildRequires: cmake BuildRequires: ninja-build # manual add third party lib -BuildRequires: re2 +BuildRequires: re2-devel BuildRequires: double-conversion BuildRequires: sentencepiece BuildRequires: utf8proc @@ -61,6 +66,10 @@ Summary: %{pkg_summary} # the name here should match the name of tar.gz file %prep %autosetup -p1 -n text-%{version} +tar -xvf %{Source1} -C text-%{version}/third_party +tar -xvf %{Source2} -C text-%{version}/third_party +tar -xvf %{Source3} -C text-%{version}/third_party +tar -xvf %{Source4} -C text-%{version}/third_party %build %pyproject_build |