Name: colt Version: 1.2.0 Release: 1%{?dist} Summary: Java libraries for high performance scientific and technical computing License: MIT and LGPLv2 URL: http://acs.lbl.gov/software/colt/ Source0: %{name}-%{version}.tar.gz # From http://search.maven.org/remotecontent?filepath=colt/colt/1.2.0/colt-1.2.0.pom Source1: %{name}-%{version}.pom BuildArch: noarch BuildRequires: ant BuildRequires: concurrent BuildRequires: java-devel BuildRequires: javapackages-tools Requires: java Requires: concurrent %description Java libraries for high performance scientific and technical computing. %package javadoc Summary: Javadoc for %{name} Group: Documentation %description javadoc This package contains the API documentation for %{name}. %prep %setup -qn %{name} find -name *.jar -delete for f in `find ./src -name *.java` do iconv -f iso-8859-1 -t utf-8 $f > temp && mv -f temp $f done # Link in the concurrent jar for the build build-jar-repository lib concurrent %build export LC_ALL=en_US.UTF-8 ant build javadoc %install install -d -m 0755 %{buildroot}/%{_javadir} install -d -m 0755 %{buildroot}/%{_javadocdir}/%{name} install -d -m 0755 %{buildroot}/%{_mavenpomdir} install -m 0644 lib/%{name}.jar %{buildroot}/%{_javadir} install -m 0644 %{SOURCE1} %{buildroot}/%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar cp -ar doc/api/* %{buildroot}/%{_javadocdir}/%{name} %files -f .mfiles %doc doc/licenses/corejava.LICENSE.txt doc/license.html doc/bugs.html doc/changelog.html %{_javadir}/%{name}.jar %files javadoc %doc doc/licenses/corejava.LICENSE.txt doc/license.html %{_javadocdir}/%{name} %changelog * Thu Feb 6 2014 Robert Rati - 1.2.0-1 - Initial packaging