[RPM (6.0)] [DIST generic] fulcrum-yaafi-1.0.6-1.jpp6

Ralph Apel <[email protected]>
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : fulcrum-yaafi                Relocations: (not relocatable)
Version     : 1.0.6                             Vendor: JPackage Project
Release     : 1.jpp6                        Build Date: Sun 05 Aug 2012 07:00:59 PM CEST
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Development/Java              Source RPM: (none)
Size        : 117026                           License: Apache Software License 2.0
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : http://turbine.apache.org/fulcrum/fulcrum-yaafi/
Summary     : Yet Another Avalon Framework Implementation
Description :
YAAFI is a light-weight implementation of a service framework
using the Avalon service lifecycle interfaces aka Avalon
container. There are a few other implementations out there
such as Phoenix, Fortress, Loom, Keel and Merlin but YAAFI
gives you a lot of bells and whistles with minimal baggage.
The goal of the implementation is to provide a light-weight
Avalon container to be embedded into existing applications
and/or other containers.

---------------
Ralph Apel <r.apel at r-apel.de> - 0:1.0.6-1
- First JPP-6 release
---------------
fulcrum-yaafi.src: W: strange-permission fulcrum-yaafi-settings.xml 0674
fulcrum-yaafi.src: W: strange-permission fulcrum-yaafi-jpp-depmap.xml 0674
fulcrum-yaafi.src: W: source-or-patch-not-bzipped fulcrum-yaafi-site.patch
fulcrum-yaafi.src: W: non-standard-group Development/Java
fulcrum-yaafi.src: W: no-signature
fulcrum-yaafi.src: W: invalid-license Apache Software License 2.0
1 packages and 0 specfiles checked; 0 errors, 6 warnings.

---------------
Index: fulcrum-yaafi.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/fulcrum-yaafi/fulcrum-yaafi.spec,v
retrieving revision 1.1
diff -u -r1.1 fulcrum-yaafi.spec
--- fulcrum-yaafi.spec	13 Aug 2008 17:18:51 -0000	1.1
+++ fulcrum-yaafi.spec	5 Aug 2012 17:03:33 -0000
@@ -1,4 +1,4 @@
-# Copyright (c) 2000-2008, JPackage Project
+# Copyright (c) 2000-2012, JPackage Project
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -28,59 +28,62 @@
 # 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
+%define _binary_payload w9.gzdio
+%define _source_payload w9.gzdio
+%define _binary_filedigest_algorithm 1
+%define _source_filedigest_algorithm 1
 
 Name:           fulcrum-yaafi
-Version:        1.0.5
-Release:        1%{dist}
+Version:        1.0.6
+Release:        1%{?dist}
 Epoch:          0
 Summary:        Yet Another Avalon Framework Implementation
 License:        Apache Software License 2.0
 Group:          Development/Java
-#Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
-#Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
 URL:            http://turbine.apache.org/fulcrum/fulcrum-yaafi/
-Source0:        http://www.apache.org/dist/turbine/fulcrum/fulcrum-yaafi/source/fulcrum-yaafi-1.0.5-src.tar.gz
-
-Source1:        pom-maven2jpp-depcat.xsl
-Source2:        pom-maven2jpp-newdepmap.xsl
-Source3:        pom-maven2jpp-mapdeps.xsl
-Source4:        %{name}-%{version}-jpp-depmap.xml
-Source5:        http://repo1.maven.org/maven2/fulcrum/fulcrum-yaafi/1.0.5/fulcrum-yaafi-1.0.5.pom
-Source6:        fulcrum-parent-project.xml
-Source7:        fulcrum-parent-project.properties
-
-Patch0:         fulcrum-yaafi-project_xml.patch
+Source0:        http://www.apache.org/dist/turbine/fulcrum/fulcrum-yaafi/source/fulcrum-yaafi-1.0.6-src.tar.gz
+Source1:        %{name}-settings.xml
+Source2:        %{name}-jpp-depmap.xml
+Source3:        http://repo1.maven.org/maven2/org/apache/fulcrum/fulcrum-parent/1/fulcrum-parent-1.pom
+Source4:        http://repo1.maven.org/maven2/org/apache/fulcrum/fulcrum-parent/1/fulcrum-parent-1-site.xml
+Patch0:         fulcrum-yaafi-site.patch
 
 BuildRequires:  jpackage-utils >= 0:1.7.5
-BuildRequires:  java-devel >= 0:1.5.0
-BuildRequires:  maven >= 0:1.1
-BuildRequires:  maven-plugins-base
-BuildRequires:  maven-plugin-changes
-BuildRequires:  maven-plugin-jxr
-BuildRequires:  maven-plugin-license
-BuildRequires:  maven-plugin-test
-BuildRequires:  maven-plugin-xdoc
-BuildRequires:  saxon
-BuildRequires:  saxon-scripts
+BuildRequires:  java-devel >= 0:1.6.0
+BuildRequires:  maven2 >= 0:2.0.8
+BuildRequires:  maven-antrun-plugin
+BuildRequires:  maven-assembly-plugin
+BuildRequires:  maven-changes-plugin
+BuildRequires:  maven-compiler-plugin
+BuildRequires:  maven-eclipse-plugin
+BuildRequires:  maven-gpg-plugin
+BuildRequires:  maven-idea-plugin
+BuildRequires:  maven-install-plugin
+BuildRequires:  maven-jar-plugin
+BuildRequires:  maven-javadoc-plugin
+BuildRequires:  maven-pmd-plugin
+BuildRequires:  maven-project-info-reports-plugin
+BuildRequires:  maven-site-plugin
+BuildRequires:  maven-source-plugin
+BuildRequires:  maven-surefire-plugin
+BuildRequires:  maven-surefire-provider-junit3
+BuildRequires:  maven-surefire-report-plugin
+BuildRequires:  maven-jxr
+BuildRequires:  maven-release
+BuildRequires:  maven-skins
+BuildRequires:  mojo-maven2-plugin-cobertura
+BuildRequires:  mojo-maven2-plugin-jdepend
+BuildRequires:  mojo-maven2-plugin-rat
+BuildRequires:  mojo-maven2-plugin-taglist
 BuildRequires:  excalibur-avalon-framework-api
 BuildRequires:  excalibur-avalon-framework-impl
 BuildRequires:  jamonapi
-
-Requires:  java >= 0:1.5.0
+Requires:  java >= 0:1.6.0
 Requires(post):   jpackage-utils >= 0:1.7.5
 Requires(postun): jpackage-utils >= 0:1.7.5
 
-%if %{gcj_support}
-BuildRequires:          java-gcj-compat-devel
-Requires(post):         java-gcj-compat
-Requires(postun):       java-gcj-compat
-%endif
-%if ! %{gcj_support}
 BuildArch:      noarch
-%endif
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 
 %description
@@ -96,48 +99,37 @@
 %package        javadoc
 Summary:        Javadoc for %{name}
 Group:          Development/Documentation
-#Requires(post):   /bin/rm,/bin/ln
-#Requires(postun): /bin/rm
 
 %description    javadoc
 %{summary}.
 
-
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q 
+cp %{SOURCE1} settings.xml
+sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/m2_repo/repository</url>|g" settings.xml
+sed -i -e "s|<url>__JAVADIR_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" settings.xml
+sed -i -e "s|<url>__MAVENREPO_DIR_PLACEHOLDER__</url>|<url>file://`pwd`/m2_repo/repository</url>|g" settings.xml
 %patch0 -b .sav0
-mkdir parent
-cp %{SOURCE6} parent/project.xml
-cp %{SOURCE7} parent/project.properties
 
 %build
-if [ ! -f %{SOURCE4} ]; then
-export DEPCAT=$(pwd)/%{name}-%{version}-depcat.new.xml
-echo '<?xml version="1.0" standalone="yes"?>' > $DEPCAT
-echo '<depset>' >> $DEPCAT
-for p in $(find . -name project.xml); do
-    pushd $(dirname $p)
-    /usr/bin/saxon project.xml %{SOURCE1} >> $DEPCAT
-    popd
-done
-echo >> $DEPCAT
-echo '</depset>' >> $DEPCAT
-/usr/bin/saxon $DEPCAT %{SOURCE2} > %{name}-%{version}-depmap.new.xml
-fi
-for p in $(find . -name project.xml); do
-    pushd $(dirname $p)
-    cp project.xml project.xml.orig
-    /usr/bin/saxon -o project.xml project.xml.orig %{SOURCE3} map=%{SOURCE4}
-    popd
-done
-
-export MAVEN_HOME_LOCAL=$(pwd)/.maven
-
-maven \
-        -Dmaven.repo.remote=file:/usr/share/maven/repository \
-        -Dmaven.home.local=$MAVEN_HOME_LOCAL \
-        jar:install javadoc:generate
+export MAVEN_REPO_LOCAL=$(pwd)/m2_repo/repository
+mkdir -p ${MAVEN_REPO_LOCAL}/org/apache/fulcrum/fulcrum-parent/1/
+cp %{SOURCE3} ${MAVEN_REPO_LOCAL}/org/apache/fulcrum/fulcrum-parent/1/
+cp %{SOURCE4} ${MAVEN_REPO_LOCAL}/org/apache/fulcrum/fulcrum-parent/1/fulcrum-parent-1-site_en.xml
+
+mkdir external_repo
+ln -s %{_javadir} external_repo/JPP
+
+export M2_SETTINGS=$(pwd)/settings.xml
+
+mvn-jpp \
+        -e \
+        -s $M2_SETTINGS \
+        -Dmaven2.jpp.depmap.file=%{SOURCE2} \
+        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
+        install javadoc:javadoc site
 
+#       -Dmaven.test.failure.ignore=true \
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -148,47 +140,24 @@
 (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
 
 install -dm 0755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
-install -m 0644 %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
-%add_to_maven_depmap fulcrum %{name} %{version} JPP %{name}
+install -m 0644 pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
+%add_to_maven_depmap org.apache.fulcrum %{name} %{version} JPP %{name}
+install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-fulcrum-parent.pom
+%add_to_maven_depmap org.apache.fulcrum fulcrum-parent 1 JPP fulcrum-parent
 
 # javadoc
 install -dm 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
-cp -pr target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
 ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
 
-%if %{gcj_support}
-%{_bindir}/aot-compile-rpm
-%endif
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-#%post javadoc
-#rm -f %{_javadocdir}/%{name}
-#ln -s %{name}-%{version} %{_javadocdir}/%{name}
-
-#%postun javadoc
-#if [ "$1" = "0" ]; then
-#  rm -f %{_javadocdir}/%{name}
-#fi
-
 %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)
@@ -196,18 +165,16 @@
 %{_javadir}/*.jar
 %{_datadir}/maven2/poms/*
 %{_mavendepmapfragdir}/*
-%if %{gcj_support}
-%attr(-,root,root) %dir %{_libdir}/gcj/%{name}
-%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
-%endif
 
 %files javadoc
 %defattr(0644,root,root,0755)
 %doc %{_javadocdir}/%{name}-%{version}
 %doc %{_javadocdir}/%{name}
 
-
 %changelog
+* Sun Aug 05 2012 Ralph Apel <r.apel at r-apel.de> - 0:1.0.6-1
+- First JPP-6 release
+
 * Wed Aug 13 2008 Ralph Apel <r.apel at r-apel.de> - 0:1.0.5-1.jpp5
 - First release
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.