Name: levigo-jbig2-imageio Version: 1.6.5 Release: 1%{?dist} Summary: A Java ImageIO plugin for the JBIG2 bi-level image format License: GPLv3 URL: https://github.com/levigo/jbig2-imageio Source0: https://github.com/levigo/jbig2-imageio/archive/%{name}-%{version}.tar.gz BuildRequires: maven-local BuildRequires: mvn(com.mycila.maven-license-plugin:maven-license-plugin) BuildRequires: mvn(junit:junit) BuildArch: noarch %description The Java ImageIO plugin for JBIG2 enables access to images encoded using the JBIG2 image compression standard. Features: ° Read-only (decode) support for images encoded using the JBIG2 standard, aka ITU T.88 and ISO/IEC 14492. ° Full support for all features defined in the standard, including arithmetic coding, Huffman coding and MQ coding. ° Pure Java code. No funny native or JNI stuff required. ° Secure. ° Production quality. Robust and well-tested. ° Reasonable performance. ° Standard ImageIO API. ° Support for shared data segments as used by PDF via custom DecodeParams. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n jbig2-imageio-%{name}-%{version} # Fix license plugin issues %pom_xpath_inject "pom:plugin[pom:artifactId = 'maven-license-plugin']/pom:configuration/pom:excludes" "**/.xmvn/**" sed -i -e 's|${artifactId}|${project.artifactId}|' pom.xml # Convert from dos to unix line ending for file in gpl.txt LICENSE-HEADER.txt release-notes.md; do sed -i.orig 's|\r||g' $file touch -r $file.orig $file rm $file.orig done %mvn_file : %{name} %build %mvn_build -- -Dproject.build.sourceEncoding=UTF-8 %install %mvn_install %files -f .mfiles %doc README.md release-notes.md %license gpl.txt LICENSE-HEADER.txt %files javadoc -f .mfiles-javadoc %license gpl.txt LICENSE-HEADER.txt %changelog * Thu Jan 28 2016 gil cattaneo 1.6.5-1 - update to 1.6.5 * Thu Oct 30 2014 gil cattaneo 1.6.3-1 - update to 1.6.3 * Mon May 05 2014 gil cattaneo 1.6.2-1 - initial rpm