summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-iopath.spec48
-rw-r--r--sources1
3 files changed, 50 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..195c576 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/iopath-0.1.9.tar.gz
diff --git a/python-iopath.spec b/python-iopath.spec
new file mode 100644
index 0000000..be3757d
--- /dev/null
+++ b/python-iopath.spec
@@ -0,0 +1,48 @@
+%global pypi_name iopath
+%global pypi_version 0.1.9
+%global pypi_summary Datasets, Transforms and Models specific to Computer Vision
+%global pypi_description %{pypi_summary}
+%global debug_package %{nil}
+
+Name: python-%{pypi_name}
+Version: %{pypi_version}
+Release: 1%{?dist}
+Summary: %{pypi_summary}
+
+License: MIT License
+URL: https://github.com/facebookresearch/iopath
+Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/iopath-%{version}.tar.gz
+
+BuildRequires: cmake
+BuildRequires: ninja-build
+BuildRequires: g++
+
+BuildRequires: python3-devel
+
+%description
+%{pypi_description}
+
+%package -n python3-%{pypi_name}
+Summary: %{pypi_summary}
+
+%description -n python3-%{pypi_name}
+%{pypi_description}
+
+%prep
+%autosetup -p1 -n %{pypi_name}-%{pypi_version}
+
+%build
+%pyproject_build
+
+%install
+%pyproject_install
+
+%files -n python3-%{pypi_name}
+%license LICENSE
+%doc README.md
+%{python3_sitearch}/%{pypi_name}
+%{python3_sitearch}/%{pypi_name}-*.egg-info/
+
+%changelog
+* Sun Mar 31 2024 YunShu
+- add iopath
diff --git a/sources b/sources
new file mode 100644
index 0000000..d0bcc67
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+140046ed03cf0de8c665bca846d757b4 iopath-0.1.9.tar.gz