spike 558d6b
%global base_name       validator
spike 558d6b
%global short_name      commons-%{base_name}
spike 558d6b
spike 558d6b
Name:             apache-%{short_name}
spike 2c026e
Version:          1.4.0
Stanislav Ochotnicky d7f241
Release:          3%{?dist}
spike 558d6b
Summary:          Apache Commons Validator
spike 558d6b
Group:            Development/Libraries
spike 558d6b
License:          ASL 2.0
spike 558d6b
URL:              http://commons.apache.org/%{base_name}/
spike 558d6b
Source0:          http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
spike 558d6b
BuildArch:        noarch
spike 558d6b
spike 558d6b
BuildRequires:    java-devel >= 1:1.6.0
spike 558d6b
BuildRequires:    jpackage-utils
spike 558d6b
BuildRequires:    apache-commons-beanutils
spike 558d6b
BuildRequires:    apache-commons-digester
spike 558d6b
BuildRequires:    apache-commons-logging
Stanislav Ochotnicky d7f241
BuildRequires:    maven-local
spike 558d6b
BuildRequires:    junit
spike 558d6b
Requires:         apache-commons-beanutils
spike 558d6b
Requires:         apache-commons-digester
spike 558d6b
Requires:         apache-commons-logging
spike 558d6b
Requires:         java >= 1:1.6.0
spike 558d6b
Requires:         jpackage-utils
spike 558d6b
spike 558d6b
spike 558d6b
%description
Stanislav Ochotnicky 6a68c7
A common issue when receiving data either electronically or from user input is
Stanislav Ochotnicky 6a68c7
verifying the integrity of the data. This work is repetitive and becomes even
Stanislav Ochotnicky 6a68c7
more complicated when different sets of validation rules need to be applied to
Stanislav Ochotnicky 6a68c7
the same set of data based on locale for example. Error messages may also vary
Stanislav Ochotnicky 6a68c7
by locale. This package attempts to address some of these issues and speed
spike 558d6b
development and maintenance of validation rules.
spike 558d6b
spike 558d6b
%package javadoc
spike 558d6b
Summary:          Javadoc for %{name}
spike 558d6b
Group:            Documentation
spike 2c026e
Requires:         jpackage-utils
spike 2c026e
spike 558d6b
spike 558d6b
%description javadoc
spike 558d6b
This package contains the API documentation for %{name}.
spike 558d6b
spike 558d6b
%prep
spike 558d6b
%setup -q -n %{short_name}-%{version}-src
spike 558d6b
sed -i 's/\r//' LICENSE.txt
spike 558d6b
sed -i 's/\r//' RELEASE-NOTES.txt
spike 558d6b
sed -i 's/\r//' NOTICE.txt
spike 558d6b
Stanislav Ochotnicky f2edda
spike 558d6b
%build
spike 2c026e
mvn-rpmbuild install javadoc:aggregate
spike 558d6b
spike 558d6b
spike 558d6b
%install
spike 558d6b
# jars
spike 558d6b
install -d -m 0755 %{buildroot}%{_javadir}
spike 2c026e
install -pm 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
spike 2c026e
spike 2c026e
# pom
spike 2c026e
install -d -m 755 %{buildroot}%{_mavenpomdir}
spike 2c026e
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
spike 2c026e
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "%{short_name}:%{short_name}"
spike 558d6b
spike 558d6b
# javadoc
Ville Skyttä 24ce85
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
spike 2c026e
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
Ville Skyttä 24ce85
spike 558d6b
%files
spike 558d6b
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
spike 2c026e
%{_javadir}/*
spike 2c026e
%{_mavenpomdir}/*
spike 2c026e
%{_mavendepmapfragdir}/*
spike 558d6b
spike 558d6b
%files javadoc
Mikolaj Izdebski e05a46
%doc LICENSE.txt NOTICE.txt
spike 558d6b
%{_javadocdir}/%{name}
spike 558d6b
spike 2c026e
spike 558d6b
%changelog
Stanislav Ochotnicky d7f241
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.4.0-3
Stanislav Ochotnicky d7f241
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky d7f241
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky d7f241
Mikolaj Izdebski e05a46
* Fri Nov 23 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.0-2
Mikolaj Izdebski e05a46
- Install NOTICE file with javadoc package
Mikolaj Izdebski e05a46
spike 2c026e
* Fri Oct 19 2012 Chris Spike <spike@fedoraproject.org> 1.4.0-1
spike 2c026e
- Updated to 1.4.0
spike 2c026e
- Switched build tool from ant to maven
spike 2c026e
- Updated to latest java packaging guidelines
spike 2c026e
- Dropped oro BR/R
spike 2c026e
Dennis Gilmore 93ebd3
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-9
Dennis Gilmore 93ebd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Dennis Gilmore 93ebd3
Stanislav Ochotnicky f2edda
* Fri May 18 2012 Stanislav Ochotnicky <sochotnicky@redhat.com>- 1.3.1-8
Stanislav Ochotnicky f2edda
- Fix tests after junit update
Stanislav Ochotnicky f2edda
Ville Skyttä 24ce85
* Sat Jan 14 2012 Ville Skyttä <ville.skytta@iki.fi> - 1.3.1-7
Ville Skyttä 24ce85
- Tweak source encoding to fix build with Java 1.7.
Ville Skyttä 24ce85
- Drop versioned jars and javadoc dir.
Ville Skyttä 24ce85
- Drop no longer needed javadoc Obsoletes.
Ville Skyttä 24ce85
- Crosslink with local JDK API docs.
Ville Skyttä 24ce85
Dennis Gilmore 6be65e
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-6
Dennis Gilmore 6be65e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Dennis Gilmore 6be65e
Stanislav Ochotnicky 6a68c7
* Tue Feb 22 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3.1-5
Stanislav Ochotnicky 6a68c7
- Change oro to jakarta-oro in BR/R
Stanislav Ochotnicky 6a68c7
Dennis Gilmore 806fb8
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-4
Dennis Gilmore 806fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Dennis Gilmore 806fb8
spike 558d6b
* Wed Oct 20 2010 Chris Spike <chris.spike@arcor.de> 1.3.1-3
spike 558d6b
- Moved junit tests to check section
spike 558d6b
spike 558d6b
* Sat Oct 2 2010 Chris Spike <chris.spike@arcor.de> 1.3.1-2
spike 558d6b
- Rename and rebase from jakarta-commons-validator