%global short_name commons-validator Name: apache-%{short_name} Version: 1.4.0 Release: %mkrel 6 Summary: Apache Commons Validator Group: Development/Java License: ASL 2.0 URL: http://commons.apache.org/validator/ Source0: http://www.apache.org/dist/commons/validator/source/%{short_name}-%{version}-src.tar.gz BuildArch: noarch BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: apache-commons-beanutils BuildRequires: apache-commons-digester BuildRequires: apache-commons-logging BuildRequires: maven-local Requires: java >= 1:1.6.0 Requires: jpackage-utils %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 for example. Error messages may also vary by locale. This package attempts to address some of these issues and speed development and maintenance of validation rules. %package javadoc Summary: Javadoc for %{name} Group: Documentation Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{short_name}-%{version}-src sed -i 's/\r//' LICENSE.txt sed -i 's/\r//' RELEASE-NOTES.txt sed -i 's/\r//' NOTICE.txt # Compatibility links %mvn_alias "%{short_name}:%{short_name}" "org.apache.commons:%{short_name}" %mvn_file :commons-validator %{short_name} %{name} %build %mvn_build %install %mvn_install %files -f .mfiles %doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt %files javadoc -f .mfiles-javadoc %doc LICENSE.txt NOTICE.txt %changelog * Wed Oct 15 2014 umeabot <umeabot> 1.4.0-6.mga5 + Revision: 743226 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 1.4.0-5.mga5 + Revision: 677824 - Mageia 5 Mass Rebuild * Tue Oct 22 2013 umeabot <umeabot> 1.4.0-4.mga4 + Revision: 545686 - Mageia 4 Mass Rebuild * Wed Oct 16 2013 dmorgan <dmorgan> 1.4.0-3.mga4 + Revision: 501556 - Build with xmvn * Fri Jan 11 2013 umeabot <umeabot> 1.4.0-2.mga3 + Revision: 345821 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Dec 02 2012 dmorgan <dmorgan> 1.4.0-1.mga3 + Revision: 324920 - New version * Thu Jul 05 2012 dmorgan <dmorgan> 1.3.1-7.mga3 + Revision: 267956 - Tweak source encoding to fix build with Java 1.7. - Drop versioned jars and javadoc dir. - Drop no longer needed javadoc Obsoletes. - Crosslink with local JDK API docs. * Wed Apr 27 2011 dmorgan <dmorgan> 1.3.1-6.mga1 + Revision: 92247 - Rebuild after bootstrapping - imported package apache-commons-validator * Tue Feb 22 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3.1-5 - Change oro to jakarta-oro in BR/R * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Oct 20 2010 Chris Spike <chris.spike@arcor.de> 1.3.1-3 - Moved junit tests to check section * Sat Oct 2 2010 Chris Spike <chris.spike@arcor.de> 1.3.1-2 - Rename and rebase from jakarta-commons-validator