summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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