-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for Bug#94414 (29384853), Connector/J RPM package have version nu…
…mber in path. Background: According to RPM package policy[1], jar files should not have version in filename. A unversioned filename makes it more simple to upgrade the package without doing other changes. Fix: Use %{name} RPM macro to name the jar file, giving wanted filename in all cases. Also fix build.xml to accept more generic output from java -version [1]: https://docs.fedoraproject.org/en-US/packaging-guidelines/Java/
- Loading branch information
Showing
3 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. | ||
# Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# This program is free software; you can redistribute it and/or modify it under | ||
# the terms of the GNU General Public License, version 2.0, as published by the | ||
|
@@ -166,7 +166,7 @@ cp %{with_docs}/en/txt/connector-j.txt package-content/docs/ | |
|
||
%install | ||
install -d -m 0755 %{buildroot}%{_javadir} | ||
install -p -m 0644 package-content/@[email protected] %{buildroot}%{_javadir}/@MYSQL_CJ_FULL_PROD_NAME@.jar | ||
install -p -m 0644 package-content/@[email protected] %{buildroot}%{_javadir}/%{name}.jar | ||
|
||
%clean | ||
rm -rf %{buildroot} | ||
|
@@ -187,7 +187,7 @@ rm -rf %{buildroot} | |
%doc package-content/docs/mvl.css | ||
%endif | ||
|
||
%{_javadir}/@MYSQL_CJ_FULL_PROD_NAME@.jar | ||
%{_javadir}/%{name}.jar | ||
|
||
%changelog | ||
* Mon Nov 27 2017 MySQL Release Engineering <[email protected]> - 8.0.9-1 | ||
|