From fa0efbc3cb3af1365302584fca9b2da4ba04979e Mon Sep 17 00:00:00 2001 From: Nuno Santos Date: Mar 12 2007 16:34:51 +0000 Subject: auto-import dtdparser-1.21-3jpp.1.fc7 on branch devel from dtdparser-1.21-3jpp.1.fc7.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..2fe36ec 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +dtdparser-1.21.tgz diff --git a/dtdparser.spec b/dtdparser.spec new file mode 100644 index 0000000..5b394be --- /dev/null +++ b/dtdparser.spec @@ -0,0 +1,193 @@ +# Copyright (c) 2000-2007, JPackage Project +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the +# distribution. +# 3. Neither the name of the JPackage Project nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}} + +%define section free + +Name: dtdparser +Version: 1.21 +Release: 3jpp.1%{?dist} +Epoch: 0 +Summary: A Java DTD Parser +License: LGPL +Source0: http://wutka.com/download/%{name}-%{version}.tgz +URL: http://wutka.com/dtdparser.html +BuildRequires: ant +Requires: java +Requires: jpackage-utils >= 0:1.6 +Requires(postun): jpackage-utils >= 0:1.6 +Group: Development/Libraries/Java +%if ! %{gcj_support} +BuildArch: noarch +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%if %{gcj_support} +BuildRequires: java-gcj-compat-devel +Requires(post): java-gcj-compat +Requires(postun): java-gcj-compat +%endif + +%description +DTD parsers for Java seem to be pretty scarce. That's probably because +DTD isn't valid XML. At some point, if/when XML Schema becomes widely +accepted, no one will need DTD parsers anymore. Until then, you can +use this library to parse a DTD. + +%package javadoc +Summary: Javadoc for %{name} +Group: Development/Documentation +Requires: jpackage-utils >= 0:1.6 +Requires(postun): jpackage-utils >= 0:1.6 + +%description javadoc +Javadoc for %{name}. + +# ----------------------------------------------------------------------------- + +%prep +%setup -q +# remove all binary libs +find . -name "*.jar" -exec rm -f {} \; + +# ----------------------------------------------------------------------------- + +%build +ant build createdoc + +# ----------------------------------------------------------------------------- + +%install +rm -rf $RPM_BUILD_ROOT + +# jars +install -d -m 755 $RPM_BUILD_ROOT%{_javadir} +install -m 644 dist/%{name}120.jar \ + $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) + +# javadoc +install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} +cp -pr doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} + +# ----------------------------------------------------------------------------- + +%if %{gcj_support} +%{_bindir}/aot-compile-rpm +%endif + +%clean +rm -rf $RPM_BUILD_ROOT + +# ----------------------------------------------------------------------------- + +%if %{gcj_support} +%post +if [ -x %{_bindir}/rebuild-gcj-db ] +then + %{_bindir}/rebuild-gcj-db +fi +%endif + +%if %{gcj_support} +%postun +if [ -x %{_bindir}/rebuild-gcj-db ] +then + %{_bindir}/rebuild-gcj-db +fi +%endif + +%files +%defattr(0644,root,root,0755) +%doc CHANGES LICENSE README +%{_javadir}/* + +%if %{gcj_support} +%dir %attr(-,root,root) %{_libdir}/gcj/%{name} +%attr(-,root,root) %{_libdir}/gcj/%{name}/dtdparser-1.21.jar.* +%endif + +%files javadoc +%defattr(0644,root,root,0755) +%doc %{_javadocdir}/* + +# ----------------------------------------------------------------------------- + +%changelog +* Tue Feb 13 2007 Tania Bento - 0:1.21-3jpp.1.fc7 +- Fixed the %%Release tag. +- Fixed the %%BuildRoot tag. +- Add gcj support + +* Thu Apr 27 2006 Fernando Nasser - 0:1.21-3jpp +- First JPP 1.7 build + +* Fri Aug 20 2004 Ralph Apel 0:1.21-2jpp +- Build with ant-1.6.2 + +* Fri Apr 11 2003 David Walluck 0:1.21-1jpp +- 1.21 + +* Tue Mar 4 2003 Ville Skyttä - 1.20-1jpp +- Update to 1.20. +- Fix Group, Distribution and Vendor tags. +- Use sed instead of bash 2 extension for symlink creation during build. +- Use build.xml from upstream tarball. + +* Mon Jan 21 2002 Guillaume Rousse 1.15-3jpp +- versioned dir for javadoc +- no dependencies for javadoc package +- section macro + +* Wed Dec 5 2001 Guillaume Rousse 1.15-2jpp +- javadoc into javadoc package + +* Wed Nov 21 2001 Christian Zoffoli 1.15-1jpp +- removed packager tag +- new jpp extension +- 1.15 + +* Sat Oct 6 2001 Guillaume Rousse 1.13-4jpp +- used original tarball + +* Sun Sep 30 2001 Guillaume Rousse 1.13-3jpp +- more macros + +* Fri Sep 28 2001 Guillaume Rousse 1.13-2jpp +- first unified JPackage release +- spec cleanup +- corrected buildfile +- s/jPackage/JPackage + +* Sat Jun 23 2001 Guillaume Rousse 1.13-1jpp +- first Mandrake release + + diff --git a/sources b/sources index e69de29..5dd3be2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +5b14ede6eb13656ff2918534ed2d0437 dtdparser-1.21.tgz