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

Commit

Permalink
Generate rpm changelog automatically
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
elezar committed Nov 24, 2021
1 parent 312528d commit 9606322
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 33 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile.amazonlinux
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ RUN sed -i "s;@VERSION@;${PKG_VERS};" $DIST_DIR/nvidia-docker

CMD rpmbuild --clean -bb \
-D "_topdir $PWD" \
-D "release_date $(date +'%a %b %d %Y')" \
-D "version $VERSION" \
-D "release $RELEASE" \
-D "docker_version $DOCKER_VERSION" \
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.centos
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ RUN sed -i "s;@VERSION@;${PKG_VERS};" $DIST_DIR/nvidia-docker

CMD rpmbuild --clean -bb \
-D "_topdir $PWD" \
-D "release_date $(date +'%a %b %d %Y')" \
-D "version $VERSION" \
-D "release $RELEASE" \
-D "docker_version $DOCKER_VERSION" \
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.opensuse-leap
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ RUN sed -i "s;@VERSION@;${PKG_VERS};" $DIST_DIR/nvidia-docker

CMD rpmbuild --clean -bb \
-D "_topdir $PWD" \
-D "release_date $(date +'%a %b %d %Y')" \
-D "version $VERSION" \
-D "release $RELEASE" \
-D "docker_version $DOCKER_VERSION" \
Expand Down
37 changes: 4 additions & 33 deletions rpm/SPECS/nvidia-docker2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -37,37 +37,8 @@ install -m 644 -t %{buildroot}/etc/docker daemon.json
%config /etc/docker/daemon.json

%changelog
* Fri Nov 19 2021 NVIDIA CORPORATION <[email protected]> 2.8.0-0.1.rc.1
- [Placeholder for 2.8.0-0.1.rc.1 development]

* Wed Nov 17 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-1
- Promote 2.7.0-0.1.rc.3 to 2.7.0-1

* Mon Nov 08 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-0.1.rc.3

* Thu Nov 04 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-0.1.rc.2
# As of 2.7.0-1 we generate the release information automatically
* %{release_date} NVIDIA CORPORATION <[email protected]> %{version}-%{release}
- 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.
- Bump nvidia-container-toolkit dependency to %{toolkit_version}
- Allow the toolkit version to be specified as a variable

* Mon Sep 06 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-0.1.rc.1
- Add AARCH64 package for Amazon Linux 2
- [BUILD] Allow for TAG to be specified in Makfile to match other projects
- Replace nvidia-container-runtime dependence with nvidia-container-toolit > 1.5.1

* Thu Apr 29 2021 NVIDIA CORPORATION <[email protected]> 2.6.0-1
- Add dependence on nvidia-container-runtime >= 3.5.0
- Add Jenkinsfile for building packages

* Wed Sep 16 2020 NVIDIA CORPORATION <[email protected]> 2.5.0-1
- Bump version to v2.5.0
- Add dependence on nvidia-container-runtime >= 3.4.0
- Update readme to point to the official documentatio
- Add %config directive to daemon.json for RPM installations

* Wed Jul 08 2020 NVIDIA CORPORATION <[email protected]> 2.4.0-1
- 09a01276 Update package license to match source license
- b9c70155 Update dependence on nvidia-container-runtime to 3.3.0

* Fri May 15 2020 NVIDIA CORPORATION <[email protected]> 2.3.0-1
- 0d3b049a Update build system to support multi-arch builds
- 8557216d Require new MIG changes
- Docker dependency to %{docker_version}
31 changes: 31 additions & 0 deletions rpm/changelog.old
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
* Wed Nov 17 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-1
- Promote 2.7.0-0.1.rc.3 to 2.7.0-1

* Mon Nov 08 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-0.1.rc.3

* Thu Nov 04 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-0.1.rc.2
- Bump nvidia-container-toolkit dependency to %{toolkit_version}
- Allow the toolkit version to be specified as a variable

* Mon Sep 06 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-0.1.rc.1
- Add AARCH64 package for Amazon Linux 2
- [BUILD] Allow for TAG to be specified in Makfile to match other projects
- Replace nvidia-container-runtime dependence with nvidia-container-toolit > 1.5.1

* Thu Apr 29 2021 NVIDIA CORPORATION <[email protected]> 2.6.0-1
- Add dependence on nvidia-container-runtime >= 3.5.0
- Add Jenkinsfile for building packages

* Wed Sep 16 2020 NVIDIA CORPORATION <[email protected]> 2.5.0-1
- Bump version to v2.5.0
- Add dependence on nvidia-container-runtime >= 3.4.0
- Update readme to point to the official documentatio
- Add %config directive to daemon.json for RPM installations

* Wed Jul 08 2020 NVIDIA CORPORATION <[email protected]> 2.4.0-1
- 09a01276 Update package license to match source license
- b9c70155 Update dependence on nvidia-container-runtime to 3.3.0

* Fri May 15 2020 NVIDIA CORPORATION <[email protected]> 2.3.0-1
- 0d3b049a Update build system to support multi-arch builds
- 8557216d Require new MIG changes

0 comments on commit 9606322

Please sign in to comment.