|
|
bbc391e |
# https://commons.apache.org/proper/commons-configuration/userguide/upgradeto2_0.html
|
|
|
bbc391e |
%global base_name configuration2
|
|
|
bbc391e |
%global short_name commons-%{base_name}
|
|
|
bbc391e |
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=1363923
|
|
|
bbc391e |
# Use springframework:4.2.5.RELEASE
|
|
|
bbc391e |
%bcond_with spring
|
|
|
bbc391e |
|
|
|
bbc391e |
Name: apache-commons-configuration2
|
|
|
bbc391e |
Version: 2.1
|
|
|
63daed7 |
Release: 2%{?dist}
|
|
|
bbc391e |
Summary: Java library providing a generic Configuration interface
|
|
|
bbc391e |
License: ASL 2.0
|
|
|
bbc391e |
URL: http://commons.apache.org/proper/commons-configuration/
|
|
|
bbc391e |
Source0: http://www.apache.org/dist/commons/configuration/source/%{short_name}-%{version}-src.tar.gz
|
|
|
bbc391e |
|
|
|
bbc391e |
BuildRequires: maven-local
|
|
|
bbc391e |
BuildRequires: mvn(commons-beanutils:commons-beanutils)
|
|
|
bbc391e |
BuildRequires: mvn(commons-codec:commons-codec)
|
|
|
bbc391e |
BuildRequires: mvn(commons-jxpath:commons-jxpath)
|
|
|
bbc391e |
BuildRequires: mvn(commons-logging:commons-logging)
|
|
|
bbc391e |
BuildRequires: mvn(javax.servlet:javax.servlet-api)
|
|
|
bbc391e |
BuildRequires: mvn(log4j:log4j:1.2.17)
|
|
|
bbc391e |
BuildRequires: mvn(org.apache.commons:commons-jexl)
|
|
|
bbc391e |
BuildRequires: mvn(org.apache.commons:commons-lang3)
|
|
|
bbc391e |
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
|
|
|
bbc391e |
BuildRequires: mvn(org.apache.commons:commons-vfs2)
|
|
|
bbc391e |
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
bbc391e |
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
|
|
bbc391e |
BuildRequires: mvn(org.apache.maven.plugins:maven-checkstyle-plugin)
|
|
|
bbc391e |
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
|
|
|
bbc391e |
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
|
|
|
bbc391e |
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
|
bbc391e |
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
|
|
|
bbc391e |
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
|
|
|
bbc391e |
%if %{with spring}
|
|
|
bbc391e |
BuildRequires: mvn(org.springframework:spring-beans)
|
|
|
bbc391e |
BuildRequires: mvn(org.springframework:spring-core)
|
|
|
bbc391e |
# Test deps
|
|
|
bbc391e |
BuildRequires: mvn(org.springframework:spring-context)
|
|
|
bbc391e |
BuildRequires: mvn(org.springframework:spring-test)
|
|
|
bbc391e |
%endif
|
|
|
bbc391e |
BuildRequires: mvn(xml-apis:xml-apis)
|
|
|
bbc391e |
BuildRequires: mvn(xml-resolver:xml-resolver)
|
|
|
bbc391e |
|
|
|
bbc391e |
# Other deps
|
|
|
bbc391e |
BuildRequires: mvn(stax:stax-api)
|
|
|
bbc391e |
|
|
|
bbc391e |
# Other test deps
|
|
|
bbc391e |
BuildRequires: mvn(com.sun.mail:javax.mail)
|
|
|
bbc391e |
BuildRequires: mvn(commons-dbcp:commons-dbcp)
|
|
|
bbc391e |
BuildRequires: mvn(commons-pool:commons-pool)
|
|
|
bbc391e |
BuildRequires: mvn(hsqldb:hsqldb:1)
|
|
|
bbc391e |
BuildRequires: mvn(junit:junit)
|
|
|
bbc391e |
BuildRequires: mvn(junit-addons:junit-addons)
|
|
|
bbc391e |
BuildRequires: mvn(org.dbunit:dbunit)
|
|
|
bbc391e |
BuildRequires: mvn(org.easymock:easymock)
|
|
|
bbc391e |
BuildRequires: mvn(org.slf4j:slf4j-api)
|
|
|
bbc391e |
BuildRequires: mvn(org.slf4j:slf4j-ext)
|
|
|
bbc391e |
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
|
|
|
bbc391e |
BuildRequires: mvn(xerces:xercesImpl)
|
|
|
bbc391e |
|
|
|
bbc391e |
BuildArch: noarch
|
|
|
bbc391e |
|
|
|
bbc391e |
%description
|
|
|
bbc391e |
The Commons Configuration library provides a generic Configuration
|
|
|
bbc391e |
interface which enables a Java application to read configuration data
|
|
|
bbc391e |
from a variety of sources.
|
|
|
bbc391e |
|
|
|
bbc391e |
Configuration parameters may be loaded from the following sources:
|
|
|
bbc391e |
|
|
|
bbc391e |
* Properties files
|
|
|
bbc391e |
* XML documents
|
|
|
bbc391e |
* Windows INI files
|
|
|
bbc391e |
* Property list files (plist)
|
|
|
bbc391e |
* JNDI
|
|
|
bbc391e |
* JDBC Datasource
|
|
|
bbc391e |
* System properties
|
|
|
bbc391e |
* Applet parameters
|
|
|
bbc391e |
* Servlet parameters
|
|
|
bbc391e |
|
|
|
bbc391e |
Configuration objects are created using configuration builders. Different
|
|
|
bbc391e |
configuration sources can be mixed using a CombinedConfigurationBuilder and
|
|
|
bbc391e |
a CombinedConfiguration. Additional sources of configuration parameters
|
|
|
bbc391e |
can be created by using custom configuration objects. This customization
|
|
|
bbc391e |
can be achieved by extending AbstractConfiguration or
|
|
|
bbc391e |
AbstractHierarchicalConfiguration.
|
|
|
bbc391e |
|
|
|
bbc391e |
%package javadoc
|
|
|
bbc391e |
Summary: Javadoc for %{name}
|
|
|
bbc391e |
|
|
|
bbc391e |
%description javadoc
|
|
|
bbc391e |
This package contains javadoc for %{name}.
|
|
|
bbc391e |
|
|
|
bbc391e |
%prep
|
|
|
bbc391e |
%setup -q -n %{short_name}-%{version}-src
|
|
|
bbc391e |
|
|
|
bbc391e |
# Convert from dos to unix line ending
|
|
|
bbc391e |
for file in *.txt; do
|
|
|
bbc391e |
sed -i.orig 's|\r||g' $file
|
|
|
bbc391e |
touch -r $file.orig $file
|
|
|
bbc391e |
rm $file.orig
|
|
|
bbc391e |
done
|
|
|
bbc391e |
# Useless task
|
|
|
bbc391e |
%pom_remove_plugin :maven-assembly-plugin
|
|
|
bbc391e |
|
|
|
bbc391e |
%if %{without spring}
|
|
|
bbc391e |
%pom_remove_dep org.springframework:
|
|
|
bbc391e |
rm -r src/main/java/org/apache/commons/configuration2/spring \
|
|
|
bbc391e |
src/test/java/org/apache/commons/configuration2/spring
|
|
|
bbc391e |
%endif
|
|
|
bbc391e |
|
|
|
bbc391e |
# Move to never apis
|
|
|
bbc391e |
%pom_change_dep javax.servlet:servlet-api javax.servlet:javax.servlet-api:3.1.0
|
|
|
bbc391e |
%pom_change_dep javax.mail:mail com.sun.mail:javax.mail:1.5.2
|
|
|
bbc391e |
|
|
|
bbc391e |
%pom_change_dep hsqldb: ::1
|
|
|
bbc391e |
%pom_change_dep dbunit: org.dbunit::2.5.1
|
|
|
bbc391e |
sed -i.dbunit2.5 "s|org.dbunit.dataset.csv.handlers.NoHandler|org.dbunit.dataset.common.handlers.NoHandler|" \
|
|
|
bbc391e |
src/test/java/org/apache/commons/configuration2/tree/NodeStructureHelper.java
|
|
|
bbc391e |
# mockobjects:mockobjects-core,:mockobjects-jdk1.4-j2ee1.3:0.09
|
|
|
bbc391e |
%pom_remove_dep mockobjects:
|
|
|
bbc391e |
rm src/test/java/org/apache/commons/configuration2/web/TestServletContextConfiguration.java \
|
|
|
bbc391e |
src/test/java/org/apache/commons/configuration2/web/TestServletRequestConfiguration.java \
|
|
|
bbc391e |
src/test/java/org/apache/commons/configuration2/web/TestServletConfiguration.java \
|
|
|
bbc391e |
src/test/java/org/apache/commons/configuration2/MockInitialContextFactory.java \
|
|
|
bbc391e |
src/test/java/org/apache/commons/configuration2/TestJNDIConfiguration.java \
|
|
|
bbc391e |
src/test/java/org/apache/commons/configuration2/TestNullJNDIEnvironmentValues.java \
|
|
|
bbc391e |
src/test/java/org/apache/commons/configuration2/TestJNDIEnvironmentValues.java \
|
|
|
bbc391e |
src/test/java/org/apache/commons/configuration2/builder/combined/TestCombinedConfigurationBuilderVFS.java \
|
|
|
bbc391e |
src/test/java/org/apache/commons/configuration2/builder/combined/TestCombinedConfigurationBuilder.java
|
|
|
bbc391e |
# use servlet-api:2.4
|
|
|
bbc391e |
rm src/test/java/org/apache/commons/configuration2/web/TestServletFilterConfiguration.java
|
|
|
bbc391e |
# org.apache.commons.configuration2.ex.ConfigurationException: Could not locate: org.apache.commons.configuration2.io.FileLocator@1a88d87[fileName=target/test-classes/testMultiConfiguration_${sys:Id}.xml,basePath=<null>,sourceURL=,encoding=<null>,fileSystem=<null>,locationStrategy=<null>]
|
|
|
bbc391e |
rm src/test/java/org/apache/commons/configuration2/builder/combined/TestReloadingMultiFileConfigurationBuilder.java \
|
|
|
bbc391e |
src/test/java/org/apache/commons/configuration2/builder/combined/TestMultiFileConfigurationBuilder.java \
|
|
|
bbc391e |
src/test/java/org/apache/commons/configuration2/TestDynamicCombinedConfiguration.java
|
|
|
bbc391e |
# java.lang.StackOverflowError @ testMultiConfiguration
|
|
|
bbc391e |
rm src/test/java/org/apache/commons/configuration2/TestPatternSubtreeConfiguration.java
|
|
|
bbc391e |
# Only on koji java.lang.AssertionError:
|
|
|
bbc391e |
# Factory not set expected same:<EasyMock for interface org.apache.commons.configuration2.PropertiesConfiguration$IOFactory> was not:<null>
|
|
|
bbc391e |
rm src/test/java/org/apache/commons/configuration2/builder/TestPropertiesBuilderParametersImpl.java
|
|
|
bbc391e |
|
|
|
bbc391e |
%mvn_file : %{short_name} %{name}
|
|
|
bbc391e |
|
|
|
bbc391e |
%build
|
|
|
bbc391e |
|
|
|
bbc391e |
%mvn_build
|
|
|
bbc391e |
|
|
|
bbc391e |
%install
|
|
|
bbc391e |
%mvn_install
|
|
|
bbc391e |
|
|
|
bbc391e |
%files -f .mfiles
|
|
|
bbc391e |
%doc RELEASE-NOTES.txt
|
|
|
bbc391e |
%license LICENSE.txt NOTICE.txt
|
|
|
bbc391e |
|
|
|
bbc391e |
%files javadoc -f .mfiles-javadoc
|
|
|
bbc391e |
%license LICENSE.txt NOTICE.txt
|
|
|
bbc391e |
|
|
|
bbc391e |
%changelog
|
|
|
63daed7 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
|
|
|
63daed7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
63daed7 |
|
|
|
bbc391e |
* Wed Nov 16 2016 gil cattaneo <puntogil@libero.it> 2.1-1
|
|
|
bbc391e |
- initial rpm
|
|
|
bbc391e |
|