File maven2-common-poms.spec of Package maven2-common-poms
# Copyright (c) 2000-2006, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the
# distribution.
# 3. Neither the name of the JPackage Project nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
%global parent maven2
%global subname common-poms
Name: %{parent}-%{subname}
Version: 1.0
Release: 21%{?dist}
Epoch: 0
Summary: Common poms for maven2
License: ASL 2.0 and BSD
Group: Development/Libraries
URL: http://jpackage.org/
# No source location for these. They are ascii files generated from maven
# repositories, and are not in cvs/svn.
Source0: %{name}-src.tar.xz
Source1: %{name}-jpp-depmap.xml
Source2: %{name}-docs.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: jpackage-utils
BuildRequires: xz
Requires: jpackage-utils
%description
This package is a collection of poms required by various maven2-dependent
packages.
%prep
%setup -q -n %{name}
# update logkit version to 1.2.2
sed -i "s|1.0.1|1.2.2|" JPP.excalibur-logkit.pom
tar xzf %{SOURCE2}
%build
%install
rm -rf $RPM_BUILD_ROOT
# Map
install -dm 755 $RPM_BUILD_ROOT%{_mavendepmapdir}
cp %{SOURCE1} $RPM_BUILD_ROOT%{_mavendepmapdir}/maven2-versionless-depmap.xml
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/maven2
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/default_poms
install -pm 644 *.pom $RPM_BUILD_ROOT%{_datadir}/maven2/default_poms
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/maven2
ln -s %{_datadir}/maven2/default_poms $RPM_BUILD_ROOT%{_javadir}/maven2
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc APACHE_LICENSE.TXT JSCH_LICENSE.TXT FEDORA.README
%{_mavendepmapdir}/maven2-versionless-depmap.xml
%{_javadir}/maven2
%{_datadir}/maven2
%changelog
* Tue Sep 07 2010 Guido Grazioli <guido.grazioli@gmail.com> 0:1.0-21
- Fix cvsclient pom to new jar location (#572165)
- Drop apache-commons-langs (#591878)
* Mon Aug 30 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-20
- Remove ant and plugins depmaps. They are properly handled by ant packages.
* Thu Jun 17 2010 Deepak Bhole <dbhole@redhat.com> 0:1.0-19
- Added plugins parent pom
* Tue May 25 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-18
- Remove doxia and modello poms.
* Tue May 25 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-17
- Remove doxia depmaps.
* Tue May 25 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-16
- Remove modello depmaps (needed for updating maven).
* Wed May 19 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-15
- Remove maven-plugin-testing depmaps.
* Wed May 12 2010 Guido Grazioli <guido.grazioli@gmail.com> 0:1.0-14
- Drop apache-commons-logging pom (BZ 591279).
- Drop plexus-archiver pom (BZ 550790).
* Sun May 02 2010 Guido Grazioli <guido.grazioli@gmail.com> 0:1.0-13
- Add netbeans-libs cvsclient pom.
- Fix Group tag.
- Use xz compression.
* Tue Dec 22 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-12
- Drop common-codec and commons-digester. Packaged with the jars now.
* Wed Sep 16 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-11
- Add apache-commons parent pom.
* Thu Sep 10 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-10
- Add jetty and plexus parent poms.
* Tue Sep 1 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 0:1.0-9
- Added JPP.codehaus-mojo-parent.pom
- Fix cobertura's jar name in the depmap, should be maven2-plugin-cobertura
* Wed Aug 19 2009 Andrew Overholt <overholt@redhat.com> 1.0-8
- From Yong Yang:
- Fix JPP.excalibur-logkit.pom's version by sed
* Tue Aug 18 2009 Andrew Overholt <overholt@redhat.com> 0:1.0-7
- Changes from Deepak Bhole:
- Updated depmap
- Update for maven 2.0.8
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-6.4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-5.4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.0-4.4
- drop repotag
* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.0-4jpp.3
- fix license tag
* Thu Mar 15 2007 Deepak Bhole <dbhole@redhat.com> 1.0-4jpp.2
- Updated depmap to make javax-servlet be tomcat-2.4-servlet-api
* Mon Feb 12 2007 Deepak Bhole <dbhole@redhat.com> 0:1.0-4jpp.1
- Fix spec per Fedora guidelines.
* Fri Oct 13 2006 Deepak Bhole <dbhole@redhat.com> 1.0-3jpp
- Changed file names to comply with the new maven2 rpm.
* Fri Sep 18 2006 Deepak Bhole <dbhole@redhat.com> - 0:1.0-2jpp
- Moved common poms from maven2 rpm into this one.
* Tue Jun 13 2006 Deepak Bhole <dbhole@redhat.com> - 0:1.0-1jpp
- Initial build