From fc6e71073d32a09c07fd46662c5ff771be764a8b Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Mon, 7 Jun 2010 10:48:11 +0000 Subject: [PATCH] - Symlink byaccj to both yacc.linux and yacc.linux.x86_64 to keep it building as noarch. --- qdox.spec | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/qdox.spec b/qdox.spec index 2f7f31b..ebfad91 100644 --- a/qdox.spec +++ b/qdox.spec @@ -31,21 +31,18 @@ # If you don't want to build with maven, and use straight ant instead, # give rpmbuild option '--without maven' -%define with_maven 1 - -%define section free +%global with_maven 1 Summary: Extract class/interface/method definitions from sources Name: qdox Version: 1.11 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 0 License: ASL 2.0 URL: http://qdox.codehaus.org/ Group: Development/Libraries Source0: http://repository.codehaus.org/com/thoughtworks/qdox/qdox/%{version}/%{name}-%{version}-project.tar.bz2 Source1: build.xml.tar.gz -Source2: qdox-settings.xml Patch0: %{name}-disable-xsite.patch BuildRequires: jpackage-utils >= 0:1.7.4 @@ -96,6 +93,7 @@ generators or documentation tools. %package javadoc Summary: Javadoc for %{name} Group: Documentation +Requires: jpackage-utils %description javadoc API docs for %{name}. @@ -109,21 +107,14 @@ for j in $(find . -name "*.jar"); do done rm bootstrap/yacc.linux ln -s /usr/bin/byaccj bootstrap/yacc.linux +ln -s /usr/bin/byaccj bootstrap/yacc.linux.x86_64 ln -s $(build-classpath jflex) bootstrap #ln -s $(build-classpath java-cup) bootstrap mkdir -p .m2/repository/JPP/maven2/default_poms tar xzf %{SOURCE1} -cp %{SOURCE2} settings.xml -sed -i -e "s|__JPP_URL_PLACEHOLDER__|file://`pwd`/.m2/repository|g" settings.xml -sed -i -e "s|__JAVADIR_PLACEHOLDER__|file://`pwd`/external_repo|g" settings.xml -sed -i -e "s|__MAVENREPO_DIR_PLACEHOLDER__|file://`pwd`/.m2/repository|g" settings.xml - %build %if %{with_maven} -mkdir external_repo -ln -s %{_javadir} external_repo/JPP - export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository mkdir -p $MAVEN_REPO_LOCAL @@ -200,6 +191,9 @@ rm -rf $RPM_BUILD_ROOT %doc %{_javadocdir}/%{name} %changelog +* Mon Jun 7 2010 Alexander Kurtakov 0:1.11-2 +- Symlink byaccj to both yacc.linux and yacc.linux.x86_64 to keep it building as noarch. + * Mon Mar 15 2010 Alexander Kurtakov 0:1.11-1 - Update to 1.11.