From 4cb8acc51f18542e3df59e0e596ad26de471ab38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 19 Feb 2024 15:35:33 +0100 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 apache-commons-configuration2 revision 208f74e8efbd4d33a89eb048f3c85860 --- .gitattributes | 23 +++ apache-commons-configuration2-build.xml | 180 ++++++++++++++++++++++++ apache-commons-configuration2.changes | 71 ++++++++++ apache-commons-configuration2.spec | 132 +++++++++++++++++ commons-configuration2-2.9.0-src.tar.gz | 3 + 5 files changed, 409 insertions(+) create mode 100644 .gitattributes create mode 100644 apache-commons-configuration2-build.xml create mode 100644 apache-commons-configuration2.changes create mode 100644 apache-commons-configuration2.spec create mode 100644 commons-configuration2-2.9.0-src.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/apache-commons-configuration2-build.xml b/apache-commons-configuration2-build.xml new file mode 100644 index 0000000..1b5de07 --- /dev/null +++ b/apache-commons-configuration2-build.xml @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apache-commons-configuration2.changes b/apache-commons-configuration2.changes new file mode 100644 index 0000000..82f05ba --- /dev/null +++ b/apache-commons-configuration2.changes @@ -0,0 +1,71 @@ +------------------------------------------------------------------- +Sat Sep 23 17:19:23 UTC 2023 - Fridrich Strba + +- Upgrade to version 2.9 + * New features: + + Implement Iterable in ImmutableNode. + + Add PropertiesConfigurationLayout.getBlankLinesBefore() and + deprecate getBlancLinesBefore(). + + Add PropertiesConfigurationLayout.setBlankLinesBefore() and + deprecate setBlancLinesBefore(). + + Add PropertiesConfigurationLayout.PropertyLayoutData + .getBlankLines() and deprecate getBlancLines(). + + Add PropertiesConfigurationLayout.PropertyLayoutData + .setBlankLines() and deprecate setBlancLines(). + + CONFIGURATION-789: Add ImmutableConfiguration.getEnum() + methods. + + CONFIGURATION-789: Add ImmutableConfiguration.getDuration() + methods. + * Fixed bugs: + + CONFIGURATION-753: Make interpolation of collections and + arrays in ConfigurationInterpolator consistent with behavior + of DefaultConversionHandler. Add ConfigurationInterpolator + .setStringConverter to allow customized string conversion + behavior. + + CONFIGURATION-795: Computation of blank lines after header + comment. + + CONFIGURATION-801: Remove redundant initializer. + + CONFIGURATION-802: Use final. + + CONFIGURATION-803: Java 8 lambda improvements and more. + + CONFIGURATION-804: Redundant local variable. + + CONFIGURATION-805: Use try with resource. + + CONFIGURATION-805: [Javadoc] Specify that typed getList + returns null for missing key. + + Mention EnvironmentConfiguration in the list of + configuration sources. + + CONFIGURATION-808: DefaultListDelimiterHandler.escapeList + working only for List. + + Use final. + + Replace test asserts by simpler but equivalent calls. + + CONFIGURATION-764: Single Variable Interpolation. + + Implement proper concurrency in ConstantLookup. + + CONFIGURATION-813: Support new namespace jakarta.mail.* + used by javamail 2.0+ (first release October 2020). + + CONFIGURATION-799: CombinedConfiguration#getKeys() can + throw NoSuchElementException. + + CONFIGURATION-822: Fix ambiguity on the section determining. + + Use Java style array decelerations. + + Add ImmutableNode.stream(). + + Avoid NullPointerException in org.apache.commons + .configuration2.web.AppletConfiguration.getKeysInternal(). + + Fix JDBC prepared statements leak in org.apache.commons + .configuration2.DatabaseConfiguration + .clearPropertyDirect(String). + * Changes: + + Unclosed file handle when reading config from JAR file URL. + Add and use FileBasedBuilderProperties + .setURL(URL, URLConnectionOptions). + + Make default interpolation prefix lookups configurable via + system property. Remove dns, url, and script lookups from + defaults (bsc#1201279, CVE-2022-33980). If these lookups are + required for use in AbstractConfiguration subclasses, they + must be enabled via system property. + See ConfigurationInterpolator .getDefaultPrefixLookups() for + details. +- Generate ANT build system from maven as to avoid build cycles + with maven-doxia-sitetools + +------------------------------------------------------------------- +Mon Mar 7 11:41:18 UTC 2022 - Fridrich Strba + +- Initial packaging of commons-configuration2 2.7 diff --git a/apache-commons-configuration2.spec b/apache-commons-configuration2.spec new file mode 100644 index 0000000..967340e --- /dev/null +++ b/apache-commons-configuration2.spec @@ -0,0 +1,132 @@ +# +# spec file for package apache-commons-configuration2 +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global base_name configuration2 +%global short_name commons-%{base_name} +Name: apache-commons-configuration2 +Version: 2.9.0 +Release: 0 +Summary: Java library providing a generic Configuration interface +License: Apache-2.0 +URL: https://commons.apache.org/proper/commons-configuration/ +Source0: https://archive.apache.org/dist/commons/configuration/source/%{short_name}-%{version}-src.tar.gz +Source10: %{name}-build.xml +BuildRequires: ant +BuildRequires: apache-commons-beanutils +BuildRequires: apache-commons-codec +BuildRequires: apache-commons-jexl +BuildRequires: apache-commons-jxpath +BuildRequires: apache-commons-lang3 +BuildRequires: apache-commons-logging +BuildRequires: apache-commons-text +BuildRequires: apache-commons-vfs2 +BuildRequires: fdupes +BuildRequires: glassfish-servlet-api +BuildRequires: jackson-core +BuildRequires: jackson-databind +BuildRequires: javacc +BuildRequires: javapackages-local >= 6 +BuildRequires: reload4j +BuildRequires: snakeyaml +BuildRequires: xml-resolver +BuildArch: noarch + +%description +The Commons Configuration library provides a generic Configuration +interface which enables a Java application to read configuration data +from a variety of sources. + +Configuration parameters may be loaded from the following sources: + + * Properties files + * XML documents + * Windows INI files + * Property list files (plist) + * JNDI + * JDBC Datasource + * System properties + * Applet parameters + * Servlet parameters + +Configuration objects are created using configuration builders. Different +configuration sources can be mixed using a CombinedConfigurationBuilder and +a CombinedConfiguration. Additional sources of configuration parameters +can be created by using custom configuration objects. This customization +can be achieved by extending AbstractConfiguration or +AbstractHierarchicalConfiguration. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains javadoc for %{name}. + +%prep +%setup -q -n %{short_name}-%{version}-src +cp %{SOURCE10} build.xml + +%pom_remove_dep org.springframework: +rm -r src/main/java/org/apache/commons/configuration2/spring \ + src/test/java/org/apache/commons/configuration2/spring + +%pom_change_dep javax.servlet:servlet-api javax.servlet:javax.servlet-api:3.1.0 + +%build +mkdir -p lib +build-jar-repository -s -p lib \ + apache-commons-text \ + commons-beanutils \ + commons-codec \ + commons-jexl \ + commons-jxpath \ + commons-lang3 \ + commons-logging \ + commons-vfs2 \ + glassfish-servlet-api \ + jackson-core \ + jackson-databind \ + javacc \ + reload4j \ + snakeyaml \ + xml-resolver +%{ant} jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir} +install -pm 0644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{short_name}.jar +ln -sf %{short_name}.jar %{buildroot}%{_javadir}/%{name}.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir} +%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}.pom +%add_maven_depmap %{short_name}.pom %{short_name}.jar +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%doc RELEASE-NOTES.txt +%license LICENSE.txt NOTICE.txt +%{_javadir}/%{name}.jar + +%files javadoc +%license LICENSE.txt NOTICE.txt +%{_javadocdir}/%{name} + +%changelog diff --git a/commons-configuration2-2.9.0-src.tar.gz b/commons-configuration2-2.9.0-src.tar.gz new file mode 100644 index 0000000..621e2f0 --- /dev/null +++ b/commons-configuration2-2.9.0-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2fc47f654646bd7f6e43974f58d55c871e6e7010cd1f3d3bbba11261ca770700 +size 1015992