diff --git a/bcel.spec b/bcel.spec index 6d4a710..efb4cb8 100644 --- a/bcel.spec +++ b/bcel.spec @@ -1,4 +1,4 @@ -# Copyright (c) 2000-2005, JPackage Project +# Copyright (c) 2000-2007, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -32,30 +32,32 @@ %define _with_gcj_support 1 #Fedora currently does not support maven %define _without_maven 1 +%define _without_bootstrap 1 %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 bootstrap %{?_with_bootstrap:1}%{!?_with_bootstrap:%{?_without_bootstrap:0}%{!?_without_bootstrap:%{?_bootstrap:%{_bootstrap}}%{!?_bootstrap:0}}} + # If you don't want to build with maven, and use straight ant instead, # give rpmbuild option '--without maven' %define with_maven %{!?_without_maven:1}%{?_without_maven:0} %define without_maven %{?_without_maven:1}%{!?_without_maven:0} -%define section free - Name: bcel Version: 5.1 -Release: 8jpp.1 +Release: 10jpp.1%{?dist} Epoch: 0 Summary: Byte Code Engineering Library License: Apache Software License -Source0: bcel-5.1-src-RHCLEAN.tar.gz -# svn export https://svn.apache.org/repos/asf/jakarta/bcel/tags/BCEL_5_1 +Source0: bcel-5.1-src.tar.gz +#svn export https://svn.apache.org/repos/asf/jakarta/bcel/tags/BCEL_5_1 +#tar czvf bcel-5.1-src.tar.gz BCEL_5_1 Source1: pom-maven2jpp-depcat.xsl Source2: pom-maven2jpp-newdepmap.xsl Source3: pom-maven2jpp-mapdeps.xsl Source4: bcel-5.1-jpp-depmap.xml -Source5: jakarta-site2.tar.gz +Source5: bcel-jakarta-site2.tar.gz Patch0: bcel-5.1-build.patch Patch1: bcel-5.1-project_xml.patch @@ -68,25 +70,27 @@ BuildRequires: maven >= 0:1.1 BuildRequires: saxon BuildRequires: saxon-scripts %endif +%if ! %{bootstrap} +BuildRequires: jdom +BuildRequires: velocity +BuildRequires: jakarta-commons-collections #excalibur-avalong-logkit should be used once Maven is supported in Fedora BuildRequires: avalon-logkit #BuildRequires: excalibur-avalon-logkit -BuildRequires: jakarta-commons-collections -BuildRequires: jdom -BuildRequires: velocity +BuildRequires: werken-xpath +#BuildRequires: ant-apache-regexp +%endif BuildRequires: regexp BuildRequires: jpackage-utils >= 0:1.6 -BuildRequires: werken.xpath -BuildRequires: ant-apache-regexp %if ! %{gcj_support} BuildArch: noarch %endif -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +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 +BuildRequires: java-gcj-compat-devel +Requires(post): java-gcj-compat +Requires(postun): java-gcj-compat %endif %description @@ -128,7 +132,7 @@ Group: Development/Libraries/Java %description demo %{summary}. -#%prep +%prep #cat < 0:5.1-10jpp.1 +- Merge with upstream version and rpmlint cleanup, fix BR + +* Fri Feb 09 2007 Ralph Apel 0:5.1-10jpp +- Fix empty-post and empty-postun +- Fix no-cleaning-of-buildroot + +* Fri Feb 09 2007 Ralph Apel 0:5.1-9jpp +- Optionally build without maven +- Add bootstrap option + * Thu Aug 10 2006 Matt Wringe 0:5.1-8jpp.1 - Merge with upstream version: - Add missing javadoc requires