|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
%global base_name configuration
|
|
Stanislav Ochotnicky |
66cd31 |
%global short_name commons-%{base_name}
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
Name: apache-%{short_name}
|
|
Stanislav Ochotnicky |
66cd31 |
Version: 1.6
|
|
Stanislav Ochotnicky |
66cd31 |
Release: 1%{?dist}
|
|
Stanislav Ochotnicky |
66cd31 |
Summary: Commons Configuration Package
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
Group: Development/Libraries
|
|
Stanislav Ochotnicky |
66cd31 |
License: ASL 2.0
|
|
Stanislav Ochotnicky |
66cd31 |
URL: http://commons.apache.org/%{base_name}/
|
|
Stanislav Ochotnicky |
66cd31 |
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
|
Stanislav Ochotnicky |
66cd31 |
Patch0: %{short_name}-test-deps.patch
|
|
Stanislav Ochotnicky |
66cd31 |
BuildArch: noarch
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: java-devel
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: jpackage-utils >= 0:1.7.2
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: maven-doxia-sitetools
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: maven-plugin-bundle
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: maven-surefire-maven-plugin
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: maven-surefire-provider-junit
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: maven2-plugin-antrun
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: maven2-plugin-assembly
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: maven2-plugin-compiler
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: maven2-plugin-idea
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: maven2-plugin-install
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: maven2-plugin-jar
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: maven2-plugin-javadoc
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: maven2-plugin-resources
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: xalan-j2
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: xerces-j2
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: xml-commons-apis
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: apache-commons-beanutils >= 0:1.7.0
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: apache-commons-codec
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: apache-commons-lang
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: apache-commons-logging
|
|
Stanislav Ochotnicky |
66cd31 |
# convert to apache-commons when transition is done
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: jakarta-commons-collections
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: jakarta-commons-dbcp
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: jakarta-commons-digester
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: jakarta-commons-jxpath
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: jakarta-commons-pool
|
|
Stanislav Ochotnicky |
66cd31 |
# update to tomcat5 servlet APIs when maven is updated
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: servletapi5
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRequires: tomcat5
|
|
Stanislav Ochotnicky |
66cd31 |
Requires: servletapi5
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
Requires: apache-commons-beanutils >= 0:1.7.0
|
|
Stanislav Ochotnicky |
66cd31 |
Requires: apache-commons-codec
|
|
Stanislav Ochotnicky |
66cd31 |
Requires: apache-commons-jxpath
|
|
Stanislav Ochotnicky |
66cd31 |
Requires: apache-commons-lang
|
|
Stanislav Ochotnicky |
66cd31 |
Requires: apache-commons-logging
|
|
Stanislav Ochotnicky |
66cd31 |
Requires: jakarta-commons-collections
|
|
Stanislav Ochotnicky |
66cd31 |
Requires: jakarta-commons-dbcp
|
|
Stanislav Ochotnicky |
66cd31 |
Requires: jakarta-commons-digester
|
|
Stanislav Ochotnicky |
66cd31 |
Requires: jakarta-commons-pool
|
|
Stanislav Ochotnicky |
66cd31 |
Requires: xerces-j2
|
|
Stanislav Ochotnicky |
66cd31 |
Requires: xml-commons-apis
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
Requires(post): jpackage-utils >= 1.7.2
|
|
Stanislav Ochotnicky |
66cd31 |
Requires(postun): jpackage-utils >= 1.7.2
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
Provides: jakarta-%{short_name} = 0:%{version}-%{release}
|
|
Stanislav Ochotnicky |
66cd31 |
Obsoletes: jakarta-%{short_name} < 0:%{version}-%{release}
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
%description
|
|
Stanislav Ochotnicky |
66cd31 |
Configuration is a project to provide a generic Configuration
|
|
Stanislav Ochotnicky |
66cd31 |
interface and allow the source of the values to vary. It
|
|
Stanislav Ochotnicky |
66cd31 |
provides easy typed access to single, as well as lists of
|
|
Stanislav Ochotnicky |
66cd31 |
configuration values based on a 'key'.
|
|
Stanislav Ochotnicky |
66cd31 |
Right now you can load properties from a simple properties
|
|
Stanislav Ochotnicky |
66cd31 |
file, a properties file in a jar, an XML file, JNDI settings,
|
|
Stanislav Ochotnicky |
66cd31 |
as well as use a mix of different sources using a
|
|
Stanislav Ochotnicky |
66cd31 |
ConfigurationFactory and CompositeConfiguration.
|
|
Stanislav Ochotnicky |
66cd31 |
Custom configuration objects are very easy to create now
|
|
Stanislav Ochotnicky |
66cd31 |
by just subclassing AbstractConfiguration. This works
|
|
Stanislav Ochotnicky |
66cd31 |
similar to how AbstractList works.
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
%package javadoc
|
|
Stanislav Ochotnicky |
66cd31 |
Summary: API documentation for %{name}
|
|
Stanislav Ochotnicky |
66cd31 |
Group: Documentation
|
|
Stanislav Ochotnicky |
66cd31 |
Requires: jpackage-utils
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
Provides: jakarta-%{short_name}-javadoc = 0:%{version}-%{release}
|
|
Stanislav Ochotnicky |
66cd31 |
Obsoletes: jakarta-%{short_name}-javadoc < 0:%{version}-%{release}
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
%description javadoc
|
|
Stanislav Ochotnicky |
66cd31 |
%{summary}.
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
%prep
|
|
Stanislav Ochotnicky |
66cd31 |
%setup -q -n %{short_name}-%{version}-src
|
|
Stanislav Ochotnicky |
66cd31 |
%patch0 -p1
|
|
Stanislav Ochotnicky |
66cd31 |
%{__sed} -i 's/\r//' LICENSE.txt
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
%build
|
|
Stanislav Ochotnicky |
66cd31 |
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
|
Stanislav Ochotnicky |
66cd31 |
mkdir -p $MAVEN_REPO_LOCAL
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
mvn-jpp -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
|
Stanislav Ochotnicky |
66cd31 |
-Dmaven.test.skip=true \
|
|
Stanislav Ochotnicky |
66cd31 |
install javadoc:javadoc
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
%install
|
|
Stanislav Ochotnicky |
66cd31 |
rm -rf $RPM_BUILD_ROOT
|
|
Stanislav Ochotnicky |
66cd31 |
# jars
|
|
Stanislav Ochotnicky |
66cd31 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
|
Stanislav Ochotnicky |
66cd31 |
install -p -m 644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
pushd $RPM_BUILD_ROOT%{_javadir}
|
|
Stanislav Ochotnicky |
66cd31 |
for jar in *-%{version}*; do
|
|
Stanislav Ochotnicky |
66cd31 |
ln -sf ${jar} `echo $jar| sed "s|apache-||g"`
|
|
Stanislav Ochotnicky |
66cd31 |
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
|
|
Stanislav Ochotnicky |
66cd31 |
ln -sf ${jar} `echo $jar| sed "s|apache-\(.*\)-%{version}|\1|g"`
|
|
Stanislav Ochotnicky |
66cd31 |
done
|
|
Stanislav Ochotnicky |
66cd31 |
popd # come back from javadir
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
# javadoc
|
|
Stanislav Ochotnicky |
66cd31 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
Stanislav Ochotnicky |
66cd31 |
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
Stanislav Ochotnicky |
66cd31 |
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
# Install pom
|
|
Stanislav Ochotnicky |
66cd31 |
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
|
Stanislav Ochotnicky |
66cd31 |
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
Stanislav Ochotnicky |
66cd31 |
%add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{short_name}
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
# following line is only for backwards compatibility. New packages
|
|
Stanislav Ochotnicky |
66cd31 |
# should use proper groupid org.apache.commons and also artifactid
|
|
Stanislav Ochotnicky |
66cd31 |
%add_to_maven_depmap %{short_name} %{short_name} %{version} JPP %{short_name}
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
%clean
|
|
Stanislav Ochotnicky |
66cd31 |
rm -rf $RPM_BUILD_ROOT
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
%post
|
|
Stanislav Ochotnicky |
66cd31 |
%update_maven_depmap
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
%postun
|
|
Stanislav Ochotnicky |
66cd31 |
%update_maven_depmap
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
%files
|
|
Stanislav Ochotnicky |
66cd31 |
%defattr(-,root,root,-)
|
|
Stanislav Ochotnicky |
66cd31 |
%{_mavendepmapfragdir}/*
|
|
Stanislav Ochotnicky |
66cd31 |
%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
Stanislav Ochotnicky |
66cd31 |
%doc LICENSE.txt
|
|
Stanislav Ochotnicky |
66cd31 |
%{_javadir}/*.jar
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
%files javadoc
|
|
Stanislav Ochotnicky |
66cd31 |
%defattr(-,root,root,-)
|
|
Stanislav Ochotnicky |
66cd31 |
%doc %{_javadocdir}/%{name}-%{version}
|
|
Stanislav Ochotnicky |
66cd31 |
%doc %{_javadocdir}/%{name}
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
%changelog
|
|
Stanislav Ochotnicky |
66cd31 |
* Thu May 27 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.6-1
|
|
Stanislav Ochotnicky |
66cd31 |
- Rename package (jakarta-commons-configuration->apache-commons-configuration)
|
|
Stanislav Ochotnicky |
66cd31 |
- Build with maven instead of ant, drop deprecated patches
|
|
Stanislav Ochotnicky |
66cd31 |
- Rebase, cleanups, drop epoch
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
* Thu Aug 20 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.4-7
|
|
Stanislav Ochotnicky |
66cd31 |
- Fix description.
|
|
Stanislav Ochotnicky |
66cd31 |
- Remove requires(post/postun) for javadoc subpackage.
|
|
Stanislav Ochotnicky |
66cd31 |
- Use sed instead of dos2unix.
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
* Thu Aug 20 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.4-6
|
|
Stanislav Ochotnicky |
66cd31 |
- Remove gcj support.
|
|
Stanislav Ochotnicky |
66cd31 |
- Initial build for Fedora.
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
* Mon May 18 2009 Fernando Nasser <fnasser@redhat.com> - 0:1.4-5
|
|
Stanislav Ochotnicky |
66cd31 |
- Fix license
|
|
Stanislav Ochotnicky |
66cd31 |
- Fix source URL
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
* Wed Mar 18 2009 Yong Yang <yyang@redhat.com> - 0:1.4-4
|
|
Stanislav Ochotnicky |
66cd31 |
- rebuild with new maven2 2.0.8 built in bootstrap mode
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
* Thu Feb 05 2009 Yong Yang <yyang@redhat.com> - 0:1.4-3
|
|
Stanislav Ochotnicky |
66cd31 |
- Fix release tag
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
* Wed Jan 14 2009 Yong Yang <yyang@redhat.com> - 0:1.4-2jpp
|
|
Stanislav Ochotnicky |
66cd31 |
- Import from dbhole's maven 2.0.8 packages, initial building
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
* Mon Aug 13 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.4-1jpp
|
|
Stanislav Ochotnicky |
66cd31 |
- Upgrade to 1.4
|
|
Stanislav Ochotnicky |
66cd31 |
- Add pom file
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
* Thu May 03 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.2-3jpp
|
|
Stanislav Ochotnicky |
66cd31 |
- Patch one test
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
* Wed Mar 07 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.2-2jpp
|
|
Stanislav Ochotnicky |
66cd31 |
- Add gcj_support option
|
|
Stanislav Ochotnicky |
66cd31 |
- Optionally build without maven
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
* Mon Feb 20 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.2-1jpp
|
|
Stanislav Ochotnicky |
66cd31 |
- Upgrade to 1.2
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
* Mon Feb 20 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.1-2jpp
|
|
Stanislav Ochotnicky |
66cd31 |
- Rebuild for JPP-1.7 and maven-1.1
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
* Thu Sep 15 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.1-1jpp
|
|
Stanislav Ochotnicky |
66cd31 |
- Upgrade to 1.1
|
|
Stanislav Ochotnicky |
66cd31 |
- Omit findbugs and tasks reports: don't have these plugins yet
|
|
Stanislav Ochotnicky |
66cd31 |
- Requires java 1.4.2 to build
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
* Mon Feb 21 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.0.f-1jpp
|
|
Stanislav Ochotnicky |
66cd31 |
- Upgrade to 1.0 final, letter in version can be bumped with 1.1
|
|
Stanislav Ochotnicky |
66cd31 |
- Prepare for build with maven, but still build with ant
|
|
Stanislav Ochotnicky |
66cd31 |
|
|
Stanislav Ochotnicky |
66cd31 |
* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:1.0.d3-2jpp
|
|
Stanislav Ochotnicky |
66cd31 |
- Rebuild with ant-1.6.2
|
|
Stanislav Ochotnicky |
66cd31 |
- Upgrade to Ant 1.6.X
|
|
Stanislav Ochotnicky |
66cd31 |
* Mon Jan 19 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.0.d3-1jpp
|
|
Stanislav Ochotnicky |
66cd31 |
- First JPackage release
|