Blame SPECS/plexus-compiler.spec

30af6a
%global pkg_name plexus-compiler
30af6a
%{?scl:%scl_package %{pkg_name}}
30af6a
%{?maven_find_provides_and_requires}
30af6a
30af6a
# Copyright (c) 2000-2005, JPackage Project
30af6a
# All rights reserved.
30af6a
#
30af6a
# Redistribution and use in source and binary forms, with or without
30af6a
# modification, are permitted provided that the following conditions
30af6a
# are met:
30af6a
#
30af6a
# 1. Redistributions of source code must retain the above copyright
30af6a
#    notice, this list of conditions and the following disclaimer.
30af6a
# 2. Redistributions in binary form must reproduce the above copyright
30af6a
#    notice, this list of conditions and the following disclaimer in the
30af6a
#    documentation and/or other materials provided with the
30af6a
#    distribution.
30af6a
# 3. Neither the name of the JPackage Project nor the names of its
30af6a
#    contributors may be used to endorse or promote products derived
30af6a
#    from this software without specific prior written permission.
30af6a
#
30af6a
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30af6a
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30af6a
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
30af6a
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30af6a
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30af6a
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30af6a
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30af6a
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30af6a
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30af6a
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30af6a
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30af6a
#
30af6a
30af6a
%global parent  plexus
30af6a
30af6a
Name:       %{?scl_prefix}%{pkg_name}
30af6a
Version:    2.2
30af6a
Release:    7.12%{?dist}
30af6a
Epoch:      0
30af6a
Summary:    Compiler call initiators for Plexus
30af6a
# extras subpackage has a bit different licensing
30af6a
# parts of compiler-api are ASL2.0/MIT
30af6a
License:    MIT and ASL 2.0
30af6a
URL:        http://plexus.codehaus.org/
30af6a
30af6a
Source0:    https://github.com/sonatype/%{pkg_name}/archive/%{pkg_name}-%{version}.tar.gz
30af6a
Source1:    http://www.apache.org/licenses/LICENSE-2.0.txt
30af6a
Source2:    LICENSE.MIT
30af6a
30af6a
BuildArch:      noarch
30af6a
BuildRequires:  %{?scl_prefix}maven-local
30af6a
BuildRequires:  %{?scl_prefix_java_common}javapackages-tools
30af6a
BuildRequires:  %{?scl_prefix_java_common}junit
30af6a
BuildRequires:  %{?scl_prefix}plexus-classworlds
30af6a
BuildRequires:  %{?scl_prefix_java_common}ecj
30af6a
BuildRequires:  %{?scl_prefix}plexus-containers-container-default
30af6a
BuildRequires:  %{?scl_prefix}plexus-utils
30af6a
BuildRequires:  %{?scl_prefix}plexus-containers-component-metadata
30af6a
BuildRequires:  %{?scl_prefix_java_common}junit
30af6a
BuildRequires:  %{?scl_prefix}plexus-pom
30af6a
BuildRequires:  %{?scl_prefix}maven-gpg-plugin
30af6a
30af6a
30af6a
%description
30af6a
Plexus Compiler adds support for using various compilers from a
30af6a
unified api. Support for javac is available in main package. For
30af6a
additional compilers see %{pkg_name}-extras package.
30af6a
30af6a
%package extras
30af6a
Summary:        Extra compiler support for %{pkg_name}
30af6a
# ASL 2.0: src/main/java/org/codehaus/plexus/compiler/util/scan/
30af6a
#          ...codehaus/plexus/compiler/csharp/CSharpCompiler.java
30af6a
# ASL 1.1/MIT: ...codehaus/plexus/compiler/jikes/JikesCompiler.java
30af6a
License:        MIT and ASL 2.0 and ASL 1.1
30af6a
30af6a
%description extras
30af6a
Additional support for csharp, eclipse and jikes compilers
30af6a
30af6a
%package pom
30af6a
Summary:        Maven POM files for %{pkg_name}
30af6a
30af6a
%description pom
30af6a
This package provides %{summary}.
30af6a
30af6a
%package javadoc
30af6a
Summary:        Javadoc for %{pkg_name}
30af6a
License:        MIT and ASL 2.0 and ASL 1.1
30af6a
30af6a
%description javadoc
30af6a
API documentation for %{pkg_name}.
30af6a
30af6a
%prep
30af6a
%setup -q -n %{pkg_name}-%{pkg_name}-%{version}
30af6a
%{?scl:scl enable %{scl} - <<"EOF"}
30af6a
set -e -x
30af6a
30af6a
cp %{SOURCE1} LICENSE
30af6a
cp %{SOURCE2} LICENSE.MIT
30af6a
30af6a
%pom_disable_module plexus-compiler-aspectj plexus-compilers/pom.xml
30af6a
30af6a
# don't build/install compiler-test module, it needs maven2 test harness
30af6a
%pom_disable_module plexus-compiler-test
30af6a
%pom_remove_dep :plexus-compiler-test plexus-compilers
30af6a
%{?scl:EOF}
30af6a
30af6a
%build
30af6a
%{?scl:scl enable %{scl} - <<"EOF"}
30af6a
set -e -x
30af6a
%mvn_package ":plexus-compiler{,s}" pom
30af6a
%mvn_package ":*{csharp,eclipse,jikes}*" extras
30af6a
# Tests are skipped because of unavailable plexus-compiler-test artifact
30af6a
%mvn_build -f
30af6a
%{?scl:EOF}
30af6a
30af6a
%install
30af6a
%{?scl:scl enable %{scl} - <<"EOF"}
30af6a
set -e -x
30af6a
%mvn_install
30af6a
%{?scl:EOF}
30af6a
30af6a
%files -f .mfiles
30af6a
%{_javadir}/%{pkg_name}
30af6a
%dir %{_mavenpomdir}/%{pkg_name}
30af6a
%doc LICENSE LICENSE.MIT
30af6a
%files extras -f .mfiles-extras
30af6a
%files pom -f .mfiles-pom
30af6a
30af6a
%files javadoc -f .mfiles-javadoc
30af6a
%doc LICENSE LICENSE.MIT
30af6a
30af6a
%changelog
30af6a
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 0:2.2-7.12
30af6a
- Fix BR on maven-local & co.
30af6a
30af6a
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 0:2.2-7.11
30af6a
- maven33 rebuild #2
30af6a
30af6a
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 0:2.2-7.10
30af6a
- maven33 rebuild
30af6a
30af6a
* Thu Jan 15 2015 Michal Srb <msrb@redhat.com> - 2.2-7.9
30af6a
- Fix directory ownership
30af6a
30af6a
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 0:2.2-7.8
30af6a
- Mass rebuild 2015-01-13
30af6a
30af6a
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 0:2.2-7.7
30af6a
- Mass rebuild 2015-01-06
30af6a
30af6a
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.2-7.6
30af6a
- Mass rebuild 2014-05-26
30af6a
30af6a
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.2-7.5
30af6a
- Mass rebuild 2014-02-19
30af6a
30af6a
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.2-7.4
30af6a
- Mass rebuild 2014-02-18
30af6a
30af6a
* Fri Feb 14 2014 Michael Simacek <msimacek@redhat.com> - 0:2.2-7.3
30af6a
- SCL-ize BR
30af6a
30af6a
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.2-7.2
30af6a
- Rebuild to regenerate auto-requires
30af6a
30af6a
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.2-7.1
30af6a
- First maven30 software collection build
30af6a
30af6a
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 02.2-7
30af6a
- Mass rebuild 2013-12-27
30af6a
30af6a
* Wed Nov 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.2-7
30af6a
- Remove dependency on plexus-compiler-test
30af6a
- Add missing BR: maven-gpg-plugin
30af6a
30af6a
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.2-5
30af6a
- Rebuild to regenerate API documentation
30af6a
- Resolves: CVE-2013-1571
30af6a
30af6a
* Mon Apr 15 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.2-4
30af6a
- Fix license tag
30af6a
- Install MIT license file
30af6a
30af6a
* Wed Apr 10 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.2-3
30af6a
- Remove auxiliary aliases
30af6a
30af6a
* Wed Apr 10 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.2-2
30af6a
- Add auxiliary aliases
30af6a
30af6a
* Tue Mar 05 2013 Michal Srb <msrb@redhat.com> - 0:2.2-1
30af6a
- Update to upstream version 2.2
30af6a
- Add license file (Resolves: #903268)
30af6a
30af6a
* Tue Mar 05 2013 Michal Srb <msrb@redhat.com> - 0:2.1-3
30af6a
- Remove auxiliary aliases
30af6a
30af6a
* Tue Mar 05 2013 Michal Srb <msrb@redhat.com> - 0:2.1-2
30af6a
- Build with original POM files
30af6a
30af6a
* Wed Jan 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.1-1
30af6a
- Update to upstream version 2.1
30af6a
- Build with xmvn
30af6a
30af6a
* Wed Dec 5 2012 Michal Srb <msrb@redhat.com> - 0:1.9.2-3
30af6a
- Replaced dependency to plexus-container-default with plexus-containers-container-default
30af6a
30af6a
* Tue Nov 13 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.9.2-2
30af6a
- Fix up licensing properly
30af6a
30af6a
* Mon Oct 29 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.9.2-1
30af6a
- Update to upstream version 1.9.2
30af6a
30af6a
* Wed Aug  8 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.9.1-3
30af6a
- Fix FTBFS by adding ignoreOptionalProblems function
30af6a
- Use new pom_ macros instead of patches
30af6a
30af6a
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.9.1-2
30af6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
30af6a
30af6a
* Tue Jun 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.9.1-1
30af6a
- Update to upstream 1.9.1 release
30af6a
30af6a
* Fri Jan 13 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.8.3-1
30af6a
- Update to upstream 1.8.3 release.
30af6a
- For some reason junit is strong (not test) dependency.
30af6a
30af6a
* Thu Dec  1 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.8-3
30af6a
- Build with maven 3
30af6a
- Don't install compiler-test module (nothing should use it anyway)
30af6a
- Fixes accoding to current guidelines
30af6a
- Install depmaps into extras separately
30af6a
30af6a
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.8-2
30af6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
30af6a
30af6a
* Thu Jan 20 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.8-1
30af6a
- Update to latest version (1.8)
30af6a
- Create extras subpackage with optional compilers
30af6a
- Provide maven depmaps
30af6a
- Versionless jars & javadocs
30af6a
30af6a
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5.2-4.3
30af6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
30af6a
30af6a
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5.2-3.3
30af6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
30af6a
30af6a
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.5.2-2.3
30af6a
- drop repotag
30af6a
30af6a
* Thu Mar 15 2007 Deepak Bhole <dbhole@redhat.com> - 0:1.5.2-2jpp.2
30af6a
- Fix bug in spec that prevented unversioned symlink creation
30af6a
30af6a
* Thu Mar 08 2007 Deepak Bhole <dbhole@redhat.com> - 0:1.5.2-2jpp.1
30af6a
- Fix license
30af6a
- Disable aspectj compiler until we can put that into Fedora
30af6a
- Remove vendor and distribution tags
30af6a
- Removed javadoc post and postuns, with dirs being marked %%doc now
30af6a
- Fix buildroot per Fedora spec
30af6a
30af6a
* Fri Jun 02 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.5.2-2jpp
30af6a
- Fix jar naming to previous plexus conventions
30af6a
30af6a
* Tue May 30 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.5.2-1jpp
30af6a
- First JPackage build