diff options
author | CoprDistGit <infra@openeuler.org> | 2024-04-16 04:36:43 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-04-16 04:36:43 +0000 |
commit | 9fc4f02e98698ee4c9f62f2542a0a327d77c7367 (patch) | |
tree | 297241aea61000e211d66fe01915039b2a2db1af | |
parent | e242ecd8dbcd07dee5efbec1d95205ed13ffbf82 (diff) |
automatic import of ocapus
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | ocapus.spec | 69 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 71 insertions, 0 deletions
@@ -0,0 +1 @@ +/opacus-1.4.1.tar.gz diff --git a/ocapus.spec b/ocapus.spec new file mode 100644 index 0000000..436b8aa --- /dev/null +++ b/ocapus.spec @@ -0,0 +1,69 @@ +%global _empty_manifest_terminate_build 0 +%global _unpackaged_files_terminate_build 0 + +# using global macro to speed up the spec editing +%global pkg_name ocapus +%global version 1.4.1 +%global pkg_summary %{expand:ocapus is a python3 package for the ocapus project} +%global pkg_desc %{expand:%{pkg_summary}} +%global open_license Apache-2.0 + +Name: %{pkg_name} +Version: %{version} +Release: 1 +Summary: %{pkg_summary} +License: %{open_license} + +# the url and source0 url here +URL: https://opacus.ai/ +Source0: https://github.com/pytorch/opacus/archive/refs/tags/v%{version}.tar.gz#/opacus-%{version}.tar.gz + +# build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-setuptools_scm + +# higharchy desc +%description +%{pkg_summary} + +# sub pkg section 1 +%package -n python3-%{pkg_name} +Summary: %{pkg_summary} + +%description -n python3-%{pkg_name} +%{pkg_desc} + +# pkg section: help optional +# %package -n help +# Summary: docs for the transformers +# Provides: python3-transformers-doc +# %description -n help +# description for the doc of the python3-transformers + +# the name here should match the name of the dir of the source code zip +# which got from the .tar.gz unzipped +%prep +%autosetup -p1 -n ocapus-%{version} + +# using python poject build, supplied by setup.py or pyproject.toml +%build +%pyproject_build + +# using python project install, supplied by setup.py or pyproject.toml +%install +%pyproject_install + +# point out the files here +%files -n python3-%{pkg_name} +%doc *.md +%license LICENSE* +%{python3_sitelib}/%{pkg_name}* + + +%changelog +* Mon Apr 15 2024 youser<1328699220@qq.com> +- pkg init @@ -0,0 +1 @@ +677990a14a3ec2db3b572f620e2f818b opacus-1.4.1.tar.gz |