Andrew Overholt f2b6b10
# Copyright (c) 2000-2007, JPackage Project
Andrew Overholt f2b6b10
# All rights reserved.
Andrew Overholt f2b6b10
#
Andrew Overholt f2b6b10
# Redistribution and use in source and binary forms, with or without
Andrew Overholt f2b6b10
# modification, are permitted provided that the following conditions
Andrew Overholt f2b6b10
# are met:
Andrew Overholt f2b6b10
#
Andrew Overholt f2b6b10
# 1. Redistributions of source code must retain the above copyright
Andrew Overholt f2b6b10
#    notice, this list of conditions and the following disclaimer.
Andrew Overholt f2b6b10
# 2. Redistributions in binary form must reproduce the above copyright
Andrew Overholt f2b6b10
#    notice, this list of conditions and the following disclaimer in the
Andrew Overholt f2b6b10
#    documentation and/or other materials provided with the
Andrew Overholt f2b6b10
#    distribution.
Andrew Overholt f2b6b10
# 3. Neither the name of the JPackage Project nor the names of its
Andrew Overholt f2b6b10
#    contributors may be used to endorse or promote products derived
Andrew Overholt f2b6b10
#    from this software without specific prior written permission.
Andrew Overholt f2b6b10
#
Andrew Overholt f2b6b10
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Andrew Overholt f2b6b10
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Andrew Overholt f2b6b10
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Andrew Overholt f2b6b10
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Andrew Overholt f2b6b10
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Andrew Overholt f2b6b10
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Andrew Overholt f2b6b10
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Andrew Overholt f2b6b10
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Andrew Overholt f2b6b10
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Andrew Overholt f2b6b10
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Andrew Overholt f2b6b10
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Andrew Overholt f2b6b10
#
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
5cbb2a5
%global parent plexus
5cbb2a5
%global subname classworlds
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
Name:           %{parent}-%{subname}
Stanislav Ochotnicky c76f59b
Version:        2.4.2
Mat Booth 9dfd4bc
Release:        4%{?dist}
Andrew Overholt f2b6b10
Summary:        Plexus Classworlds Classloader Framework
Andrew Overholt f2b6b10
License:        ASL 2.0 and Plexus
Andrew Overholt 51b12a3
Group:          Development/Libraries
Andrew Overholt f2b6b10
URL:            http://plexus.codehaus.org/
Stanislav Ochotnicky 4db9460
Source0:        https://github.com/sonatype/%{name}/archive/%{name}-%{version}.tar.gz
Stanislav Ochotnicky 8d65b3c
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
BuildArch:      noarch
Andrew Overholt f2b6b10
5cbb2a5
BuildRequires:  jpackage-utils
5cbb2a5
BuildRequires:  apache-commons-logging
Andrew Overholt f2b6b10
BuildRequires:  xml-commons-jaxp-1.3-apis
Stanislav Ochotnicky c98e3e0
BuildRequires:  maven-local
5cbb2a5
BuildRequires:  maven-compiler-plugin
5cbb2a5
BuildRequires:  maven-install-plugin
5cbb2a5
BuildRequires:  maven-jar-plugin
5cbb2a5
BuildRequires:  maven-javadoc-plugin
5cbb2a5
BuildRequires:  maven-resources-plugin
5cbb2a5
BuildRequires:  maven-release-plugin
5cbb2a5
BuildRequires:  maven-shared-invoker
5cbb2a5
BuildRequires:  maven-shared-reporting-impl
5cbb2a5
BuildRequires:  maven-dependency-plugin
3f1f7ca
BuildRequires:  maven-plugin-bundle
Andrew Overholt 51b12a3
BuildRequires:  plexus-utils
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
%description
Andrew Overholt f2b6b10
Classworlds is a framework for container developers
Andrew Overholt f2b6b10
who require complex manipulation of Java's ClassLoaders.
5cbb2a5
Java's native ClassLoader mechanisms and classes can cause
Andrew Overholt f2b6b10
much headache and confusion for certain types of
Andrew Overholt f2b6b10
application developers. Projects which involve dynamic
Andrew Overholt f2b6b10
loading of components or otherwise represent a 'container'
Andrew Overholt f2b6b10
can benefit from the classloading control provided by
Andrew Overholt f2b6b10
classworlds.
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
%package javadoc
Andrew Overholt f2b6b10
Summary:        Javadoc for %{name}
Andrew Overholt 51b12a3
Group:          Documentation
5cbb2a5
Requires:       jpackage-utils
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
%description javadoc
5cbb2a5
API documentation for %{name}.
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
%prep
Stanislav Ochotnicky 4db9460
%setup -q -n %{name}-%{name}-%{version}
Andrew Overholt f2b6b10
for j in $(find . -name "*.jar" | grep -v /test-data/ | grep -v /test-jars/); do
Stanislav Ochotnicky 04db474
  rm $j
Andrew Overholt f2b6b10
done
5cbb2a5
Stanislav Ochotnicky 04db474
# fix ant groupId
Stanislav Ochotnicky 04db474
sed -i 's:<groupId>ant</groupId>:<groupId>org.apache.ant</groupId>:' pom.xml
Andrew Overholt f2b6b10
3f1f7ca
# Generate OSGI info
3f1f7ca
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
3f1f7ca
%pom_xpath_inject "pom:build/pom:plugins" "
3f1f7ca
        <plugin>
3f1f7ca
          <groupId>org.apache.felix</groupId>
3f1f7ca
          <artifactId>maven-bundle-plugin</artifactId>
3f1f7ca
          <extensions>true</extensions>
3f1f7ca
          <configuration>
3f1f7ca
            <instructions>
Stanislav Ochotnicky 1eedb21
              <_nouses>true</_nouses>
Stanislav Ochotnicky 1eedb21
              <Export-Package>org.codehaus.classworlds.*;org.codehaus.plexus.classworlds.*</Export-Package>
3f1f7ca
            </instructions>
3f1f7ca
          </configuration>
3f1f7ca
        </plugin>"
3f1f7ca
Stanislav Ochotnicky 8d65b3c
cp %{SOURCE1} .
Stanislav Ochotnicky 8d65b3c
Andrew Overholt f2b6b10
%build
199a5e2
mvn-rpmbuild -e install javadoc:javadoc
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
%install
Andrew Overholt f2b6b10
# jars
5cbb2a5
install -Dpm 644 target/%{name}-%{version}.jar \
Stanislav Ochotnicky 04db474
  $RPM_BUILD_ROOT%{_javadir}/plexus/%{subname}.jar
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
# pom
5cbb2a5
install -Dpm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{parent}-%{subname}.pom
7db31a2
%add_maven_depmap JPP.%{parent}-%{subname}.pom plexus/%{subname}.jar
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
# javadoc
Stanislav Ochotnicky 04db474
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
Stanislav Ochotnicky 04db474
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
%files
5cbb2a5
%{_javadir}/%{parent}/*
5cbb2a5
%{_mavenpomdir}/*
5cbb2a5
%{_mavendepmapfragdir}/*
Stanislav Ochotnicky 8d65b3c
%doc LICENSE.txt LICENSE-2.0.txt
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
%files javadoc
Stanislav Ochotnicky 8d65b3c
%doc LICENSE.txt LICENSE-2.0.txt
Stanislav Ochotnicky 04db474
%doc %{_javadocdir}/%{name}
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
%changelog
Mat Booth 9dfd4bc
* Thu Apr 11 2013 Mat Booth <fedora@matbooth.co.uk> - 2.4.2-4
Mat Booth 9dfd4bc
- Remove superfluous BRs, fixes rhbz #915616
Mat Booth 9dfd4bc
a691b38
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.2-3
a691b38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a691b38
Stanislav Ochotnicky c98e3e0
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.4.2-2
Stanislav Ochotnicky c98e3e0
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky c98e3e0
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky c98e3e0
Stanislav Ochotnicky c76f59b
* Tue Jan 22 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.4.2-1
Stanislav Ochotnicky c76f59b
- Update to latest bugfix release 2.4.2 (#895445)
Stanislav Ochotnicky c76f59b
Stanislav Ochotnicky 8d65b3c
* Wed Nov 21 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.4-11
Stanislav Ochotnicky 8d65b3c
- Install required ASL 2.0 license text
Stanislav Ochotnicky 8d65b3c
7db31a2
* Wed Nov 21 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.4-10
7db31a2
- Revert change from 2.4-9
7db31a2
a1d004b
* Tue Nov 20 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.4-9
a1d004b
- Provide and obsolete classworlds
a1d004b
Stanislav Ochotnicky 4db9460
* Mon Nov 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.4-8
Stanislav Ochotnicky 4db9460
- Fix source URL to be stable
Stanislav Ochotnicky 4db9460
Stanislav Ochotnicky 1eedb21
* Tue Aug  7 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.4-7
Stanislav Ochotnicky 1eedb21
- Export only proper OSGI packages
Stanislav Ochotnicky 1eedb21
- Do not generate "uses" OSGI clauses
Stanislav Ochotnicky 1eedb21
3f1f7ca
* Mon Aug 06 2012 Gerard Ryan <galileo@fedoraproject.org> - 2.4-6
3f1f7ca
- Generate OSGI info using maven-plugin-bundle
3f1f7ca
b325991
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-5
b325991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b325991
199a5e2
* Thu Apr  5 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.4-4
199a5e2
- Update to maven 3
199a5e2
- Remove rpm bug workaround
199a5e2
7f3020a
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-3
7f3020a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7f3020a
7d8beae
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-2
7d8beae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7d8beae
Stanislav Ochotnicky 04db474
* Wed Feb  2 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.4-1
Stanislav Ochotnicky 04db474
- Update to latest upstream version
Stanislav Ochotnicky 04db474
- Drop ant build parts
Stanislav Ochotnicky 04db474
- Versionless jars & javadocs
Stanislav Ochotnicky 04db474
- Enable tests again
Stanislav Ochotnicky 04db474
c5f7fd7
* Tue Dec 21 2010 Alexander Kurtakov <akurtako@redhat.com> 2.2.3-2
c5f7fd7
- Fix FTBFS.
c5f7fd7
5cbb2a5
* Tue Jul 13 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2.3-1
5cbb2a5
- Version bump
5cbb2a5
- Fix few small packaging guidelines violations
5cbb2a5
Andrew Overholt 2c83735
* Thu Aug 20 2009 Andrew Overholt <overholt@redhat.com> 0:1.2-0.a9.8
Andrew Overholt 2c83735
- Bump release.
Andrew Overholt 2c83735
Andrew Overholt 51b12a3
* Wed Aug 19 2009 Andrew Overholt <overholt@redhat.com> 0:1.2-0.a9.7
Andrew Overholt 51b12a3
- Document sources and patches
Andrew Overholt 51b12a3
Andrew Overholt 51b12a3
* Wed Aug 19 2009 Andrew Overholt <overholt@redhat.com> 0:1.2-0.a9.6
Andrew Overholt 51b12a3
- Update tarball-building instructions
Andrew Overholt 51b12a3
- Remove gcj support
Andrew Overholt 51b12a3
- Remove unnecessary post requirements
Andrew Overholt 51b12a3
Andrew Overholt f2b6b10
* Thu May 14 2009 Fernando Nasser <fnasser@redhat.com> 0:1.2-0.a9.6
Andrew Overholt f2b6b10
- Fix license specification
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
* Tue Apr 28 2009 Yong Yang <yyang@redhat.com> 0:1.2-0.a9.5
Andrew Overholt f2b6b10
- Add BRs maven2-plugin-surfire*, maven-doxia*
Andrew Overholt f2b6b10
- Rebuild with maven2-2.0.8 built in non-bootstrap mode
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
* Mon Mar 16 2009 Yong Yang <yyang@redhat.com> 0:1.2-0.a9.4
Andrew Overholt f2b6b10
- rebuild with new maven2 2.0.8 built in bootstrap mode
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
* Tue Jan 13 2009 Yong Yang <yyang@redhat.com> 0:1.2-0.a9.3jpp.1
Andrew Overholt 51b12a3
- re-build with maven
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
* Tue Jan 06 2009 Yong Yang <yyang@redhat.com> 0:1.2-0.a9.2jpp.1
Andrew Overholt f2b6b10
- Imported into devel from dbhole's maven 2.0.8 packages
Andrew Overholt f2b6b10
Andrew Overholt f2b6b10
* Wed Jan 30 2008 Deepak Bhole <dbhole@redhat.com> 0:1.2-0.a9.1jpp.1
Andrew Overholt f2b6b10
- Initial build -- merged from JPackage