Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > c5fc37c047c82ef1d0f4611e040da33a > files > 2

felix-ipojo-annotations-1.8.0-2.mga3.src.rpm

%global bundle org.apache.felix.ipojo.annotations
Name:          felix-ipojo-annotations
Version:       1.8.0
Release:       %mkrel 2
Summary:       Apache Felix iPOJO Annotations
Group:         Development/Java
License:       ASL 2.0
Url:           http://felix.apache.org/
Source0:       http://www.apache.org/dist/felix/%{bundle}-1.8.0-project.tar.gz

# change org.codehaus.mojo in org.apache.rat
Patch0:        felix-ipojo-annotations-1.8.0-pom.patch
BuildRequires: felix-parent
BuildRequires: java-devel
BuildRequires: jpackage-utils

# org.codehaus.mojo rat-maven-plugin
BuildRequires: apache-rat-plugin
BuildRequires: maven
BuildRequires: maven-checkstyle-plugin
BuildRequires: maven-compiler-plugin
BuildRequires: maven-install-plugin 
BuildRequires: maven-jar-plugin 
BuildRequires: maven-javadoc-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: maven-surefire-provider-junit4
BuildRequires: maven-shared-osgi

Requires:      felix-parent

Requires:      java
Requires:      jpackage-utils
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
BuildArch:     noarch

%description
iPOJO Annotation pack. contained annotations are used to define iPOJO component type.

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%{_javadir}/felix/%{bundle}.jar
%{_mavenpomdir}/*
%{_mavendepmapfragdir}/*
%doc LICENSE NOTICE

#--------------------------------------------------------------------

%package javadoc
Group:         Development/Java
Summary:       Javadoc for %{name}
Requires:      jpackage-utils

%description javadoc
This package contains javadoc for %{name}.

%files javadoc
%{_javadocdir}/%{name}

#--------------------------------------------------------------------

%prep
%setup -q -n %{bundle}-%{version}
%patch0 -p0

%build
mvn-rpmbuild -e install javadoc:aggregate
%install
[ %{buildroot} != / ] && rm -rf %{buildroot}

install -d -m 0755 %{buildroot}%{_javadir}/felix
install -m 644 target/%{bundle}-%{version}.jar \
  %{buildroot}%{_javadir}/felix/%{bundle}.jar

install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.felix-%{bundle}.pom
%add_maven_depmap JPP.felix-%{bundle}.pom felix/%{bundle}.jar

install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/



%changelog

* Fri Jan 11 2013 umeabot <umeabot> 1.8.0-2.mga3
+ Revision: 350134
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sat Jan 07 2012 gil <gil> 1.8.0-1.mga2
+ Revision: 192797
- imported package felix-ipojo-annotations