summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-04-16 05:38:14 +0000
committerCoprDistGit <infra@openeuler.org>2024-04-16 05:38:14 +0000
commitb1ae0845e8d5161a410f9185ab78e159800e373d (patch)
tree3c0fa6793eb4b65afc29b396943788336be2597b
parent940e4210f37579a0b727a3235bef970d04164659 (diff)
automatic import of ocapusopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ocapus.spec4
-rw-r--r--sources2
3 files changed, 4 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 3b8a7e6..6e2b87c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/opacus-1.4.1.tar.gz
+/v1.4.1.tar.gz
diff --git a/ocapus.spec b/ocapus.spec
index c11605f..bc49f58 100644
--- a/ocapus.spec
+++ b/ocapus.spec
@@ -16,7 +16,7 @@ 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
+Source0: https://github.com/pytorch/opacus/archive/refs/tags/v%{version}.tar.gz#/v%{version}.tar.gz
# build requires
BuildRequires: python3-devel
@@ -47,7 +47,7 @@ Summary: %{pkg_summary}
# 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 v%{version}
+%autosetup -p1 -n %{pkg_name}-%{version}
# using python poject build, supplied by setup.py or pyproject.toml
%build
diff --git a/sources b/sources
index 088eb85..4d6eaef 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-677990a14a3ec2db3b572f620e2f818b opacus-1.4.1.tar.gz
+677990a14a3ec2db3b572f620e2f818b v1.4.1.tar.gz