diff --git a/apache-commons-validator-1.3.1-build_xml.patch b/apache-commons-validator-1.3.1-build_xml.patch deleted file mode 100644 index c272f84..0000000 --- a/apache-commons-validator-1.3.1-build_xml.patch +++ /dev/null @@ -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 @@ - - - -- - - diff --git a/apache-commons-validator-1.3.1.catalog b/apache-commons-validator-1.3.1.catalog deleted file mode 100644 index 99346d1..0000000 --- a/apache-commons-validator-1.3.1.catalog +++ /dev/null @@ -1,8 +0,0 @@ --- Jakarta commons-validator DTD catalog -- --- JPackage Project -- - -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 diff --git a/apache-commons-validator.spec b/apache-commons-validator.spec index 0a4b70d..35694d8 100644 --- a/apache-commons-validator.spec +++ b/apache-commons-validator.spec @@ -1,41 +1,27 @@ Name: apache-commons-validator -Version: 1.3.1 -Release: 2mamba +Version: 1.7 +Release: 1mamba Summary: Commons Validator Package Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://commons.apache.org/validator/ -Source0: http://archive.apache.org/dist/commons/validator/source/commons-validator-%{version}-src.tar.gz -# 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 +URL: https://commons.apache.org/proper/commons-validator/ +Source0: http://archive.apache.org/dist/commons/validator/binaries/commons-validator-%{version}-bin.zip License: Apache License 2.0 -BuildRequires: apache-ant -BuildRequires: apache-commons-beanutils -BuildRequires: apache-commons-digester18 -BuildRequires: jakarta-commons-collections -BuildRequires: jakarta-commons-logging -BuildRequires: jakarta-oro -BuildRequires: java-gcj-compat -BuildRequires: java-junit3 -BuildRequires: jpackage-utils -BuildRequires: java-rhino -BuildRequires: 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 +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: javapackages +Requires: javapackages +#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 Provides: jakarta-commons-validator -BuildRoot: %{_tmppath}/%{name}-%{version}-root +Obsoletes: jakarta-commons-validator <= 1.3.1 %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. @@ -50,43 +36,16 @@ Jakarta Commons Validator Package This package contains javadoc for %{name}. %prep -%setup -q -n commons-validator-%{version}-src -a 1 -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 +%setup -q -n commons-validator-%{version} %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 [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" 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 ( @@ -103,14 +62,14 @@ install -p -m 644 dist/commons-validator-%{version}.jar \ done ) -mkdir -p %{buildroot}%{_datadir}/sgml/%{name} -install -pm 644 conf/share/*.dtd \ - %{buildroot}%{_datadir}/sgml/%{name} -install -pm 644 conf/share/catalog \ - %{buildroot}%{_datadir}/sgml/%{name} +#mkdir -p %{buildroot}%{_datadir}/sgml/%{name} +#install -pm 644 conf/share/*.dtd \ +# %{buildroot}%{_datadir}/sgml/%{name} +#install -pm 644 conf/share/catalog \ +# %{buildroot}%{_datadir}/sgml/%{name} 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 @@ -124,16 +83,17 @@ cp -pr dist/docs/apidocs/* %{buildroot}%{_javadocdir}/%{name}-%{version} %{_javadir}/commons-validator.jar %{_javadir}/apache-commons-validator-%{version}.jar %{_javadir}/apache-commons-validator.jar -%{_datadir}/sgml/%{name} -%doc dist/LICENSE.txt +%doc LICENSE.txt %files javadoc %defattr(-,root,root) %{_javadocdir}/%{name}-%{version} -%doc dist/NOTICE.txt dist/RELEASE-NOTES.txt -%doc dist/commons-validator-%{version}*.js +%doc README.md NOTICE.txt RELEASE-NOTES.txt %changelog +* Fri Aug 19 2022 Silvan Calarco 1.7-1mamba +- update to 1.7 + * Sun Apr 06 2014 Silvan Calarco 1.3.1-2mamba - install under directory recognized by build-classpath diff --git a/jakarta-commons-validator-1.1.4-build.patch b/jakarta-commons-validator-1.1.4-build.patch deleted file mode 100644 index d38e38f..0000000 --- a/jakarta-commons-validator-1.1.4-build.patch +++ /dev/null @@ -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 @@ - - -- - -