From dadda4f8d7522fd7eb13c5608c7cc7e7a0e17716 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Sep 09 2004 06:28:38 +0000 Subject: auto-import changelog data from jakarta-commons-validator-1.0.2-2jpp.src.rpm 1.0.2-2jpp - Move DTDs from %{_datadir}/jakarta-commons-validator to %{_datadir}/sgml/%{name} for FHS compliance, . 1.0.2-1jpp - Update to 1.0.2 and JPackage 1.5. - Move DTDs from %doc to %{_datadir}/%{name}. - Include catalog for DTDs, and install it if %{_bindir}/install-catalog is available. Mon Dec 16 2002 Ville Skytt� - 1.0.1-1jpp - 1.0.1. - Include the DTD in the package (as documentation). Sat Nov 02 2002 Ville Skytt� - 1.0-1jpp - 1.0, initial JPackage release. --- diff --git a/.cvsignore b/.cvsignore index e69de29..f0c52f5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +commons-validator-1.0.2-src.tar.gz diff --git a/jakarta-commons-validator.catalog b/jakarta-commons-validator.catalog new file mode 100644 index 0000000..99346d1 --- /dev/null +++ b/jakarta-commons-validator.catalog @@ -0,0 +1,8 @@ +-- Jakarta commons-validator DTD catalog -- +-- JPackage Project -- + +PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN" + validator_1_0.dtd + +PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0.1//EN" + validator_1_0_1.dtd diff --git a/jakarta-commons-validator.spec b/jakarta-commons-validator.spec new file mode 100644 index 0000000..f0a5826 --- /dev/null +++ b/jakarta-commons-validator.spec @@ -0,0 +1,140 @@ +%define base_name validator +%define short_name commons-%{base_name} +%define name jakarta-%{short_name} +%define section free + +Summary: Jakarta Commons Validator +Name: %{name} +Version: 1.0.2 +Release: 2jpp +Epoch: 0 +License: Apache Software License +Group: Development/Libraries/Java +Vendor: JPackage Project +Distribution: JPackage +Source0: http://www.apache.org/dist/jakarta/commons/validator/source/commons-validator-1.0.2-src.tar.gz +Source1: %{name}.catalog +URL: http://jakarta.apache.org/commons/validator/ +BuildRequires: ant, jpackage-utils >= 0:1.5 +BuildRequires: jakarta-commons-beanutils >= 0:1.5 +BuildRequires: jakarta-commons-collections >= 0:2.1 +BuildRequires: jakarta-commons-digester >= 0:1.3 +BuildRequires: jakarta-commons-logging >= 0:1.0.2 +BuildRequires: oro >= 0:2.0.6 +BuildRequires: junit >= 0:3.7 +BuildRequires: xml-commons-apis +Requires: jakarta-commons-beanutils >= 0:1.5 +Requires: jakarta-commons-collections >= 0:2.1 +Requires: jakarta-commons-digester >= 0:1.3 +Requires: jakarta-commons-logging >= 0:1.0.2 +Requires: oro >= 0:2.0.6 +Requires: xml-commons-apis +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +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 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. + +%package javadoc +Summary: Javadoc for %{name} +Group: Development/Documentation + +%description javadoc +Javadoc for %{name}. + +# ----------------------------------------------------------------------------- + +%prep +%setup -q -n %{short_name}-%{version}-src +# Yay! No external jars in the source package, way to go... +cp -p %{SOURCE1} conf/share/catalog + +# ----------------------------------------------------------------------------- + +%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 +rm -rf $RPM_BUILD_ROOT + +# 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 PROPOSAL.html RELEASE-NOTES* STATUS.html +%{_javadir}/* +%{_datadir}/sgml/%{name} + +%files javadoc +%defattr(0644,root,root,0755) +%{_javadocdir}/%{name}-%{version} + +# ----------------------------------------------------------------------------- + +%changelog +* Fri Apr 18 2003 Ville Skytt� - 0:1.0.2-2jpp +- Move DTDs from %%{_datadir}/%{name} to %%{_datadir}/sgml/%%{name} for FHS + compliance, . + +* Fri Apr 18 2003 Ville Skytt� - 0:1.0.2-1jpp +- Update to 1.0.2 and JPackage 1.5. +- Move DTDs from %%doc to %%{_datadir}/%%{name}. +- Include catalog for DTDs, and install it if %%{_bindir}/install-catalog + is available. + +* Mon Dec 16 2002 Ville Skytt� - 1.0.1-1jpp +- 1.0.1. +- Include the DTD in the package (as documentation). + +* Sat Nov 2 2002 Ville Skytt� - 1.0-1jpp +- 1.0, initial JPackage release. diff --git a/sources b/sources index e69de29..ce94b61 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +917cf3d82847e497e11f9e86488d4b56 commons-validator-1.0.2-src.tar.gz