From 8c9a327be9c4bfa1a4cb3ceb4f1f7fed23227703 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Jul 13 2010 08:14:26 +0000 Subject: - Use global. - Drop gcj_support. - Fix groups. - Fix build. --- diff --git a/bcel-5.1-build.patch b/bcel-5.1-build.patch deleted file mode 100644 index 1ce6c7d..0000000 --- a/bcel-5.1-build.patch +++ /dev/null @@ -1,49 +0,0 @@ ---- bcel-5.1/src/java/org/apache/bcel/verifier/statics/Pass2Verifier.java~ 2004-10-16 15:06:59.231184305 -0400 -+++ bcel-5.1/src/java/org/apache/bcel/verifier/statics/Pass2Verifier.java 2004-10-16 15:07:47.577200177 -0400 -@@ -345,7 +345,7 @@ - - for (int i=0; i - - - - regexp - regexp - 1.2 - - - JPP - regexp - regexp.jar - 1.2 - - - \ No newline at end of file diff --git a/bcel-5.1-project_xml.patch b/bcel-5.1-project_xml.patch deleted file mode 100644 index 12a4f15..0000000 --- a/bcel-5.1-project_xml.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- project.xml.sav 2003-04-25 10:25:37.000000000 +0200 -+++ project.xml 2006-04-11 16:23:12.000000000 +0200 -@@ -21,7 +21,6 @@ - - - http://jakarta.apache.org/bcel/ -- http://cvs.apache.org/viewcvs/jakarta-bcel/ - jakarta.apache.org - /www/jakarta.apache.org/bcel/ - -@@ -73,22 +72,7 @@ - - - src/java -- -- src/java - -- -- -- exclude = **/*.class -- -- -- -- -- -- -- -- -- -- - - - diff --git a/bcel.spec b/bcel.spec index 49b8ff4..ff6c41f 100644 --- a/bcel.spec +++ b/bcel.spec @@ -28,22 +28,18 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -#For fedora, we want a native gcj compilation -%define _with_gcj_support 1 #Fedora currently does not support maven -%define _without_maven 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}}} +%global _without_maven 1 # 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} +%global with_maven %{!?_without_maven:1}%{?_without_maven:0} +%global without_maven %{?_without_maven:1}%{!?_without_maven:0} Name: bcel Version: 5.2 -Release: 7.1%{?dist} +Release: 8%{?dist} Epoch: 0 Summary: Byte Code Engineering Library License: ASL 2.0 @@ -61,7 +57,7 @@ Source7: %{name}-%{version}.pom Patch0: %{name}-%{version}-project_properties.patch URL: http://jakarta.apache.org/%{name}/ -Group: Development/Libraries/Java +Group: Development/Libraries Requires: regexp BuildRequires: ant %if %{with_maven} @@ -83,6 +79,7 @@ Requires(postun): jpackage-utils >= 0:1.7.2 BuildRequires: jdom BuildRequires: velocity BuildRequires: jakarta-commons-collections +BuildRequires: apache-commons-lang #excalibur-avalong-logkit should be used once Maven is supported in Fedora BuildRequires: avalon-logkit #BuildRequires: excalibur-avalon-logkit @@ -91,17 +88,9 @@ BuildRequires: werken-xpath %endif BuildRequires: regexp BuildRequires: jpackage-utils >= 0:1.7.2 -%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 The Byte Code Engineering Library (formerly known as JavaClass) is intended to give users a convenient possibility to analyze, create, and @@ -120,14 +109,14 @@ being the Xalan XSLT processor at Apache. %package javadoc Summary: Javadoc for %{name} -Group: Development/Documentation +Group: Documentation %description javadoc %{summary}. %package manual Summary: Manual for %{name} -Group: Development/Libraries/Java +Group: Documentation %description manual %{summary}. @@ -153,6 +142,7 @@ pushd jakarta-site2/lib/ build-jar-repository -s -p . jdom build-jar-repository -s -p . velocity build-jar-repository -s -p . commons-collections + build-jar-repository -s -p . commons-lang build-jar-repository -s -p . avalon-logkit build-jar-repository -s -p . werken-xpath popd @@ -239,28 +229,14 @@ ant -Dbuild.dest=build/classes -Dbuild.dir=build -Ddocs.dest=docs \ %endif %{__cp} LICENSE.txt %{buildroot}%{_docdir}/%{name}-%{version} -%if %{gcj_support} -%{_bindir}/aot-compile-rpm -%endif - %clean %{__rm} -rf %{buildroot} %post %update_maven_depmap -%if %{gcj_support} -if [ -x %{_bindir}/rebuild-gcj-db ]; then - %{_bindir}/rebuild-gcj-db -fi -%endif %postun %update_maven_depmap -%if %{gcj_support} -if [ -x %{_bindir}/rebuild-gcj-db ]; then - %{_bindir}/rebuild-gcj-db -fi -%endif %files %defattr(0644,root,root,0755) @@ -269,10 +245,6 @@ fi %{_javadir}/* %{_datadir}/maven2/poms/* %{_mavendepmapfragdir} -%if %{gcj_support} -%dir %{_libdir}/gcj/%{name} -%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-*.jar.* -%endif %files javadoc %defattr(0644,root,root,0755) @@ -284,6 +256,12 @@ fi %doc %{_docdir}/%{name}-%{version} %changelog +* Tue Jul 13 2010 Alexander Kurtakov 0:5.2-8 +- Use global. +- Drop gcj_support. +- Fix groups. +- Fix build. + * Fri Jul 24 2009 Fedora Release Engineering - 0:5.2-7.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild