Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1:Update
jakarta-commons-validator
jakarta-commons-validator.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jakarta-commons-validator.spec of Package jakarta-commons-validator
# # spec file for package jakarta-commons-validator (Version 1.1.4) # # Copyright (c) 2009 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/ # # norootforbuild # icecream 0 Name: jakarta-commons-validator BuildRequires: ant jakarta-commons-digester java2-devel-packages junit oro xml-commons-apis %define base_name validator %define short_name commons-%{base_name} %define name jakarta-%{short_name} %define section free Summary: Jakarta Commons Validator Version: 1.1.4 Release: 313 License: The Apache Software License Group: Development/Libraries/Java Source0: http://www.apache.org/dist/jakarta/commons/validator/source/commons-validator-%{version}-src.tar.gz Source1: %{name}.catalog # FIXME DTDs are not in the source tarball anymore (conf directory missing) # Obtainable from: # http://svn.apache.org/repos/asf/jakarta/commons/proper/validator/tags/VALIDATOR_1_1_4/conf/ Source2: commons-validator-%{version}-conf.tar.gz Patch1: jakarta-commons-validator-%{version}-build.patch Patch2: %{name}-java14compat.patch Url: http://jakarta.apache.org/commons/validator/ Requires: jakarta-commons-beanutils >= 1.5 Requires: jakarta-commons-collections >= 2.1 Requires: jakarta-commons-digester >= 1.3 Requires: jakarta-commons-logging >= 1.0.2 Requires: oro >= 2.0.6 Requires: xml-commons-apis PreReq: sgml-skel BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: %{short_name} Obsoletes: %{short_name} %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 License: The Apache Software License 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} # Yay! No external jars in the source package, way to go... tar xzvf %{SOURCE2} cp -p %{SOURCE1} conf/share/catalog %patch1 %patch2 # ----------------------------------------------------------------------------- %build CLASSPATH=$(build-classpath \ xml-commons-apis oro junit jakarta-commons-logging jakarta-commons-digester \ jakarta-commons-beanutils jakarta-commons-collections) \ ant -Dbuild.sysclasspath=first test dist # ----------------------------------------------------------------------------- %install # jars mkdir -p $RPM_BUILD_ROOT%{_javadir} cp -p dist/%{short_name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|jakarta-||g"`; done) (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) # dtds and catalog mkdir -p $RPM_BUILD_ROOT%{_datadir}/sgml/%{name} cp -p conf/share/{*.dtd,catalog} $RPM_BUILD_ROOT%{_datadir}/sgml/%{name} # javadoc mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} # ----------------------------------------------------------------------------- %clean rm -rf $RPM_BUILD_ROOT # ----------------------------------------------------------------------------- %post # Note that we're using versioned catalog, so this is always ok. if [ -x %{_bindir}/install-catalog -a -d %{_sysconfdir}/sgml ]; then %{_bindir}/install-catalog --add \ %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.cat \ %{_datadir}/sgml/%{name}/catalog > /dev/null || : fi %postun # Note that we're using versioned catalog, so this is always ok. if [ -x %{_bindir}/install-catalog -a -d %{_sysconfdir}/sgml ]; then %{_bindir}/install-catalog --remove \ %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.cat \ %{_datadir}/sgml/%{name}/catalog > /dev/null || : fi # ----------------------------------------------------------------------------- %files %defattr(0644,root,root,0755) %doc LICENSE.txt NOTICE.txt %{_javadir}/* %{_datadir}/sgml/%{name} %files javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{name}-%{version} # ----------------------------------------------------------------------------- %changelog * Mon Sep 25 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 2006 mls@suse.de - converted neededforbuild to BuildRequires * Thu Jul 28 2005 jsmeix@suse.de - Current version 1.1.4 from JPackage.org * Mon Jul 18 2005 jsmeix@suse.de - Current version 1.1.3 from JPackage.org * Tue Feb 22 2005 skh@suse.de - Update to version 1.1.3 * Sun Sep 05 2004 skh@suse.de - Initial package created with version 1.0.2 (Jakarta 1.5)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor