Name: freehep-io Version: 2.2.2 Release: 1%{?dist} Summary: Extensions for java.io Group: Development/Libraries License: ASL 2.0 and LGPLv2+ URL: http://java.freehep.org/freehep-io/ # git clone githttps://github.com/freehep/freehep-io.git freehep-io-2.2.2 # (cd freehep-io-2.2.2/ && git archive --format=tar --prefix=freehep-io-2.2.2/ freehep-io-2.2.2 | xz > ../freehep-io-2.2.2-src-git.tar.xz) Source0: %{name}-%{version}-src-git.tar.xz BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: junit BuildRequires: maven BuildRequires: maven-compiler-plugin BuildRequires: maven-install-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-resources-plugin BuildRequires: maven-surefire-plugin BuildRequires: maven-surefire-provider-junit4 Requires: junit Requires: java Requires: jpackage-utils BuildArch: noarch %description FreeHEP extension to the java.io library. %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n freehep-io-%{version} %pom_remove_plugin com.github.github:downloads-maven-plugin %pom_remove_plugin com.github.github:site-maven-plugin sed -i "s|59 Temple Place, Suite 330, Boston, MA 02111-1307 USA|51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA|" LGPL.txt %build mvn-rpmbuild install javadoc:aggregate %install mkdir -p %{buildroot}%{_javadir} install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar mkdir -p %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap mkdir -p %{buildroot}%{_javadocdir}/%{name} cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} %files %{_javadir}/%{name}.jar %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %doc APACHE-LICENSE-2.0.txt LGPL.txt LICENSE.txt %files javadoc %{_javadocdir}/%{name} %doc APACHE-LICENSE-2.0.txt LGPL.txt LICENSE.txt %changelog * Sun Oct 28 2012 gil cattaneo 2.2.2-1 - initial rpm