%global site_name org.apache.felix.bundlerepository %global grp_name felix Name: felix-bundlerepository Version: 1.6.6 Release: 1%{?dist} Summary: Bundle repository service License: ASL 2.0 and BSD Group: Development/Libraries URL: http://felix.apache.org/site/apache-felix-osgi-bundle-repository.html Source0: http://www.fightrice.com/mirrors/apache/felix/org.apache.felix.bundlerepository-%{version}-source-release.tar.gz Source1: %{name}.depmap Patch0: %{name}-osgi-groupid.patch BuildArch: noarch BuildRequires: woodstox-core-asl BuildRequires: felix-shell BuildRequires: felix-utils BuildRequires: java-devel BuildRequires: maven BuildRequires: maven-surefire-provider-junit4 BuildRequires: jpackage-utils Requires: woodstox-core-asl Requires: felix-shell Requires: felix-utils Requires: jpackage-utils Requires: java %description Bundle repository service %package javadoc Summary: API documentation for %{name} Group: Documentation Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{site_name}-%{version} %patch0 -p1 %build # using bea-stax-api (no pom) instead of stax-api -> depmap needed mvn-rpmbuild -Dmaven.local.depmap.file="%{SOURCE1}" install javadoc:aggregate %install # jars install -Dpm 644 target/%{site_name}-%{version}.jar %{buildroot}%{_javadir}/%{grp_name}/%{name}.jar # pom install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{grp_name}-%{name}.pom # javadoc install -d -m 755 %{buildroot}%{_javadocdir}/%{name} cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} %add_maven_depmap JPP.%{grp_name}-%{name}.pom %{grp_name}/%{name}.jar %files %doc LICENSE LICENSE.kxml2 NOTICE DEPENDENCIES %{_javadir}/%{grp_name}/%{name}.jar %{_mavenpomdir}/JPP.%{grp_name}-%{name}.pom %{_mavendepmapfragdir}/%{name} %files javadoc %doc LICENSE LICENSE.kxml2 %doc %{_javadocdir}/%{name} %changelog * Tue Sep 14 2011 Jaromir Capik - 1.6.6-1 - Initial packaging