[simplevalidation] Initial import (#727670)
Omair Majid
omajid at fedoraproject.org
Fri Oct 7 20:54:21 UTC 2011
commit 24978eb9a2d500c30df3b48688ac110acce4b379
Author: Omair Majid <omajid at redhat.com>
Date: Fri Oct 7 16:53:23 2011 -0400
Initial import (#727670)
.gitignore | 1 +
simplevalidation.spec | 84 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1099e9d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/validation-src.zip
diff --git a/simplevalidation.spec b/simplevalidation.spec
new file mode 100644
index 0000000..7ca3a80
--- /dev/null
+++ b/simplevalidation.spec
@@ -0,0 +1,84 @@
+Name: simplevalidation
+# upstream is pretty bad about version numbering
+# this is a guess based on the version of a separate api "release" jar
+Version: 0.4
+Release: 1%{?dist}
+Summary: A library for adding user-interface input validation to Swing applications
+Group: Development/Libraries
+License: GPLv2 or CDDL
+URL: http://kenai.com/projects/simplevalidation
+Source0: http://kenai.com/projects/simplevalidation/downloads/download/validation-src.zip
+
+BuildArch: noarch
+
+BuildRequires: jpackage-utils
+BuildRequires: java-devel
+
+BuildRequires: ant
+BuildRequires: dos2unix
+
+Requires: jpackage-utils
+Requires: java
+
+%description
+This is a simple library for quickly adding validation code to Swing
+user-interfaces. It handles validating user input when the user changes a
+component's value, showing error messages and decorating components to
+indicate which component is the source of the problem. It contains a large
+number of built-in validators to handle most common situations, such as
+validating numbers, email addresses, urls and so forth.
+
+The primary goal is to make it easy to retrofit validation code on existing
+UIs without needing to rewrite anything or add more than a few lines of code.
+
+
+%package javadoc
+Summary: Javadocs for %{name}
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}
+
+
+%prep
+%setup -q -c
+
+find -name '*.class' -exec rm -f '{}' \;
+find -name '*.jar' -exec rm -f '{}' \;
+
+
+%build
+cd ValidationAPI
+ant -Dplatforms.JDK_1.5.home=/usr/lib/jvm/java jar
+
+dos2unix dist/javadoc/package-list
+dos2unix dist/javadoc/stylesheet.css
+
+
+%install
+mkdir -p %{buildroot}%{_javadir}
+cp -a ValidationAPI/dist/ValidationAPI.jar %{buildroot}%{_javadir}/ValidationAPI.jar
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -a ValidationAPI/dist/javadoc %{buildroot}%{_javadocdir}/%{name}
+
+
+%files
+%doc ValidationAPI/doc/overview.html
+%doc ValidationAPI/doc/duckLogo.png
+%{_javadir}/ValidationAPI.jar
+
+%files javadoc
+%{_javadocdir}/%{name}
+
+
+%changelog
+* Mon Oct 3 2011 Omair Majid <omajid at redhat.com> - 0.4-1
+- More updates based on review
+
+* Mon Sep 26 2011 Omair Majid <omajid at redhat.com> - 0.4-1
+- Update based on review
+
+* Tue Jul 12 2011 Omair Majid <omajid at redhat.com> - 0.4-1
+- First attempt
diff --git a/sources b/sources
index e69de29..524131f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1ecbbc482003d92263c507668b5d04ec validation-src.zip
More information about the scm-commits
mailing list