forked from pool/apache-commons-validator
- Cleanup with spec-cleaner and fix build on Factory.
OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-validator?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
37e230e286
commit
cb9352a5c0
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 8 12:28:41 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Cleanup with spec-cleaner and fix build on Factory.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 14 14:22:53 UTC 2014 - darin@darins.net
|
Mon Apr 14 14:22:53 UTC 2014 - darin@darins.net
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package apache-commons-validator
|
# spec file for package apache-commons-validator
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -14,48 +14,43 @@
|
|||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
# icecream 0
|
|
||||||
|
|
||||||
|
|
||||||
%define short_name commons-validator
|
%define short_name commons-validator
|
||||||
|
|
||||||
Name: apache-%{short_name}
|
Name: apache-%{short_name}
|
||||||
|
Version: 1.3.1
|
||||||
|
Release: 0
|
||||||
Summary: Apache Commons Validator
|
Summary: Apache Commons Validator
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Version: 1.3.1
|
|
||||||
Release: 0
|
|
||||||
Url: http://commons.apache.org/commons/
|
Url: http://commons.apache.org/commons/
|
||||||
Source0: %{short_name}-%{version}-src.tar.gz
|
Source0: %{short_name}-%{version}-src.tar.gz
|
||||||
Patch0: commons-validator-1.3.1-crosslink.patch
|
Patch0: commons-validator-1.3.1-crosslink.patch
|
||||||
# https://issues.apache.org/jira/browse/VALIDATOR-303
|
# https://issues.apache.org/jira/browse/VALIDATOR-303
|
||||||
Patch1: commons-validator-1.3.1-srcencoding.patch
|
Patch1: commons-validator-1.3.1-srcencoding.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: apache-commons-beanutils
|
BuildRequires: apache-commons-beanutils
|
||||||
|
BuildRequires: apache-commons-collections
|
||||||
BuildRequires: apache-commons-logging
|
BuildRequires: apache-commons-logging
|
||||||
BuildRequires: jakarta-commons-digester
|
BuildRequires: jakarta-commons-digester
|
||||||
BuildRequires: java-devel
|
BuildRequires: java-devel
|
||||||
BuildRequires: junit
|
BuildRequires: junit
|
||||||
BuildRequires: oro
|
BuildRequires: oro
|
||||||
%if 0%{?suse_version} == 1110
|
|
||||||
BuildRequires: ant-apache-oro
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Requires: apache-commons-beanutils >= 1.5
|
Requires: apache-commons-beanutils >= 1.5
|
||||||
|
Requires: apache-commons-collections
|
||||||
Requires: apache-commons-logging >= 1.0.2
|
Requires: apache-commons-logging >= 1.0.2
|
||||||
Requires: jakarta-commons-digester >= 1.3
|
Requires: jakarta-commons-digester >= 1.3
|
||||||
Requires: oro >= 2.0.6
|
Requires: oro >= 2.0.6
|
||||||
%if 0%{?suse_version} == 1110
|
|
||||||
Requires: ant-apache-oro
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Provides: %{short_name} = %{version}-%{release}
|
Provides: %{short_name} = %{version}-%{release}
|
||||||
Obsoletes: %{short_name} < %{version}-%{release}
|
Obsoletes: %{short_name} < %{version}-%{release}
|
||||||
Provides: jakarta-%{short_name} = %{version}-%{release}
|
Provides: jakarta-%{short_name} = %{version}-%{release}
|
||||||
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
|
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
%if 0%{?suse_version} == 1110
|
||||||
|
BuildRequires: ant-apache-oro
|
||||||
|
Requires: ant-apache-oro
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A common issue when receiving data either electronically or from user
|
A common issue when receiving data either electronically or from user
|
||||||
@@ -67,9 +62,10 @@ to address some of these issues and speed development and maintenance
|
|||||||
of validation rules.
|
of validation rules.
|
||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
PreReq: coreutils
|
|
||||||
Summary: Javadoc for jakarta-commons-validator
|
Summary: Javadoc for jakarta-commons-validator
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
|
# FIXME: use proper Requires(pre/post/preun/...)
|
||||||
|
PreReq: coreutils
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
A common issue when receiving data either electronically or from user
|
A common issue when receiving data either electronically or from user
|
||||||
@@ -83,8 +79,6 @@ of validation rules.
|
|||||||
This package contains the javadoc documentation for the Jakarta Commons
|
This package contains the javadoc documentation for the Jakarta Commons
|
||||||
Validator Package.
|
Validator Package.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{short_name}-%{version}-src
|
%setup -q -n %{short_name}-%{version}-src
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
@@ -100,6 +94,7 @@ sed -i 's:junit.awtui.TestRunner.main:junit.textui.TestRunner.main:g' \
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export CLASSPATH=$(build-classpath \
|
export CLASSPATH=$(build-classpath \
|
||||||
|
commons-collections \
|
||||||
commons-logging \
|
commons-logging \
|
||||||
commons-digester \
|
commons-digester \
|
||||||
commons-beanutils \
|
commons-beanutils \
|
||||||
@@ -110,6 +105,7 @@ ant -Dskip.download=true -Dbuild.sysclasspath=first dist
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
export CLASSPATH=$(build-classpath \
|
export CLASSPATH=$(build-classpath \
|
||||||
|
commons-collections \
|
||||||
commons-logging \
|
commons-logging \
|
||||||
commons-digester \
|
commons-digester \
|
||||||
commons-beanutils \
|
commons-beanutils \
|
||||||
@@ -129,9 +125,6 @@ ln -s %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar
|
|||||||
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr dist/docs/api*/* %{buildroot}%{_javadocdir}/%{name}/
|
cp -pr dist/docs/api*/* %{buildroot}%{_javadocdir}/%{name}/
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
|
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user