Name: im4java Version: 1.3.2 Release: 1%{?dist} Summary: A pure-java interface to ImageMagick commandline Group: Development/Libraries License: LGPLv2+ URL: http://im4java.sourceforge.net/ Source0: http://sourceforge.net/projects/im4java/files/%{name}-%{version}/%{name}-%{version}-src.tar.bz2 # originally taken from http://repo1.maven.org/maven2/org/im4java/im4java/1.2.0/im4java-1.2.0.pom Source1: %{name}-template.pom Patch0: %{name}-%{version}-fix-incorrect-fsf-address.patch BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: make # test deps BuildRequires: /usr/bin/convert BuildRequires: /usr/bin/dcraw BuildRequires: /usr/bin/exiftool BuildRequires: /usr/bin/jpegtran BuildRequires: /usr/bin/ufraw Requires: java Requires: jpackage-utils BuildArch: noarch %description The library im4java provides a pure-java interface to ImageMagick, GraphicsMagick and other popular command-line tools like jpegtran, ufraw, dcraw, exiftool. The im4java-engine permits the addition of new tools in a very short time (less than an hour). Features: - java-interface to ImageMagick and GraphicsMagick - java-interface to jpegtran, ufraw, dcraw, exiftool %package contrib Group: Development/Libraries Summary: Demonstrations and samples for %{name} Requires: %{name} = %{version}-%{release} %description contrib This package contains demonstrations and samples for %{name}. %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{version} find -name "*.jar" -delete find -name "*.class" -delete find -name "*.bat" -delete %patch0 -p0 sed -i 's|-target $(TARGET)|-target $(TARGET) -source $(TARGET)|' Makefile cp -p %{SOURCE1} pom.xml sed -i "s|@VERSION@|%{version}|" pom.xml %build make jar jar-contrib doc-clean api-doc test %install mkdir -p %{buildroot}%{_javadir} install -m 644 %{name}-%{version}.jar \ %{buildroot}%{_javadir}/%{name}.jar install -m 644 %{name}-%{version}-contrib.jar \ %{buildroot}%{_javadir}/%{name}-contrib.jar mkdir -p %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar mkdir -p %{buildroot}%{_javadocdir}/%{name} cp -pr doc/api/* %{buildroot}%{_javadocdir}/%{name} %files %{_javadir}/%{name}.jar %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %doc COPYING.LIB ChangeLog NEWS README TODO %files contrib %{_javadir}/%{name}-contrib.jar %doc COPYING.LIB %files javadoc %{_javadocdir}/%{name} %doc COPYING.LIB %changelog * Wed Nov 21 2012 gil cattaneo 1.3.2-1 - initial rpm