summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-04-16 00:57:02 +0000
committerCoprDistGit <infra@openeuler.org>2024-04-16 00:57:02 +0000
commit376fcc17568c2237d2a06064a058a7317a143d8e (patch)
treed19d7a992b05ff04266b5c98564c1e7a5605a8ce
parent5b92fa4e1ed1575ff7e8ab4abdc516ef9a8782e0 (diff)
automatic import of torchtext
-rw-r--r--.gitignore1
-rw-r--r--sources2
-rw-r--r--torchtext.spec6
3 files changed, 7 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 830a711..42f354d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/v0.17.2.tar.gz
+/text-0.17.2.tar.gz
diff --git a/sources b/sources
index a91711b..80129bc 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-68518753c6146f84382b0183846452fe v0.17.2.tar.gz
+68518753c6146f84382b0183846452fe text-0.17.2.tar.gz
diff --git a/torchtext.spec b/torchtext.spec
index 37ac9ef..d503bbd 100644
--- a/torchtext.spec
+++ b/torchtext.spec
@@ -16,12 +16,16 @@ 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
+Source0: https://github.com/pytorch/text/archive/refs/tags/v%{version}.tar.gz#/text-%{version}.tar.gz
# patch
Patch0: 001-fix-submodule.patch
# build requires
+BuildRequires: g++
+BuildRequires: cmake
+BuildRequires: ninja-build
+
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip