File spice-parent.spec of Package spice-parent

%global _mavenpomdir /usr/share/maven2/poms
%global _mavendepmapfragdir /etc/maven/fragments

Name:           spice-parent
Version:        15
Release:        2%{?dist}
Summary:        Sonatype Spice Components

Group:          Development/Libraries
License:        ASL 2.0
URL:            http://svn.sonatype.org/spice/tags/spice-parent-15
#svn export http://svn.sonatype.org/spice/tags/spice-parent-15 spice-parent-15
#tar zcf spice-parent-15.tar.gz spice-parent-15/
Source0:        %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch: noarch

BuildRequires:  jpackage-utils >= 0:1.7.2

Requires:          jpackage-utils
Requires(post):    jpackage-utils >= 0:1.7.2
Requires(postun):  jpackage-utils >= 0:1.7.2

%description
Spice components and libraries are common components 
used throughout the Sonatype Forge.

%prep
%setup -q -n %{name}-%{version}

%build
#nothing to do for the pom

%install
%add_to_maven_depmap org.sonatype.spice spice-parent %{version} JPP spice-parent

# poms
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml \
    %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom

%post
%update_maven_depmap

%postun
%update_maven_depmap

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
/usr/share/maven2
%{_mavenpomdir}
%{_mavendepmapfragdir}

%changelog
* Fri May 14 2010 Hui Wang <huwang@redhat.com> - 15-2
- Add instruction which create Source0 as a commont
- Use macros in Source0 

* Tue May 11 2010 Hui Wang <huwang@redhat.com> - 15-1
- Initial version of the package
openSUSE Build Service is sponsored by