b0ceb7
# Copyright (c) 2000-2007, JPackage Project
b0ceb7
# All rights reserved.
b0ceb7
#
b0ceb7
# Redistribution and use in source and binary forms, with or without
b0ceb7
# modification, are permitted provided that the following conditions
b0ceb7
# are met:
b0ceb7
#
b0ceb7
# 1. Redistributions of source code must retain the above copyright
b0ceb7
#    notice, this list of conditions and the following disclaimer.
b0ceb7
# 2. Redistributions in binary form must reproduce the above copyright
b0ceb7
#    notice, this list of conditions and the following disclaimer in the
b0ceb7
#    documentation and/or other materials provided with the
b0ceb7
#    distribution.
b0ceb7
# 3. Neither the name of the JPackage Project nor the names of its
b0ceb7
#    contributors may be used to endorse or promote products derived
b0ceb7
#    from this software without specific prior written permission.
b0ceb7
#
b0ceb7
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
b0ceb7
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
b0ceb7
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
b0ceb7
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
b0ceb7
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
b0ceb7
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
b0ceb7
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
b0ceb7
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
b0ceb7
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
b0ceb7
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
b0ceb7
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
b0ceb7
#
b0ceb7
b0ceb7
%global parent plexus
b0ceb7
%global subname utils
b0ceb7
b0ceb7
Name:           plexus-utils
b0ceb7
Version:        3.0.9
b0ceb7
Release:        7%{?dist}
b0ceb7
Summary:        Plexus Common Utilities
b0ceb7
# ASL 1.1: several files in src/main/java/org/codehaus/plexus/util/ 
b0ceb7
# xpp: src/main/java/org/codehaus/plexus/util/xml/pull directory
b0ceb7
# ASL 2.0 and BSD:
b0ceb7
#      src/main/java/org/codehaus/plexus/util/cli/StreamConsumer
b0ceb7
#      src/main/java/org/codehaus/plexus/util/cli/StreamPumper
b0ceb7
#      src/main/java/org/codehaus/plexus/util/cli/Commandline            
b0ceb7
# Public domain: src/main/java/org/codehaus/plexus/util/TypeFormat.java
b0ceb7
# rest is ASL 2.0
b0ceb7
License:        ASL 1.1 and ASL 2.0 and xpp and BSD and Public Domain
b0ceb7
Group:          Development/Libraries
b0ceb7
URL:            http://plexus.codehaus.org/
b0ceb7
Source0:        https://github.com/sonatype/%{name}/archive/%{name}-%{version}.tar.gz
b0ceb7
Source1:        http://apache.org/licenses/LICENSE-2.0.txt
b0ceb7
b0ceb7
BuildArch:      noarch
b0ceb7
BuildRequires:  jpackage-utils >= 0:1.6
b0ceb7
b0ceb7
BuildRequires:  maven-local
b0ceb7
BuildRequires:  maven-compiler-plugin
b0ceb7
BuildRequires:  maven-install-plugin
b0ceb7
BuildRequires:  maven-jar-plugin
b0ceb7
BuildRequires:  maven-javadoc-plugin
b0ceb7
BuildRequires:  maven-resources-plugin
b0ceb7
BuildRequires:  maven-surefire-plugin
b0ceb7
BuildRequires:  maven-doxia-sitetools
b0ceb7
BuildRequires:  maven-surefire-provider-junit
b0ceb7
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
b0ceb7
b0ceb7
%description
b0ceb7
The Plexus project seeks to create end-to-end developer tools for
b0ceb7
writing applications. At the core is the container, which can be
b0ceb7
embedded or for a full scale application server. There are many
b0ceb7
reusable components for hibernate, form processing, jndi, i18n,
b0ceb7
velocity, etc. Plexus also includes an application server which
b0ceb7
is like a J2EE application server, without all the baggage.
b0ceb7
b0ceb7
%package javadoc
b0ceb7
Summary:          Javadoc for %{name}
b0ceb7
Group:            Documentation
b0ceb7
b0ceb7
%description javadoc
b0ceb7
Javadoc for %{name}.
b0ceb7
b0ceb7
%prep
b0ceb7
%setup -q -n %{name}-%{name}-%{version}
b0ceb7
cp %{SOURCE1} .
b0ceb7
b0ceb7
%mvn_file : %{parent}/%{subname}
b0ceb7
%mvn_alias : "plexus:plexus-utils"
b0ceb7
b0ceb7
%build
b0ceb7
%mvn_build
b0ceb7
b0ceb7
%install
b0ceb7
%mvn_install
b0ceb7
b0ceb7
%files -f .mfiles
b0ceb7
%doc NOTICE.txt LICENSE-2.0.txt
b0ceb7
b0ceb7
%files javadoc -f .mfiles-javadoc
b0ceb7
%doc NOTICE.txt LICENSE-2.0.txt
b0ceb7
b0ceb7
%changelog
b0ceb7
* Thu Aug 22 2013 Michal Srb <msrb@redhat.com> - 3.0.9-7
b0ceb7
- Migrate away from mvn-rpmbuild (Resolves: #997480)
b0ceb7
b0ceb7
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.9-6
b0ceb7
- Rebuild to regenerate API documentation
b0ceb7
- Resolves: CVE-2013-1571
b0ceb7
b0ceb7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.9-5
b0ceb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b0ceb7
b0ceb7
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.0.9-4
b0ceb7
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
b0ceb7
- Replace maven BuildRequires with maven-local
b0ceb7
b0ceb7
* Mon Nov 26 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0.9-3
b0ceb7
- Add license from one Public Domain class 
b0ceb7
b0ceb7
* Fri Nov 23 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0.9-2
b0ceb7
- Fix license tag and ASL 2.0 license text
b0ceb7
b0ceb7
* Wed Oct 10 2012 Alexander Kurtakov <akurtako@redhat.com> 3.0.9-1
b0ceb7
- Update to upstream 3.0.9.
b0ceb7
b0ceb7
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-3
b0ceb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b0ceb7
b0ceb7
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-2
b0ceb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b0ceb7
b0ceb7
* Wed Sep 7 2011 Alexander Kurtakov <akurtako@redhat.com> 3.0-1
b0ceb7
- Update to upstream 3.0.
b0ceb7
b0ceb7
* Mon Feb 28 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0.6-1
b0ceb7
- Update to 2.0.6
b0ceb7
- Remove obsolete patches
b0ceb7
- Use maven 3 to build
b0ceb7
b0ceb7
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5-3
b0ceb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b0ceb7
b0ceb7
* Thu Dec 16 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0.5-2
b0ceb7
- Use versionless jars/javadocs
b0ceb7
- Use new maven plugin names
b0ceb7
- Add compatibility depmap
b0ceb7
b0ceb7
* Wed May  5 2010 Mary Ellen Foster <mefoster at gmail.com> 2.0.5-1
b0ceb7
- Update to 2.0.5
b0ceb7
b0ceb7
* Fri Feb 12 2010 Mary Ellen Foster <mefoster at gmail.com> 2.0.1-1
b0ceb7
- Update to 2.0.1
b0ceb7
- Build with maven
b0ceb7
b0ceb7
* Wed Aug 19 2009 Andrew Overholt <overholt@redhat.com> 1.4.5-1.2
b0ceb7
- Update to 1.4.5 from JPackage and Deepak Bhole
b0ceb7
- Remove gcj bits
b0ceb7
b0ceb7
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-4.2
b0ceb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b0ceb7
b0ceb7
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-3.2
b0ceb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b0ceb7
b0ceb7
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.2-2.2
b0ceb7
- fix license tag
b0ceb7
- drop repotag
b0ceb7
b0ceb7
* Thu Aug 23 2007 Ralph Apel <r.apel@r-apel.de> - 0:1.4.5-1jpp
b0ceb7
- Upgrade to 1.4.5
b0ceb7
- Now build with maven2 by default
b0ceb7
b0ceb7
* Wed Mar 21 2007 Ralph Apel <r.apel@r-apel.de> - 0:1.2-2jpp
b0ceb7
- Fix build classpath
b0ceb7
- Optionally build with maven2
b0ceb7
- Add gcj_support option
b0ceb7
b0ceb7
* Mon Feb 20 2007 Deepak Bhole <dbhole@redhat.com> - 0:1.2-2jpp.1.fc7
b0ceb7
- Fix spec per Fedora guidelines
b0ceb7
b0ceb7
* Fri Jun 16 2006 Ralph Apel <r.apel@r-apel.de> - 0:1.2-1jpp
b0ceb7
- Upgrade to 1.2
b0ceb7
b0ceb7
* Wed Jan 04 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.0.4-2jpp
b0ceb7
- First JPP 1.7 build
b0ceb7
b0ceb7
* Mon Nov 07 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.0.4-1jpp
b0ceb7
- First JPackage build