1
0

Accepting request 125098 from Java:packages

rename

OBS-URL: https://build.opensuse.org/request/show/125098
OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-validator?expand=0&rev=1
This commit is contained in:
2012-06-15 12:16:16 +00:00
committed by Git OBS Bridge
commit 3939d14704
7 changed files with 227 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,37 @@
-------------------------------------------------------------------
Fri Jun 15 12:13:29 UTC 2012 - mvyskocil@suse.cz
- update to 1.3.1
- rename to apache-commons-validator
-------------------------------------------------------------------
Mon Sep 25 14:02:15 CEST 2006 - skh@suse.de
- don't use icecream
- use source="1.4" and target="1.4" for build with java 1.5
-------------------------------------------------------------------
Wed Jan 25 21:46:39 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Thu Jul 28 14:47:42 CEST 2005 - jsmeix@suse.de
- Current version 1.1.4 from JPackage.org
-------------------------------------------------------------------
Mon Jul 18 16:30:30 CEST 2005 - jsmeix@suse.de
- Current version 1.1.3 from JPackage.org
-------------------------------------------------------------------
Tue Feb 22 13:31:53 CET 2005 - skh@suse.de
- Update to version 1.1.3
-------------------------------------------------------------------
Sun Sep 5 23:44:26 CEST 2004 - skh@suse.de
- Initial package created with version 1.0.2 (Jakarta 1.5)

View File

@@ -0,0 +1,140 @@
#
# spec file for package apache-commons-validator
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# icecream 0
%define short_name commons-validator
Name: apache-%{short_name}
Summary: Apache Commons Validator
License: Apache-2.0
Group: Development/Libraries/Java
Version: 1.3.1
Release: 0
Url: http://commons.apache.org/commons/
Source0: %{short_name}-%{version}-src.tar.gz
Patch0: commons-validator-1.3.1-crosslink.patch
# https://issues.apache.org/jira/browse/VALIDATOR-303
Patch1: commons-validator-1.3.1-srcencoding.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: ant
BuildRequires: apache-commons-beanutils
BuildRequires: apache-commons-logging
BuildRequires: jakarta-commons-digester
BuildRequires: java-devel
BuildRequires: junit
BuildRequires: oro
Requires: apache-commons-beanutils >= 1.5
Requires: apache-commons-logging >= 1.0.2
Requires: jakarta-commons-digester >= 1.3
Requires: oro >= 2.0.6
Provides: %{short_name} = %{version}-%{release}
Obsoletes: %{short_name} < %{version}-%{release}
Provides: jakarta-%{short_name} = %{version}-%{release}
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
%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, for example, on
locale. 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
PreReq: coreutils
Summary: Javadoc for jakarta-commons-validator
Group: Development/Libraries/Java
%description javadoc
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.
This package contains the javadoc documentation for the Jakarta Commons
Validator Package.
%prep
%setup -q -n %{short_name}-%{version}-src
%patch0 -p1
%patch1 -p1
sed -i 's/\r//' LICENSE.txt
sed -i 's/\r//' RELEASE-NOTES.txt
sed -i 's/\r//' NOTICE.txt
# use textui instead of awtui (not available in junit4+)
sed -i 's:junit.awtui.TestRunner.main:junit.textui.TestRunner.main:g' \
src/test/org/apache/commons/validator/*java
%build
export CLASSPATH=$(build-classpath \
commons-logging \
commons-digester \
commons-beanutils \
junit \
jakarta-oro )
ant -Dskip.download=true -Dbuild.sysclasspath=first dist
%check
export CLASSPATH=$(build-classpath \
commons-logging \
commons-digester \
commons-beanutils \
junit \
jakarta-oro )
ant -Dskip.download=true -Dbuild.sysclasspath=first test
%install
# jars
install -d -m 0755 %{buildroot}%{_javadir}
install -pm 644 dist/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
ln -s %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar
# javadoc
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr dist/docs/api*/* %{buildroot}%{_javadocdir}/%{name}/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
%{_javadir}/%{name}.jar
%{_javadir}/%{short_name}.jar
%files javadoc
%defattr(-,root,root,-)
%doc LICENSE.txt
%doc %{_javadocdir}/%{name}
%changelog

View File

@@ -0,0 +1,11 @@
diff -up commons-validator-1.3.1-src/build.xml~ commons-validator-1.3.1-src/build.xml
--- commons-validator-1.3.1-src/build.xml~ 2006-11-29 00:31:49.000000000 +0200
+++ commons-validator-1.3.1-src/build.xml 2012-01-14 13:00:24.844856452 +0200
@@ -301,6 +301,7 @@
doctitle="&lt;h1&gt;${component.title} (Version ${component.version})&lt;/h1&gt;"
windowtitle="${component.title} (Version ${component.version})"
bottom="Copyright (c) 2001-2004 Apache Software Foundation"
+ link="/usr/share/javadoc/java/"
classpathref="compile.classpath" />
</target>

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2a1e586b4e29de7835a6b3694950624248f277b40cac899008e99003eb060300
size 170690

View File

@@ -0,0 +1,12 @@
diff -up commons-validator-1.3.1-src/src/test/org/apache/commons/validator/EmailTest.java~ commons-validator-1.3.1-src/src/test/org/apache/commons/validator/EmailTest.java
--- commons-validator-1.3.1-src/src/test/org/apache/commons/validator/EmailTest.java~ 2006-11-29 00:31:49.000000000 +0200
+++ commons-validator-1.3.1-src/src/test/org/apache/commons/validator/EmailTest.java 2012-01-14 12:40:40.709092267 +0200
@@ -385,7 +385,7 @@ public class EmailTest extends TestCommo
new TestPair("abigail@", false),
new TestPair("@example.com", false),
new TestPair("phrase: abigail@example.com abigail@example.com ;", false),
- new TestPair("invalid<69>char@example.com", false)
+ new TestPair("invalid\u00a3char@example.com", false)
};
/**