Name: freehep-vectorgraphics Version: 2.1.3 Release: 1%{?dist} Summary: FreeHEP Vector Graphics Library Group: Development/Libraries License: ASL 2.0 and LGPLv2+ Url: http://java.freehep.org/vectorgraphics/ # git clone git://github.com/freehep/freehep-vectorgraphics.git freehep-vectorgraphics-2.1.3 # (cd freehep-vectorgraphics-2.1.3/ && git archive --format=tar --prefix=freehep-vectorgraphics-2.1.3/ vectorgraphics-2.1.3 | xz > ../freehep-vectorgraphics-2.1.3-src-git.tar.xz) Source0: %{name}-%{version}-src-git.tar.xz BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: freehep-global BuildRequires: freehep-export BuildRequires: freehep-io # BuildRequires: freehep-swing BuildRequires: freehep-util BuildRequires: freehep-xml # BuildRequires: jas-plotter BuildRequires: jdom # test deps BuildRequires: junit BuildRequires: freehep-chartable-converter-plugin BuildRequires: maven BuildRequires: maven-compiler-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-resources-plugin BuildRequires: maven-surefire-plugin BuildRequires: maven-surefire-provider-junit4 Requires: freehep-export Requires: freehep-io Requires: freehep-util Requires: freehep-xml Requires: jdom Requires: java Requires: jpackage-utils BuildArch: noarch %description The VectorGraphics package of the FreeHEP Java Library enables any Java program to export to a variety of vector graphics formats as well as bitmap image formats. Among the vector formats are PostScript, PDF, EMF, SVF, and Flash SWF, while the image formats include GIF, PNG, JPG and PPM. The package uses the standard java.awt.Graphics2D class as its interface to the user program. Coupling this package to a standard Java program is therefore straightforward. It also comes with a dialog box which allows you to choose between all the formats mentioned above and set specific parameters for them. %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc This package contains javadoc for %{name}. %prep %setup -q sed -i "s|1.4|1.5|" pom.xml sed -i "s|1.4|1.5|" pom.xml # fix non ASCII chars for s in freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/gdi/AbstractPolyPolyline.java;do native2ascii -encoding UTF8 ${s} ${s} done sed -i "s|59 Temple Place, Suite 330, Boston, MA 02111-1307 USA|51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA|" LGPL.txt sed -i 's/\r//' LGPL.txt %build mvn-rpmbuild install javadoc:aggregate %install mkdir -p %{buildroot}%{_javadir}/%{name} mkdir -p %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}.pom %add_maven_depmap JPP.%{name}.pom for m in graphics2d \ graphicsio \ graphicsio-emf \ graphicsio-java \ graphicsio-pdf \ graphicsio-ps \ graphicsio-svg \ graphicsio-swf \ graphicsio-tests; do install -pm 644 freehep-${m}/target/freehep-${m}-%{version}.jar %{buildroot}%{_javadir}/%{name}/freehep-${m}.jar install -pm 644 freehep-${m}/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-freehep-${m}.pom %add_maven_depmap JPP.%{name}-freehep-${m}.pom %{name}/freehep-${m}.jar done mkdir -p %{buildroot}%{_javadocdir}/%{name} cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ %files %dir %{_javadir}/%{name} %{_javadir}/%{name}/freehep-*.jar %{_mavenpomdir}/JPP.%{name}*.pom %{_mavendepmapfragdir}/%{name} %doc APACHE-LICENSE-2.0.txt LGPL.txt LICENSE.txt README.txt %files javadoc %{_javadocdir}/%{name} %doc APACHE-LICENSE-2.0.txt LGPL.txt LICENSE.txt %changelog * Sun Oct 28 2012 gil cattaneo 2.1.3-1 - initial rpm