Initial revision
Arnaud Vandyck
20 years ago
0 | libcommons-validator-java for Debian | |
1 | ------------------------------------ | |
2 | ||
3 | USAGE: | |
4 | ------ | |
5 | ||
6 | Do not forget to set your CLASSPATH variable to match the correct | |
7 | requierments to use this library: | |
8 | ||
9 | commons-beanutils.jar | |
10 | commons-collections.jar | |
11 | commons-digester.jar | |
12 | commons-logging.jar | |
13 | oro.jar | |
14 | ||
15 | If you did install libcommons-validator-java, you already have the | |
16 | correct dependencies. You'll find all the necessary packages in | |
17 | '/usr/share/java'. | |
18 | ||
19 | TODO: | |
20 | ----- | |
21 | ||
22 | o I've got to place the dtd's for validatior somewhere in | |
23 | /usr/share/sgml/something... but I don't know really where at the | |
24 | moment. | |
25 | o I also have to create a catalog file and then | |
26 | o I got to register the catalog with update-catalog | |
27 | ||
28 | All of these items has been asked on debian-sgml@lists.debian.org | |
29 | ||
30 | -- Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>, Tue Jul 1 14:34:17 2003 |
0 | libcommons-validator-java (1.0.2-1) unstable; urgency=low | |
1 | ||
2 | * Initial Release (closes: #199524). | |
3 | ||
4 | -- Arnaud Vandyck <arnaud.vandyck@ulg.ac.be> Tue, 1 Jul 2003 16:56:51 +0200 | |
5 |
0 | 4 |
0 | Source: libcommons-validator-java | |
1 | Section: contrib/libs | |
2 | Priority: optional | |
3 | Maintainer: Arnaud Vandyck <arnaud.vandyck@ulg.ac.be> | |
4 | Build-Depends-Indep: debhelper (>> 4.0.0), gcj-3.2 (>= 3.2.1) | jikes (>= 1.15) | j2sdk (>= 1.3), ant (>= 1.4), junit (>= 3.8.1), libcommons-beanutils-java (>= 1.5), libcommons-collections-java (>= 2.1), libcommons-digester-java (>= 1.4), libcommons-logging-java (>= 1.0.3), liboro-java (>= 2.0.6) | |
5 | Standards-Version: 3.5.10 | |
6 | ||
7 | Package: libcommons-validator-java | |
8 | Architecture: all | |
9 | Depends: java2-runtime | j2re1.3 | j2re1.4, libcommons-beanutils-java (>= 1.5), libcommons-collections-java (>= 2.1), libcommons-digester-java (>= 1.4), libcommons-logging-java (>= 1.0.3), liboro-java (>= 2.0.6) | |
10 | Description: Ease and speed development and maintenance of validation rules | |
11 | The Commons Validator is a basic validation framework | |
12 | that lets you define validation rules for a JavaBean | |
13 | in an xml file. | |
14 | . | |
15 | Validation rules can be defined in an xml file which | |
16 | keeps them abstracted from JavaBean you are validating. | |
17 | . | |
18 | The library is needed by Tomcat4. | |
19 | . | |
20 | This is a part of the Apache Jakarta Project. | |
21 | Home: <http://jakarta.apache.org/commons/validator/> | |
22 |
0 | This package was debianized by Arnaud Vandyck <arnaud.vandyck@ulg.ac.be> on | |
1 | Mon, 30 Jun 2003 15:32:07 +0200. | |
2 | ||
3 | It was downloaded from http://jakarta.apache.org/commons/validator/ | |
4 | ||
5 | Upstream Authors: David Winterfeldt <dwinterfeldt@apache.org>, | |
6 | Craig McClanahan <craigmcc@apache.org>, | |
7 | James Turner <turner@apache.org>, | |
8 | Martin Cooper <martinc@apache.org>. | |
9 | ||
10 | Copyright: | |
11 | ||
12 | The Apache Software License, Version 1.1 | |
13 | ||
14 | Copyright (c) 1999-2001 The Apache Software Foundation. All rights | |
15 | reserved. | |
16 | ||
17 | Redistribution and use in source and binary forms, with or without | |
18 | modification, are permitted provided that the following conditions | |
19 | are met: | |
20 | ||
21 | 1. Redistributions of source code must retain the above copyright | |
22 | notice, this list of conditions and the following disclaimer. | |
23 | ||
24 | 2. Redistributions in binary form must reproduce the above copyright | |
25 | notice, this list of conditions and the following disclaimer in | |
26 | the documentation and/or other materials provided with the | |
27 | distribution. | |
28 | ||
29 | 3. The end-user documentation included with the redistribution, if | |
30 | any, must include the following acknowlegement: | |
31 | "This product includes software developed by the | |
32 | Apache Software Foundation (http://www.apache.org/)." | |
33 | Alternately, this acknowlegement may appear in the software itself, | |
34 | if and wherever such third-party acknowlegements normally appear. | |
35 | ||
36 | 4. The names "The Jakarta Project", "Commons", and "Apache Software | |
37 | Foundation" must not be used to endorse or promote products derived | |
38 | from this software without prior written permission. For written | |
39 | permission, please contact apache@apache.org. | |
40 | ||
41 | 5. Products derived from this software may not be called "Apache" | |
42 | nor may "Apache" appear in their names without prior written | |
43 | permission of the Apache Group. | |
44 | ||
45 | THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |
46 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |
47 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |
48 | DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |
49 | ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
50 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
51 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |
52 | USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |
53 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |
54 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |
55 | OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
56 | SUCH DAMAGE. | |
57 | ==================================================================== | |
58 | ||
59 | This software consists of voluntary contributions made by many | |
60 | individuals on behalf of the Apache Software Foundation. For more | |
61 | information on the Apache Software Foundation, please see | |
62 | <http://www.apache.org/>. | |
63 |
0 | usr/share/java/commons-validator-1.0.2.jar usr/share/java/commons-validator.jar |
0 | #!/usr/bin/make -f | |
1 | # Sample debian/rules that uses debhelper. | |
2 | # GNU copyright 1997 to 1999 by Joey Hess. | |
3 | ||
4 | # Uncomment this to turn on verbose mode. | |
5 | #export DH_VERBOSE=1 | |
6 | ||
7 | UPSTREAM_VERSION = $(shell head -1 debian/changelog | cut -f2 -d\( | cut -f1 -d\) | cut -f1 -d\-) | |
8 | JAVA_LIBS=/usr/share/java | |
9 | JUNIT_JAR="-Djunit.jar=$(JAVA_LIBS)/junit.jar" | |
10 | COMMONS_BEANUTILS_JAR="-Dcommons-beanutils.jar=$(JAVA_LIBS)/commons-beanutils.jar" | |
11 | COMMONS_COLLECTIONS_JAR="-Dcommons-collections.jar=$(JAVA_LIBS)/commons-collections.jar" | |
12 | COMMONS_DIGESTER_JAR="-Dcommons-digester.jar=$(JAVA_LIBS)/commons-digester.jar" | |
13 | COMMONS_LOGGING_JAR="-Dcommons-logging.jar=$(JAVA_LIBS)/commons-logging.jar" | |
14 | ORO_JAR="-Doro.jar=$(JAVA_LIBS)/oro.jar" | |
15 | ||
16 | export CLASSPATH=$(JAVA_LIBS)/junit.jar:$(JAVA_LIBS)/commons-beanutils.jar:$(JAVA_LIBS)/commons-collections.jar:$(JAVA_LIBS)/commons-digester.jar:$(JAVA_LIBS)/commons-logging.jar:$(JAVA_LIBS)/oro.jar | |
17 | ||
18 | COMPILER=jikes | |
19 | ||
20 | CFLAGS = -Wall -g | |
21 | ||
22 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | |
23 | CFLAGS += -O0 | |
24 | else | |
25 | CFLAGS += -O2 | |
26 | endif | |
27 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) | |
28 | INSTALL_PROGRAM += -s | |
29 | endif | |
30 | ||
31 | configure: configure-stamp | |
32 | configure-stamp: | |
33 | dh_testdir | |
34 | # Add here commands to configure the package. | |
35 | ||
36 | touch configure-stamp | |
37 | ||
38 | ||
39 | build: build-stamp | |
40 | ||
41 | build-stamp: configure-stamp | |
42 | dh_testdir | |
43 | ||
44 | ant $(JUNIT_JAR) $(COMMONS_BEANUTILS_JAR) $(COMMONS_COLLECTIONS_JAR) \ | |
45 | $(COMMONS_DIGESTER_JAR) $(COMMONS_LOGGING_JAR) $(ORO_JAR) \ | |
46 | -Dbuild.compiler=$(COMPILER) -Dbuild.sysclasspath=only dist | |
47 | ||
48 | #-Dlibdir=$(JAVA_LIBS) | |
49 | ||
50 | touch build-stamp | |
51 | ||
52 | clean: | |
53 | dh_testdir | |
54 | dh_testroot | |
55 | rm -f build-stamp configure-stamp | |
56 | ||
57 | ant clean | |
58 | ||
59 | dh_clean | |
60 | ||
61 | install: build | |
62 | dh_testdir | |
63 | dh_testroot | |
64 | dh_clean -k | |
65 | dh_installdirs | |
66 | ||
67 | install -m 644 dist/commons-validator.jar debian/libcommons-validator-java/usr/share/java/commons-validator-$(UPSTREAM_VERSION).jar | |
68 | ||
69 | # Build architecture-independent files here. | |
70 | binary-indep: build install | |
71 | dh_testdir -i | |
72 | dh_testroot -i | |
73 | dh_installchangelogs -i | |
74 | dh_installdocs -i | |
75 | dh_installexamples -i | |
76 | # dh_install | |
77 | # dh_installmenu | |
78 | # dh_installdebconf | |
79 | # dh_installlogrotate | |
80 | # dh_installemacsen | |
81 | # dh_installpam | |
82 | # dh_installmime | |
83 | # dh_installinit | |
84 | # dh_installcron | |
85 | # dh_installinfo | |
86 | # dh_installman | |
87 | dh_link -i | |
88 | # dh_strip | |
89 | dh_compress -i | |
90 | dh_fixperms -i | |
91 | # dh_perl | |
92 | # dh_python | |
93 | # dh_makeshlibs | |
94 | dh_installdeb -i | |
95 | # dh_shlibdeps | |
96 | dh_gencontrol -i | |
97 | dh_md5sums -i | |
98 | dh_builddeb -i | |
99 | ||
100 | # Build architecture-dependent files here. | |
101 | binary-arch: build install | |
102 | # We have nothing to do by default. | |
103 | ||
104 | binary: binary-indep binary-arch | |
105 | .PHONY: build clean binary-indep binary-arch binary install configure |