update to 1.7 [release 1.7-1mamba;Fri Aug 19 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 20:28:18 +01:00
parent 647848549b
commit e89b03e023
4 changed files with 29 additions and 99 deletions

View File

@ -1,11 +0,0 @@
--- commons-validator-1.3.1-src/build.xml 2006-11-28 23:31:49.000000000 +0100
+++ commons-validator-1.3.1-src/build.xml-gil 2009-04-12 22:19:15.000000000 +0200
@@ -194,7 +194,7 @@
</target>
- <target name="prepare" depends="init,download-dependencies"
+ <target name="prepare" depends="init"
description="Prepare build directory">
<mkdir dir="${build.home}"/>
<mkdir dir="${build.home}/classes"/>

View File

@ -1,8 +0,0 @@
-- Jakarta commons-validator DTD catalog --
-- JPackage Project <http://www.jpackage.org/> --
PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
validator_1_0.dtd
PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0.1//EN"
validator_1_0_1.dtd

View File

@ -1,41 +1,27 @@
Name: apache-commons-validator Name: apache-commons-validator
Version: 1.3.1 Version: 1.7
Release: 2mamba Release: 1mamba
Summary: Commons Validator Package Summary: Commons Validator Package
Group: Development/Libraries/Java Group: Development/Libraries/Java
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://commons.apache.org/validator/ URL: https://commons.apache.org/proper/commons-validator/
Source0: http://archive.apache.org/dist/commons/validator/source/commons-validator-%{version}-src.tar.gz Source0: http://archive.apache.org/dist/commons/validator/binaries/commons-validator-%{version}-bin.zip
# svn export http://svn.apache.org/repos/asf/commons/proper/validator/tags/VALIDATOR_1_3_1/conf/
# tar cjf apache-commons-validator-1.3.1-conf.tar.gz conf
Source1: apache-commons-validator-1.3.1-conf.tar.gz
Source2: apache-commons-validator-1.3.1.catalog
Patch0: jakarta-commons-validator-1.1.4-build.patch
Patch1: apache-commons-validator-1.3.1-build_xml.patch
License: Apache License 2.0 License: Apache License 2.0
BuildRequires: apache-ant ## AUTOBUILDREQ-BEGIN
BuildRequires: apache-commons-beanutils ## AUTOBUILDREQ-END
BuildRequires: apache-commons-digester18 BuildRequires: javapackages
BuildRequires: jakarta-commons-collections Requires: javapackages
BuildRequires: jakarta-commons-logging #Requires: apache-commons-beanutils
BuildRequires: jakarta-oro #Requires: apache-commons-digester18
BuildRequires: java-gcj-compat #Requires: jakarta-commons-collections
BuildRequires: java-junit3 #Requires: jakarta-commons-logging
BuildRequires: jpackage-utils #Requires: jakarta-oro
BuildRequires: java-rhino #Requires: jpackage-utils
BuildRequires: xml-commons-apis #Requires: xml-commons-apis
Requires: apache-commons-beanutils
Requires: apache-commons-digester18
Requires: jakarta-commons-collections
Requires: jakarta-commons-logging
Requires: jakarta-oro
Requires: jpackage-utils
Requires: xml-commons-apis
Obsoletes: jakarta-commons-validator
Provides: jakarta-commons-validator Provides: jakarta-commons-validator
BuildRoot: %{_tmppath}/%{name}-%{version}-root Obsoletes: jakarta-commons-validator <= 1.3.1
%description %description
A common issue when receiving data either electronically or from user input is verifying the integrity of the data. This work is repetitive and becomes even more complicated when different sets of validation rules need to be applied to the same set of data based on locale. A common issue when receiving data either electronically or from user input is verifying the integrity of the data. This work is repetitive and becomes even more complicated when different sets of validation rules need to be applied to the same set of data based on locale.
@ -50,43 +36,16 @@ Jakarta Commons Validator Package
This package contains javadoc for %{name}. This package contains javadoc for %{name}.
%prep %prep
%setup -q -n commons-validator-%{version}-src -a 1 %setup -q -n commons-validator-%{version}
for j in $(find . -name "*.jar"); do
mv $j ${j}.no
done
cp -p %{S:2} conf/share/catalog
#%patch0 -p1
# for system libs
%patch1 -p1
mkdir -p lib
pushd lib
ln -sf $(build-classpath xml-commons-apis)
ln -sf $(build-classpath oro)
ln -sf $(build-classpath junit-3.8.2 )
ln -sf $(build-classpath commons-logging)
ln -sf $(build-classpath digester/commons-digester18)
ln -sf $(build-classpath beanutils/commons-beanutils)
ln -sf $(build-classpath rhino)
ln -sf $(build-classpath commons-collections)
popd
%build %build
export CLASSPATH=$(build-classpath xml-commons-apis oro junit-3.8.2 \
jakarta-commons-logging digester/commons-digester18 beanutils/commons-beanutils rhino jakarta-commons-collections)
ant -Dbuild.sysclasspath=first \
-Ddojo_custom_rhino.jar=$(build-classpath rhino) \
test dist
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}/validator mkdir -p %{buildroot}%{_javadir}/validator
install -p -m 644 dist/commons-validator-%{version}.jar \ install -p -m 644 commons-validator-%{version}.jar \
%{buildroot}%{_javadir}/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
( (
@ -103,14 +62,14 @@ install -p -m 644 dist/commons-validator-%{version}.jar \
done done
) )
mkdir -p %{buildroot}%{_datadir}/sgml/%{name} #mkdir -p %{buildroot}%{_datadir}/sgml/%{name}
install -pm 644 conf/share/*.dtd \ #install -pm 644 conf/share/*.dtd \
%{buildroot}%{_datadir}/sgml/%{name} # %{buildroot}%{_datadir}/sgml/%{name}
install -pm 644 conf/share/catalog \ #install -pm 644 conf/share/catalog \
%{buildroot}%{_datadir}/sgml/%{name} # %{buildroot}%{_datadir}/sgml/%{name}
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version} mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr dist/docs/apidocs/* %{buildroot}%{_javadocdir}/%{name}-%{version} cp -pr apidocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
#%{_bindir}/aot-compile-rpm #%{_bindir}/aot-compile-rpm
@ -124,16 +83,17 @@ cp -pr dist/docs/apidocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
%{_javadir}/commons-validator.jar %{_javadir}/commons-validator.jar
%{_javadir}/apache-commons-validator-%{version}.jar %{_javadir}/apache-commons-validator-%{version}.jar
%{_javadir}/apache-commons-validator.jar %{_javadir}/apache-commons-validator.jar
%{_datadir}/sgml/%{name} %doc LICENSE.txt
%doc dist/LICENSE.txt
%files javadoc %files javadoc
%defattr(-,root,root) %defattr(-,root,root)
%{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name}-%{version}
%doc dist/NOTICE.txt dist/RELEASE-NOTES.txt %doc README.md NOTICE.txt RELEASE-NOTES.txt
%doc dist/commons-validator-%{version}*.js
%changelog %changelog
* Fri Aug 19 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7-1mamba
- update to 1.7
* Sun Apr 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1-2mamba * Sun Apr 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1-2mamba
- install under directory recognized by build-classpath - install under directory recognized by build-classpath

View File

@ -1,11 +0,0 @@
--- commons-validator-1.1.4/build.xml 2004-11-12 17:36:40.000000000 +0100
+++ commons-validator-1.1.4/build.xml-gil 2009-03-07 14:06:39.000000000 +0100
@@ -266,7 +266,7 @@
<mkdir dir="${dist.home}"/>
<copy file="LICENSE.txt"
todir="${dist.home}"/>
- <copy file="RELEASE-NOTES.readme"
+ <copy file="NOTICE.txt"
todir="${dist.home}"/>
<mkdir dir="${build.home}/classes/META-INF"/>
<copy file="LICENSE.txt"