%global base_name jci %global short_name commons-%{base_name} %global namedreltag %{nil} %global namedversion %{version}%{?namedreltag} Name: apache-commons-jci Version: 1.1 Release: %mkrel 6 Group: Development/Java Summary: Commons Java Compiler Interface License: ASL 2.0 URL: http://commons.apache.org/jci/ Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{namedversion}-src.tar.gz Patch0: %{name}-1.1-janino27.patch BuildRequires: maven-local BuildRequires: maven-antrun-plugin BuildRequires: maven-plugin-bundle BuildRequires: ecj >= 3.4.2-13 BuildRequires: mvn(commons-logging:commons-logging) BuildRequires: mvn(commons-io:commons-io) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.codehaus.groovy:groovy) BuildRequires: mvn(org.codehaus.janino:janino) BuildRequires: mvn(rhino:js) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) # test deps BuildRequires: mvn(junit:junit) BuildRequires: objectweb-asm3 BuildRequires: mvn(org.apache.commons:commons-lang3) Requires: %{name}-core = %{version}-%{release} BuildArch: noarch #* jsr199 Commons JCI compiler implementation for JDK 1.6 and up. %description JCI is a java compiler interface featuring a compiling class loader. The current implementation supports compilation via the following compilers: * eclipse * groovy * janino * rhino %package core Summary: Commons Java Compiler Interface - core %description core Commons JCI core interfaces and implementations. %package fam Summary: Commons Java Compiler Interface - FAM %description fam Commons JCI FileAlterationMonitor (FAM) to monitor local file systems and get notified about changes. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. # compilers %package eclipse Summary: Commons Java Compiler Interface - eclipse %description eclipse Commons JCI compiler implementation for the eclipse compiler. %package groovy Summary: Commons Java Compiler Interface - groovy %description groovy Commons JCI compiler implementation for the groovy compiler. %package janino Summary: Commons Java Compiler Interface - janino %description janino Commons JCI compiler implementation for the janino compiler. %package rhino Summary: Commons Java Compiler Interface - rhino %description rhino Commons JCI compiler implementation for rhino JavaScript. %prep %setup -q -n %{short_name}-%{namedversion}-src find . -name "*.class" -delete find . -name "*.jar" -delete %patch0 -p1 # require old version of jdependency %pom_disable_module examples %pom_xpath_remove "pom:build/pom:extensions" %pom_xpath_set "pom:properties/pom:maven.compiler.source" 1.6 %pom_xpath_set "pom:properties/pom:maven.compiler.target" 1.6 %pom_remove_plugin :cobertura-maven-plugin %pom_remove_plugin :maven-assembly-plugin %pom_remove_plugin :maven-site-plugin %pom_xpath_set "pom:dependencyManagement/pom:dependencies/pom:dependency[pom:groupId = 'org.codehaus.groovy']/pom:artifactId" groovy %pom_xpath_set "pom:dependencyManagement/pom:dependencies/pom:dependency[pom:groupId = 'org.codehaus.groovy']/pom:version" 1.8.9 %pom_xpath_set "pom:dependencies/pom:dependency[pom:groupId = 'org.codehaus.groovy']/pom:artifactId" groovy compilers/groovy %pom_xpath_inject "pom:dependencies/pom:dependency[pom:groupId = 'org.codehaus.groovy']" "<version>1.8.9</version>" compilers/groovy # Fix installation directory %mvn_file :%{short_name}-core %{short_name}/%{short_name}-core %mvn_file :%{short_name}-fam %{short_name}/%{short_name}-fam %mvn_file :%{short_name}-eclipse %{short_name}/%{short_name}-eclipse %mvn_file :%{short_name}-groovy %{short_name}/%{short_name}-groovy %mvn_file :%{short_name}-janino %{short_name}/%{short_name}-janino %mvn_file :%{short_name}-rhino %{short_name}/%{short_name}-rhino %build # random tests failures %mvn_build -s -- -Dmaven.test.failure.ignore=true %install %mvn_install %files -f .mfiles-%{short_name} %dir %{_javadir}/%{short_name} %doc README.txt TODO.txt %license LICENSE.txt NOTICE.txt %files core -f .mfiles-%{short_name}-core %files fam -f .mfiles-%{short_name}-fam %files javadoc -f .mfiles-javadoc %license LICENSE.txt NOTICE.txt %files eclipse -f .mfiles-%{short_name}-eclipse %files groovy -f .mfiles-%{short_name}-groovy %files janino -f .mfiles-%{short_name}-janino %files rhino -f .mfiles-%{short_name}-rhino %changelog * Thu May 18 2017 neoclust <neoclust> 1.1-6.mga6 + Revision: 1103068 - Rebuild against new apache-parent * Wed Mar 02 2016 neoclust <neoclust> 1.1-5.mga6 + Revision: 981894 - Second rebuild of the java stack * Sun Feb 21 2016 neoclust <neoclust> 1.1-4.mga6 + Revision: 975457 - First rebuild of the java stack - sync package apache-commons-jci with fedora + umeabot <umeabot> - Mageia 6 Mass Rebuild + zezinho <zezinho> - new version * Tue Dec 23 2014 pterjan <pterjan> 1:1.0-15.mga5 + Revision: 805054 - Add missing epoch in dependency - Sync with Fedora 21 + dmorgan <dmorgan> - Restore from Obsolete + sander85 <sander85> - Depends on broken java stack * Wed Oct 15 2014 umeabot <umeabot> 1:1.0-14.mga5 + Revision: 744648 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 1:1.0-13.mga5 + Revision: 677810 - Mageia 5 Mass Rebuild * Mon Jun 16 2014 dmorgan <dmorgan> 1:1.0-12.mga5 + Revision: 636897 - use objectweb-asm3 - use objectweb-asm3 * Wed Dec 25 2013 dmorgan <dmorgan> 1:1.0-11.mga4 + Revision: 560701 - Fix requires ( epoch was missing) * Tue Oct 22 2013 umeabot <umeabot> 1:1.0-10.mga4 + Revision: 545649 - Mageia 4 Mass Rebuild * Wed Oct 16 2013 dmorgan <dmorgan> 1:1.0-9.mga4 + Revision: 501536 - Build with xmvn * Tue Jul 09 2013 dmorgan <dmorgan> 1:1.0-7.mga4 + Revision: 452063 - fix build for new ecj * Fri Jan 11 2013 umeabot <umeabot> 1:1.0-6.mga3 + Revision: 345747 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Dec 23 2012 pterjan <pterjan> 1:1.0-5.mga3 + Revision: 334380 - Add Fedora patch fixing build with ecj4 * Sun Sep 09 2012 dmorgan <dmorgan> 1:1.0-4.mga3 + Revision: 290742 - Revert to version 1.0 ( sync with fedora) * Thu Oct 27 2011 gil <gil> 1.1-1.mga2 + Revision: 158837 - imported package apache-commons-jci