Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit 9606322

Browse files
committed
Generate rpm changelog automatically
This change adds a dummy entry that can be updated automatically to the rpm changelog. The existing changelog is moved to a changelog.old file. Signed-off-by: Evan Lezar <[email protected]>
1 parent 312528d commit 9606322

File tree

5 files changed

+38
-33
lines changed

5 files changed

+38
-33
lines changed

docker/Dockerfile.amazonlinux

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ RUN sed -i "s;@VERSION@;${PKG_VERS};" $DIST_DIR/nvidia-docker
3333

3434
CMD rpmbuild --clean -bb \
3535
-D "_topdir $PWD" \
36+
-D "release_date $(date +'%a %b %d %Y')" \
3637
-D "version $VERSION" \
3738
-D "release $RELEASE" \
3839
-D "docker_version $DOCKER_VERSION" \

docker/Dockerfile.centos

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ RUN sed -i "s;@VERSION@;${PKG_VERS};" $DIST_DIR/nvidia-docker
3333

3434
CMD rpmbuild --clean -bb \
3535
-D "_topdir $PWD" \
36+
-D "release_date $(date +'%a %b %d %Y')" \
3637
-D "version $VERSION" \
3738
-D "release $RELEASE" \
3839
-D "docker_version $DOCKER_VERSION" \

docker/Dockerfile.opensuse-leap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ RUN sed -i "s;@VERSION@;${PKG_VERS};" $DIST_DIR/nvidia-docker
3333

3434
CMD rpmbuild --clean -bb \
3535
-D "_topdir $PWD" \
36+
-D "release_date $(date +'%a %b %d %Y')" \
3637
-D "version $VERSION" \
3738
-D "release $RELEASE" \
3839
-D "docker_version $DOCKER_VERSION" \

rpm/SPECS/nvidia-docker2.spec

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -37,37 +37,8 @@ install -m 644 -t %{buildroot}/etc/docker daemon.json
3737
%config /etc/docker/daemon.json
3838

3939
%changelog
40-
* Fri Nov 19 2021 NVIDIA CORPORATION <[email protected]> 2.8.0-0.1.rc.1
41-
- [Placeholder for 2.8.0-0.1.rc.1 development]
42-
43-
* Wed Nov 17 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-1
44-
- Promote 2.7.0-0.1.rc.3 to 2.7.0-1
45-
46-
* Mon Nov 08 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-0.1.rc.3
47-
48-
* Thu Nov 04 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-0.1.rc.2
40+
# As of 2.7.0-1 we generate the release information automatically
41+
* %{release_date} NVIDIA CORPORATION <[email protected]> %{version}-%{release}
42+
- As of 2.7.0-1 the package changelog is generated automatically. This means that releases since 2.7.0-1 all contain this same changelog entry updated for the version being released.
4943
- Bump nvidia-container-toolkit dependency to %{toolkit_version}
50-
- Allow the toolkit version to be specified as a variable
51-
52-
* Mon Sep 06 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-0.1.rc.1
53-
- Add AARCH64 package for Amazon Linux 2
54-
- [BUILD] Allow for TAG to be specified in Makfile to match other projects
55-
- Replace nvidia-container-runtime dependence with nvidia-container-toolit > 1.5.1
56-
57-
* Thu Apr 29 2021 NVIDIA CORPORATION <[email protected]> 2.6.0-1
58-
- Add dependence on nvidia-container-runtime >= 3.5.0
59-
- Add Jenkinsfile for building packages
60-
61-
* Wed Sep 16 2020 NVIDIA CORPORATION <[email protected]> 2.5.0-1
62-
- Bump version to v2.5.0
63-
- Add dependence on nvidia-container-runtime >= 3.4.0
64-
- Update readme to point to the official documentatio
65-
- Add %config directive to daemon.json for RPM installations
66-
67-
* Wed Jul 08 2020 NVIDIA CORPORATION <[email protected]> 2.4.0-1
68-
- 09a01276 Update package license to match source license
69-
- b9c70155 Update dependence on nvidia-container-runtime to 3.3.0
70-
71-
* Fri May 15 2020 NVIDIA CORPORATION <[email protected]> 2.3.0-1
72-
- 0d3b049a Update build system to support multi-arch builds
73-
- 8557216d Require new MIG changes
44+
- Docker dependency to %{docker_version}

rpm/changelog.old

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
* Wed Nov 17 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-1
2+
- Promote 2.7.0-0.1.rc.3 to 2.7.0-1
3+
4+
* Mon Nov 08 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-0.1.rc.3
5+
6+
* Thu Nov 04 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-0.1.rc.2
7+
- Bump nvidia-container-toolkit dependency to %{toolkit_version}
8+
- Allow the toolkit version to be specified as a variable
9+
10+
* Mon Sep 06 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-0.1.rc.1
11+
- Add AARCH64 package for Amazon Linux 2
12+
- [BUILD] Allow for TAG to be specified in Makfile to match other projects
13+
- Replace nvidia-container-runtime dependence with nvidia-container-toolit > 1.5.1
14+
15+
* Thu Apr 29 2021 NVIDIA CORPORATION <[email protected]> 2.6.0-1
16+
- Add dependence on nvidia-container-runtime >= 3.5.0
17+
- Add Jenkinsfile for building packages
18+
19+
* Wed Sep 16 2020 NVIDIA CORPORATION <[email protected]> 2.5.0-1
20+
- Bump version to v2.5.0
21+
- Add dependence on nvidia-container-runtime >= 3.4.0
22+
- Update readme to point to the official documentatio
23+
- Add %config directive to daemon.json for RPM installations
24+
25+
* Wed Jul 08 2020 NVIDIA CORPORATION <[email protected]> 2.4.0-1
26+
- 09a01276 Update package license to match source license
27+
- b9c70155 Update dependence on nvidia-container-runtime to 3.3.0
28+
29+
* Fri May 15 2020 NVIDIA CORPORATION <[email protected]> 2.3.0-1
30+
- 0d3b049a Update build system to support multi-arch builds
31+
- 8557216d Require new MIG changes

0 commit comments

Comments
 (0)