Name: java-libpst Version: 0.8.1 Release: 2%{?dist} Summary: A pure Java library for the reading of Outlook PST and OST files # see https://github.com/rjohnsondev/java-libpst/issues/23 License: ASL 2.0 and LGPLv3 URL: https://code.google.com/p/java-libpst/ Source0: https://github.com/rjohnsondev/java-libpst/archive/%{version}.tar.gz Source1: https://www.gnu.org/licenses/lgpl.txt BuildRequires: mvn(junit:junit) BuildRequires: maven-local BuildArch: noarch %description A library to read PST files with java, without need for external libraries. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q find -name '*.class' -print -delete find -name '*.jar' -print -delete %pom_xpath_set "pom:project/pom:version" %{version} cp -p %{SOURCE1} LICENSE.LGPL.txt sed -i 's/\r//' LICENSE.*.txt README.txt %build %mvn_file com.pff:%{name} %{name} %mvn_build %install %mvn_install %files -f .mfiles %doc LICENSE.APACHE-2.0.txt LICENSE.LGPL.txt README.md README.txt %files javadoc -f .mfiles-javadoc %doc LICENSE.APACHE-2.0.txt LICENSE.LGPL.txt %changelog * Fri Oct 31 2014 gil cattaneo 0.8.1-2 - update license tag * Thu Sep 25 2014 gil cattaneo 0.8.1-1 - initial rpm