Name: jj2000 Version: 5.2 Release: 1%{?dist} Summary: A pure Java JPEG 2000 image codec License: LGPLv2+ URL: https://github.com/Unidata/jj2000 Source0: https://github.com/Unidata/jj2000/archive/v%{version}.tar.gz BuildRequires: maven-local BuildArch: noarch %description This project is a JPEG 2000 encoder/decoder written in pure Java. Its goal is to be a reference implementation of (at least) part 1 of the JPEG 2000 specification. Fork of jpeg2k code from https://code.google.com/p/jj2000/. This is a dependency for support of compression in Grib2 files in netCDF-java and TDS (https://github.com/Unidata/thredds). %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{version} # Unwanted wagon-http-lightweight %pom_xpath_remove "pom:build/pom:extensions" %pom_xpath_set "pom:properties/pom:project.build.sourceEncoding" UTF-8 # fix non ASCII chars for s in $(find -name "*.java");do native2ascii -encoding UTF8 ${s} ${s} done %mvn_file edu.ucar:%{name} %{name} %build %mvn_build %install %mvn_install %files -f .mfiles %doc README.md %license COPYRIGHT %files javadoc -f .mfiles-javadoc %license COPYRIGHT %changelog * Wed Apr 22 2015 gil cattaneo 5.2-1 - initial rpm