Name: portals-pom Version: 1.3 Release: 1%{?dist} Summary: Apache Portals parent pom Group: Development/Libraries License: ASL 2.0 Url: http://portals.apache.org/ # svn export http://svn.apache.org/repos/asf/portals/portals-pom/tags/portals-pom-1.3 # tar czf portals-pom-1.3-src-svn.tar.gz portals-pom-1.3 Source0: portals-pom-1.3-src-svn.tar.gz Patch0: portals-pom-1.3-pom.patch BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: maven BuildRequires: maven-install-plugin #Requires: ... Requires: java Requires: jpackage-utils BuildArch: noarch %description Apache Portals is a collaborative software development project dedicated to providing robust, full-featured, commercial-quality, and freely available Portal related software on a wide variety of platforms and programming languages. This project is managed in cooperation with various individuals worldwide (both independent and company-affiliated experts), who use the Internet to communicate, plan, and develop Portal software and related documentation. %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n portals-pom-%{version} %patch0 -p0 for d in LICENSE NOTICE ; do iconv -f iso8859-1 -t utf-8 $d > $d.conv && mv -f $d.conv $d sed -i 's/\r//' $d done %build mvn-rpmbuild install %install mkdir -p %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %files %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %doc LICENSE NOTICE %changelog * Sat May 19 2012 gil cattaneo 1.3-1 - initial rpm