[RPM (6.0)] [DIST generic] cewolf-1.1.12-1.jpp6

Ralph Apel <[email protected]>
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : cewolf                       Relocations: (not relocatable)
Version     : 1.1.12                            Vendor: JPackage Project
Release     : 1.jpp6                        Build Date: Wed 01 Aug 2012 09:11:04 PM CEST
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Development/Libraries/Java    Source RPM: (none)
Size        : 3996810                          License: LGPLv2+
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : http://cewolf.sourceforge.net/
Summary     : Chart Taglib Library
Description :
Cewolf can be used inside a Servlet/JSP based web application
to embed complex graphical charts of all kinds (e.g. line,
pie, bar chart, plots, etc.) into a web page. Therefore it
provides a full featured tag library to define all properties
of the chart (colors, strokes, legend, etc.). Thus the JSP
which embedds the chart is not polluted with any java code.
Everything is described with XML conform tags.
Cewolf is based on JFreeChart and uses it's rendering engine
to render the final chart image into the clients response
stream. No files are created on server side. Everything is
based on lightweight session objects and dynamic data analysis.
Cewolf consists of one servlet which handles the chart
rendering and a taglibrary which translates the chart
definition included in the JSP into an HTML img tag which
consults the rendering servlet for retrieval of the
appropriate chart.

---------------
Ralph Apel <r.apel at r-apel.de> - 0:1.1.12-1
- 1.1.12
---------------
cewolf.src: W: no-signature
cewolf.src: W: invalid-license LGPLv2+
1 packages and 0 specfiles checked; 0 errors, 2 warnings.

---------------
Index: cewolf.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/cewolf/cewolf.spec,v
retrieving revision 1.3
diff -u -r1.3 cewolf.spec
--- cewolf.spec	17 Jul 2008 19:23:38 -0000	1.3
+++ cewolf.spec	1 Aug 2012 19:18:35 -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,72 +28,44 @@
 # 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}}}
-
-# 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
-
-%define repo_dir    .m2/repository
+%define _binary_payload w9.gzdio
+%define _source_payload w9.gzdio
+%define _binary_filedigest_algorithm 1
+%define _source_filedigest_algorithm 1
 
 Name:           cewolf
-Version:        1.0
-Release:        4%{dist}
+Version:        1.1.12
+Release:        1%{?dist}
 Epoch:          0
 Summary:        Chart Taglib Library
 License:        LGPLv2+
 URL:            http://cewolf.sourceforge.net/
 Group:          Development/Libraries/Java
-Source0:        http://downloads.sourceforge.net/cewolf/cewolf-1.0-bin-src.zip
-Source1:        cewolf-build.xml
-Source3:        cewolf-settings.xml
-Source4:        cewolf-1.0-jpp-depmap.xml
-Patch:          cewolf-1.0-fix_tld_places.diff
-
+Source0:        http://downloads.sourceforge.net/project/cewolf/cewolf/cewolf-1.1.12/cewolf-1.1.12.zip
+Source1:        cewolf.pom
 BuildRequires:  jpackage-utils >= 0:1.7.5
-BuildRequires:  java-devel = 0:1.5.0
-BuildRequires:  batik
-BuildRequires:  crimson
-BuildRequires:  jakarta-commons-logging
+BuildRequires:  java-devel >= 0:1.6.0
+BuildRequires:  ant >= 0:1.7.1
+BuildRequires:  apache-commons-logging
 BuildRequires:  jcommon >= 0:1.0.0
 BuildRequires:  jfreechart >= 0:1.0.0
-BuildRequires:  log4j
-BuildRequires:  servletapi4
-BuildRequires:  xml-commons-jaxp-1.3-apis
-%if %{with_maven}
-BuildRequires:  maven2
-BuildRequires:  maven2-plugin-assembly
-BuildRequires:  maven2-plugin-compiler
-BuildRequires:  maven2-plugin-javadoc
-BuildRequires:  maven2-plugin-resources
-BuildRequires:  maven2-plugin-site
-BuildRequires:  maven2-plugin-jar
-BuildRequires:  maven2-plugin-install
-BuildRequires:  maven-surefire-plugin
-BuildRequires:  excalibur-avalon-framework
-%endif
-Requires:  java >= 0:1.5.0
-Requires:  batik
-Requires:  crimson
-Requires:  jakarta-commons-logging
+BuildRequires:  jsp_2_1_api
+BuildRequires:  junit
+BuildRequires:  servlet_2_5_api
+BuildRequires:  tlddoc
+BuildRequires:  xmlgraphics-batik
+Requires:  java >= 0:1.6.0
+Requires:  apache-commons-logging
 Requires:  jcommon >= 0:1.0.0
 Requires:  jfreechart >= 0:1.0.0
-Requires:  log4j
-Requires:  servletapi4
-Requires:  xml-commons-jaxp-1.3-apis
-%if ! %{gcj_support}
+Requires:  jsp_api
+Requires:  servlet_api
+Requires:  xmlgraphics-batik
 BuildArch:      noarch
-%endif
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 Requires(post):   jpackage-utils >= 0:1.7.5
 Requires(postun): jpackage-utils >= 0:1.7.5
-%if %{gcj_support}
-BuildRequires:    java-gcj-compat-devel
-%endif
 
 %description
 Cewolf can be used inside a Servlet/JSP based web application
@@ -129,110 +101,64 @@
 
 %prep
 %setup -q 
-%patch -p1
 # remove all binary libs
-find . -name "*.jar" | xargs rm
-cp -p %{SOURCE1} build.xml
-cp -p %{SOURCE3} settings.xml
+for j in $(find . -name "*.jar"); do
+  mv $j $j.no
+done
+
+ln -s $(build-classpath xmlgraphics-batik/batik-awt-util) lib/batik-awt-util-1.6.jar
+ln -s $(build-classpath xmlgraphics-batik/batik-dom) lib/batik-dom-1.6.jar
+ln -s $(build-classpath xmlgraphics-batik/batik-svggen) lib/batik-svggen-1.6.jar
+ln -s $(build-classpath xmlgraphics-batik/batik-util-dom) lib/batik-util-1.6.jar
+ln -s $(build-classpath xmlgraphics-batik/batik-xml-dom) lib/batik-xml-1.6.jar
+ln -s $(build-classpath commons-logging) lib/commons-logging-1.1.1.jar
+ln -s $(build-classpath jcommon) lib/jcommon-1.0.15.jar
+ln -s $(build-classpath jfreechart) lib/jfreechart-1.0.12.jar
+ln -s $(build-classpath jsp_2_1_api) lib/jsp-api.jar
+ln -s $(build-classpath junit) lib/junit-3.8.2.jar
+ln -s $(build-classpath servlet_2_5_api) lib/servlet-api.jar
+ln -s $(build-classpath tlddoc) lib/tlddoc.jar
 
 %build
-export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
-mkdir -p $MAVEN_REPO_LOCAL/JPP
 
-%if %{with_maven}
-sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/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/repository</url>|g" settings.xml
-sed -i -e "s|<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/maven2/plugins</url>|g" settings.xml
-sed -i -e "s|<url>__ECLIPSEDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/eclipse/plugins</url>|g" settings.xml
-
-mkdir external_repo
-ln -s %{_javadir} external_repo/JPP
-cp src/main/resources/cewolf-1.1.tld src/main/resources/taglib.tld
-
-mvn-jpp \
-        -e \
-        -s $(pwd)/settings.xml \
-        -Dmaven2.jpp.mode=true \
-        -Dmaven2.jpp.depmap.file=%{SOURCE4} \
-        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-        install javadoc:javadoc
-
-%else
-export CLASSPATH=""
-CLASSPATH=${CLASSPATH}:$(build-classpath batik/awt-util)
-CLASSPATH=${CLASSPATH}:$(build-classpath batik/dom)
-CLASSPATH=${CLASSPATH}:$(build-classpath batik/svggen)
-CLASSPATH=${CLASSPATH}:$(build-classpath batik/util)
-CLASSPATH=${CLASSPATH}:$(build-classpath batik/xml)
-CLASSPATH=${CLASSPATH}:$(build-classpath commons-logging)
-CLASSPATH=${CLASSPATH}:$(build-classpath crimson)
-CLASSPATH=${CLASSPATH}:$(build-classpath jcommon)
-CLASSPATH=${CLASSPATH}:$(build-classpath jfreechart)
-CLASSPATH=${CLASSPATH}:$(build-classpath log4j)
-CLASSPATH=${CLASSPATH}:$(build-classpath servletapi4)
-CLASSPATH=${CLASSPATH}:$(build-classpath xml-commons-jaxp-1.3-apis)
-ant -Dbuild.sysclasspath=only jar javadoc
-%endif
+ant -DcewolfVersion=%{version}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 # jars
 install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
-for jar in $(find -type f -name "*.jar" | grep -E target/.*.jar); do
-        install -m 644 $jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
-done
-(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do \
-ln -sf ${jar} ${jar/-%{version}/}; done)
+install -m 644 %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/
+(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
 
 install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
-install -m 644 pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
+install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
 %add_to_maven_depmap %{name} %{name} %{version} JPP %{name}
 
 # javadoc
 install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
-for target in $(find -type d -name target); do
-        install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/`basename \`dirname $target\` | sed -e s:jline-::g`
-        cp -pr $target/site/apidocs/* $jar $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/`basename \`dirname $target\` | sed -e s:jline-::g`
-done
+cp -pr javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/
 ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
 
-%if %{gcj_support}
-export CLASSPATH=$(build-classpath gnu-crypto)
-%{_bindir}/aot-compile-rpm
-%endif
+# tlddoc
+install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+cp -pr tagdoc/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %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)
 %{_javadir}/%{name}.jar
 %{_javadir}/%{name}-%{version}.jar
+%{_docdir}/%{name}-%{version}
 %{_datadir}/maven2/poms/*
 %{_mavendepmapfragdir}/*
-%if %{gcj_support}
-%dir %{_libdir}/gcj/%{name}
-%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
-%endif
 
 %files javadoc
 %defattr(0644,root,root,0755)
@@ -240,6 +166,12 @@
 %{_javadocdir}/%{name}
 
 %changelog
+* Wed Aug 01 2012 Ralph Apel <r.apel at r-apel.de> - 0:1.1.12-1
+- 1.1.12
+
+* Mon Mar 09 2009 Ralph Apel <r.apel at r-apel.de> - 0:1.0-5.jpp5
+- Drop crimson BR
+
 * Thu Jul 17 2008 David Walluck <[email protected]> 0:1.0-4
 - remove javadoc scriptlets
 - GCJ fixes
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.