Search
j0ke.net Open Build Service
>
Projects
>
SUSE
:
Manager
:
1.2
>
jfreechart
> jfreechart.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File jfreechart.spec of Package jfreechart
# # spec file for package jfreechart (Version 1.0.13) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2000-2009, JPackage Project # All rights reserved. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define _with_repolib 1 %define with_repolib %{?_with_repolib:1}%{!?_with_repolib:0} %define without_repolib %{!?_with_repolib:1}%{?_with_repolib:0} %define repodir %{_javadir}/repository.jboss.com/jfreechart/1.0.13-brew %define repodirlib %{repodir}/lib %define repodirsrc %{repodir}/src # If you want the demo to be built, # give rpmbuild option '--with demo' %define with_demo %{?_with_demo:1}%{!?_with_demo:0} %define without_demo %{!?_with_demo:1}%{?_with_demo:0} %define section free Name: jfreechart Version: 1.0.13 Release: 0.3.44 Summary: Charts Generation library License: LGPL v2.1 or later Url: http://www.jfree.org/jfreechart/ #Source from http://www.jfree.org/jfreechart/download.html Source0: %{name}-%{version}.tar.gz Source1: %{name}-component-info.xml Source2: http://mirrors.ibiblio.org/pub/mirrors/maven2/jfree/jfreechart/1.0.13/jfreechart-1.0.13.pom Patch0: %{name}-%{version}-build_xml.patch Group: Development/Libraries/Java # Dependencies included in zip Requires: jcommon >= 1.0.12 BuildRequires: ant java-devel unzip rhino BuildRequires: itext BuildRequires: jaxp BuildRequires: jcommon >= 1.0.12 BuildRequires: jpackage-utils >= 1.7.3 BuildRequires: junit BuildRequires: tomcat6-servlet-2.5-api BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires(post): jpackage-utils >= 1.7.3 Requires(postun): jpackage-utils >= 1.7.3 %description Free Java class library for generating charts. %if %{with_repolib} %package repolib License: LGPL v2.0 or later Summary: Artifacts to be uploaded to a repository library Group: Development/Libraries/Java %description repolib Artifacts to be uploaded to a repository library. This package is not meant to be installed but so its contents can be extracted through rpm2cpio %endif %if %{with_demo} %package demo License: LGPL v2.1 or later Summary: Charts Generation library Group: Development/Libraries/Java Requires: %{name} = %{version}-%{release} Requires: jcommon Requires: servlet %description demo Free Java class library for generating charts. %endif %package javadoc License: LGPL v2.1 or later Summary: Charts Generation library Group: Development/Libraries/Java %description javadoc Free Java class library for generating charts. %description javadoc -l fr Javadoc pour %{name}. %prep %setup -q # remove all binary libs find . -name "*.jar" | xargs %{__rm} ln -sf $(build-classpath jcommon) lib ln -sf $(build-classpath tomcat6-servlet-2.5-api) lib/servlet.jar %if %{without_demo} %patch0 -p1 %endif %if %{with_repolib} tag=`echo %{version}-brew` sed -i "s/@VERSION@/$tag/g" %{SOURCE1} tag=`echo %{name}-%{version}-%{release} | sed 's|\.|_|g'` sed -i "s/@TAG@/$tag/g" %{SOURCE1} %endif %build export OPT_JAR_LIST=: export CLASSPATH= ant -f ant/build.xml -Dgnujaxp.jar=%{_javadir}/jaxp.jar -Ditext.jar=%{_javadir}/itext.jar -Djunit.jar=%{_javadir}/junit.jar -Djcommon.jar=%{_javadir}/jcommon.jar -Dservlet.jar=%{_javadir}/tomcat6-servlet-2.5-api.jar -Dbuildstable=true -Dproject.outdir=. -Dbasedir=. %install rm -rf $RPM_BUILD_ROOT # jars install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -m 644 lib/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir} %if %{with_demo} install -m 644 %{name}-%{version}-demo.jar $RPM_BUILD_ROOT%{_javadir} %endif (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) # pom install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom %add_to_maven_depmap jfree %{name} %{version} JPP %{name} # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} %if %{with_repolib} install -d -m 755 $RPM_BUILD_ROOT%{repodir} install -d -m 755 $RPM_BUILD_ROOT%{repodirlib} install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{repodir}/component-info.xml install -d -m 755 $RPM_BUILD_ROOT%{repodirsrc} install -m 755 %{PATCH0} $RPM_BUILD_ROOT%{repodirsrc} install -m 755 %{SOURCE0} $RPM_BUILD_ROOT%{repodirsrc} cp -p $RPM_BUILD_ROOT%{_javadir}/jfreechart.jar $RPM_BUILD_ROOT%{repodirlib} %endif %clean rm -rf $RPM_BUILD_ROOT %post %update_maven_depmap %postun %update_maven_depmap %files %defattr(0644,root,root,0755) %doc %{_javadir}/%{name}.jar %{_javadir}/%{name}-%{version}.jar %{_datadir}/maven2/poms/* %{_mavendepmapfragdir}/* %if %{with_demo} %files demo %defattr(0644,root,root,0755) %{_javadir}/%{name}-%{version}-demo.jar %{_javadir}/%{name}-demo.jar %endif %files javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name} %if %{with_repolib} %files repolib %defattr(0644,root,root,0755) %dir %{_javadir}/repository.jboss.com %dir %{_javadir}/repository.jboss.com/jfreechart %{repodir} %endif %changelog * Thu Dec 9 2010 mc@suse.de - initial release