summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-04-15 19:32:02 +0000
committerCoprDistGit <infra@openeuler.org>2024-04-15 19:32:02 +0000
commit8a9b60893b49cbd78c494b81ed11ebf61800163f (patch)
treee50c3e58a668756211158d4305707959f90c7256
parent92b6406289214144f7427452f795968536e67e85 (diff)
automatic import of python-torchvisionopeneuler23.09
-rw-r--r--python-torchvision.spec16
1 files changed, 9 insertions, 7 deletions
diff --git a/python-torchvision.spec b/python-torchvision.spec
index e64c8df..339ade3 100644
--- a/python-torchvision.spec
+++ b/python-torchvision.spec
@@ -33,6 +33,7 @@ BuildRequires: python3-hatchling
BuildRequires: python3-pytorch >= 2.1.2
BuildRequires: python3-numpy
+
%description
%{pkg_description}
@@ -42,11 +43,11 @@ Summary: %{pkg_summary}
%description -n python3-%{pkg_name}
%{pkg_description}
-%package doc
-Summary: the documentation for %{pkg_name}
+%package help
+Summary: the documents and examples for %{pkg_name}
-%description doc
-This package contains the documentation for %{pkg_name}
+%description help
+This package contains the documents and examples for %{pkg_name}
%prep
%autosetup -p1 -n vision-%{pkg_version}
@@ -56,7 +57,7 @@ This package contains the documentation for %{pkg_name}
%install
%pyproject_install
-# doc pkg:
+# help pkg files:
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
@@ -75,11 +76,12 @@ mv %{buildroot}/doclist.lst .
%doc README.md
%{python3_sitearch}/%{pkg_name}*
-%files doc -f doclist.lst
+%files help -f doclist.lst
%{_docdir}/*
%changelog
* Mon Apr 15 2024 YunShu
-- add doc subpackage
+- add help subpackage
+
* Sun Mar 31 2024 YunShu
- add torchvision