summaryrefslogtreecommitdiff
path: root/python-iopath.spec
blob: be3757d75051d7c5db765bd911d3799ec1fd3158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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