From 86c2b555c68efe10a7c1253558af0b41a5151cb0e6e7b3de9d2a84f9a1484acf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 20 Sep 2018 15:20:33 +0000 Subject: [PATCH 1/3] Accepting request 636902 from home:pmonrealgonzalez:branches:Java:packages - Updated to 1.9.3 * This is a bug fix release, which also improves the tests for building on Java 8. * Note that Java 8 and later no longer support indexed bean properties on java.util.List, only on arrays like String[]. (BEANUTILS-492). This affects PropertyUtils.getPropertyType() and PropertyUtils.getPropertyDescriptor(); their javadoc have therefore been updated to reflect this change in the JDK. * Changes in this version include: - Fixed Bugs: * BEANUTILS-477: Changed log level in FluentPropertyBeanIntrospector * BEANUTILS-492: Fixed exception when setting indexed properties on DynaBeans. * BEANUTILS-470: Precision lost when converting BigDecimal. * BEANUTILS-465: Indexed List Setters fixed. - Changes: * BEANUTILS-433: Update dependency from JUnit 3.8.1 to 4.12. * BEANUTILS-469: Update commons-logging from 1.1.1 to 1.2. * BEANUTILS-474: FluentPropertyBeanIntrospector does not use the same naming algorithm as DefaultBeanIntrospector. * BEANUTILS-490: Update Java requirement from Java 5 to 6. * BEANUTILS-482: Update commons-collections from 3.2.1 to 3.2.2 (CVE-2015-4852). * BEANUTILS-490: Update java requirement to Java 6. * BEANUTILS-492: IndexedPropertyDescriptor tests now pass on Java 8. * BEANUTILS-495: DateConverterTestBase fails on M/d/yy in Java 9. * BEANUTILS-496: testGetDescriptorInvalidBoolean fails on Java 9. - Historical list of changes: http://commons.apache.org/proper/commons-beanutils/changes-report.html - Refreshed patch jdk9.patch for this version update OBS-URL: https://build.opensuse.org/request/show/636902 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-beanutils?expand=0&rev=14 --- apache-commons-beanutils.changes | 35 ++++++++++++++++++++++++++ apache-commons-beanutils.spec | 7 +++--- commons-beanutils-1.9.2-src.tar.gz | 3 --- commons-beanutils-1.9.3-src.tar.gz | 3 +++ commons-beanutils-1.9.3-src.tar.gz.asc | 7 ++++++ jdk9.patch | 30 +++++++++++----------- 6 files changed, 65 insertions(+), 20 deletions(-) delete mode 100644 commons-beanutils-1.9.2-src.tar.gz create mode 100644 commons-beanutils-1.9.3-src.tar.gz create mode 100644 commons-beanutils-1.9.3-src.tar.gz.asc diff --git a/apache-commons-beanutils.changes b/apache-commons-beanutils.changes index 14a65e4..0ea27ed 100644 --- a/apache-commons-beanutils.changes +++ b/apache-commons-beanutils.changes @@ -1,3 +1,38 @@ +------------------------------------------------------------------- +Thu Sep 20 10:45:41 UTC 2018 - pmonrealgonzalez@suse.com + +- Updated to 1.9.3 + * This is a bug fix release, which also improves the tests for + building on Java 8. + * Note that Java 8 and later no longer support indexed bean + properties on java.util.List, only on arrays like String[]. + (BEANUTILS-492). This affects PropertyUtils.getPropertyType() + and PropertyUtils.getPropertyDescriptor(); their javadoc have + therefore been updated to reflect this change in the JDK. + * Changes in this version include: + - Fixed Bugs: + * BEANUTILS-477: Changed log level in FluentPropertyBeanIntrospector + * BEANUTILS-492: Fixed exception when setting indexed properties + on DynaBeans. + * BEANUTILS-470: Precision lost when converting BigDecimal. + * BEANUTILS-465: Indexed List Setters fixed. + - Changes: + * BEANUTILS-433: Update dependency from JUnit 3.8.1 to 4.12. + * BEANUTILS-469: Update commons-logging from 1.1.1 to 1.2. + * BEANUTILS-474: FluentPropertyBeanIntrospector does not use the + same naming algorithm as DefaultBeanIntrospector. + * BEANUTILS-490: Update Java requirement from Java 5 to 6. + * BEANUTILS-482: Update commons-collections from 3.2.1 to 3.2.2 + (CVE-2015-4852). + * BEANUTILS-490: Update java requirement to Java 6. + * BEANUTILS-492: IndexedPropertyDescriptor tests now pass on Java 8. + * BEANUTILS-495: DateConverterTestBase fails on M/d/yy in Java 9. + * BEANUTILS-496: testGetDescriptorInvalidBoolean fails on Java 9. + - Historical list of changes: + http://commons.apache.org/proper/commons-beanutils/changes-report.html + +- Refreshed patch jdk9.patch for this version update + ------------------------------------------------------------------- Tue May 15 06:03:11 UTC 2018 - fstrba@suse.com diff --git a/apache-commons-beanutils.spec b/apache-commons-beanutils.spec index 0d3b42a..808d312 100644 --- a/apache-commons-beanutils.spec +++ b/apache-commons-beanutils.spec @@ -19,13 +19,14 @@ %define base_name beanutils %define short_name commons-%{base_name} Name: apache-commons-beanutils -Version: 1.9.2 +Version: 1.9.3 Release: 0 Summary: Utility methods for accessing and modifying the properties of JavaBeans License: Apache-2.0 Group: Development/Libraries/Java Url: http://commons.apache.org/beanutils -Source0: commons-beanutils-%{version}-src.tar.gz +Source0: http://mirror.dkm.cz/apache//commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz +Source1: http://mirror.dkm.cz/apache//commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz.asc Patch0: jdk9.patch BuildRequires: ant BuildRequires: commons-collections @@ -74,7 +75,7 @@ ant -Dbuild.sysclasspath=first dist %install # jars install -d -m 755 %{buildroot}%{_javadir} -install -m 644 dist/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar +install -m 644 dist/%{short_name}-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{name}.jar pushd %{buildroot}%{_javadir} for jar in *.jar; do diff --git a/commons-beanutils-1.9.2-src.tar.gz b/commons-beanutils-1.9.2-src.tar.gz deleted file mode 100644 index 114422c..0000000 --- a/commons-beanutils-1.9.2-src.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:91fccad3b65f278bad98df1aa8467f2d3df6095f41b2db39d2c12863fb2c0049 -size 396910 diff --git a/commons-beanutils-1.9.3-src.tar.gz b/commons-beanutils-1.9.3-src.tar.gz new file mode 100644 index 0000000..48ad30b --- /dev/null +++ b/commons-beanutils-1.9.3-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:139fa584321bab198a68a3ed99ed3804268b9cc5e3257f0f6b3a503df0029a0d +size 414517 diff --git a/commons-beanutils-1.9.3-src.tar.gz.asc b/commons-beanutils-1.9.3-src.tar.gz.asc new file mode 100644 index 0000000..816415f --- /dev/null +++ b/commons-beanutils-1.9.3-src.tar.gz.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iD8DBQBX4rOHQRBjo6D/0RkRApT1AJ9NGUGJzFi59vlrWvDzFKdROKXMvgCbBhL1 +/oUw+UyHw8Gh5YAeSN4PnuI= +=v7kQ +-----END PGP SIGNATURE----- diff --git a/jdk9.patch b/jdk9.patch index acd5bc0..c557e6a 100644 --- a/jdk9.patch +++ b/jdk9.patch @@ -1,15 +1,17 @@ ---- commons-beanutils-1.9.2-src/build.xml 2014-05-25 19:24:55.000000000 +0200 -+++ commons-beanutils-1.9.2-src/build.xml 2017-09-14 10:40:26.676525095 +0200 +Index: commons-beanutils-1.9.3-src/build.xml +=================================================================== +--- commons-beanutils-1.9.3-src.orig/build.xml ++++ commons-beanutils-1.9.3-src/build.xml @@ -62,10 +62,10 @@ - - - -- -+ - - -- -+ - - - + + + +- ++ + + +- ++ + + + From a1804991bdf40d4192c603068b67a7072d879b0bbc0007fd41e77b3193f8ac6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 21 Sep 2018 07:44:37 +0000 Subject: [PATCH 2/3] - Fix the Source URLs to use mirrors properly OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-beanutils?expand=0&rev=15 --- apache-commons-beanutils.changes | 5 +++++ apache-commons-beanutils.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apache-commons-beanutils.changes b/apache-commons-beanutils.changes index 0ea27ed..461bd67 100644 --- a/apache-commons-beanutils.changes +++ b/apache-commons-beanutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 21 07:44:23 UTC 2018 - Tomáš Chvátal + +- Fix the Source URLs to use mirrors properly + ------------------------------------------------------------------- Thu Sep 20 10:45:41 UTC 2018 - pmonrealgonzalez@suse.com diff --git a/apache-commons-beanutils.spec b/apache-commons-beanutils.spec index 808d312..5b7209c 100644 --- a/apache-commons-beanutils.spec +++ b/apache-commons-beanutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -25,8 +25,8 @@ Summary: Utility methods for accessing and modifying the properties of Ja License: Apache-2.0 Group: Development/Libraries/Java Url: http://commons.apache.org/beanutils -Source0: http://mirror.dkm.cz/apache//commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz -Source1: http://mirror.dkm.cz/apache//commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz.asc +Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz +Source1: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz.asc Patch0: jdk9.patch BuildRequires: ant BuildRequires: commons-collections From e2b51a1074ded335bbefb2e64a1090c890c3eba05e7e864059d6bc91d7b2a804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 21 Sep 2018 07:44:50 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-beanutils?expand=0&rev=16 --- apache-commons-beanutils.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apache-commons-beanutils.spec b/apache-commons-beanutils.spec index 5b7209c..213c11e 100644 --- a/apache-commons-beanutils.spec +++ b/apache-commons-beanutils.spec @@ -24,7 +24,7 @@ Release: 0 Summary: Utility methods for accessing and modifying the properties of JavaBeans License: Apache-2.0 Group: Development/Libraries/Java -Url: http://commons.apache.org/beanutils +URL: http://commons.apache.org/beanutils Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz Source1: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz.asc Patch0: jdk9.patch @@ -39,7 +39,6 @@ Provides: %{short_name} = %{version}-%{release} Obsoletes: %{short_name} < %{version}-%{release} Provides: jakarta-%{short_name} = %{version}-%{release} Obsoletes: jakarta-%{short_name} < %{version}-%{release} -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description @@ -93,7 +92,8 @@ cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name} %files %defattr(0644,root,root,0755) -%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt +%license LICENSE.txt +%doc NOTICE.txt RELEASE-NOTES.txt %{_javadir}/* %{_mavenpomdir}/JPP-%{name}.pom