forked from pool/apache-commons-configuration2
106 lines
3.5 KiB
RPMSpec
106 lines
3.5 KiB
RPMSpec
|
#
|
||
|
# spec file for package apache-commons-configuration2
|
||
|
#
|
||
|
# Copyright (c) 2022 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.7
|
||
|
Release: 0
|
||
|
Summary: Java library providing a generic Configuration interface
|
||
|
License: Apache-2.0
|
||
|
URL: https://commons.apache.org/proper/commons-configuration/
|
||
|
Source0: http://www.apache.org/dist/commons/configuration/source/%{short_name}-%{version}-src.tar.gz
|
||
|
BuildRequires: fdupes
|
||
|
BuildRequires: maven-local
|
||
|
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
|
||
|
BuildRequires: mvn(commons-beanutils:commons-beanutils)
|
||
|
BuildRequires: mvn(commons-codec:commons-codec)
|
||
|
BuildRequires: mvn(commons-jxpath:commons-jxpath)
|
||
|
BuildRequires: mvn(commons-logging:commons-logging)
|
||
|
BuildRequires: mvn(javax.servlet:javax.servlet-api)
|
||
|
BuildRequires: mvn(log4j:log4j)
|
||
|
BuildRequires: mvn(org.apache.commons:commons-jexl)
|
||
|
BuildRequires: mvn(org.apache.commons:commons-lang3)
|
||
|
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
|
||
|
BuildRequires: mvn(org.apache.commons:commons-text)
|
||
|
BuildRequires: mvn(org.apache.commons:commons-vfs2)
|
||
|
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
|
||
|
BuildRequires: mvn(org.yaml:snakeyaml)
|
||
|
BuildRequires: mvn(xml-resolver: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
|
||
|
|
||
|
%pom_remove_plugin :maven-assembly-plugin
|
||
|
%pom_remove_plugin :maven-checkstyle-plugin
|
||
|
|
||
|
%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
|
||
|
|
||
|
%{mvn_file} : %{short_name} %{name}
|
||
|
|
||
|
%build
|
||
|
%{mvn_build} -f
|
||
|
|
||
|
%install
|
||
|
%mvn_install
|
||
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||
|
|
||
|
%files -f .mfiles
|
||
|
%doc RELEASE-NOTES.txt
|
||
|
%license LICENSE.txt NOTICE.txt
|
||
|
|
||
|
%files javadoc -f .mfiles-javadoc
|
||
|
%license LICENSE.txt NOTICE.txt
|
||
|
|
||
|
%changelog
|