[Jpackage-commits] rpms/free/javacc-maven-plugin javacc-maven-plugin-jpp-depmap.xml, NONE, 1.1 javacc-maven-plugin-pom.patch, NONE, 1.1 javacc-maven-plugin.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Thu Dec 23 06:20:17 CET 2010


Update of /home/projects/jpackage/cvs/rpms/free/javacc-maven-plugin
In directory ryu.zarb.org:/tmp/ds2TzcaSbo/rpms/free/javacc-maven-plugin

Added Files:
	javacc-maven-plugin-jpp-depmap.xml 
	javacc-maven-plugin-pom.patch javacc-maven-plugin.spec 
Log Message:
2.6-7.jpp6

--- NEW FILE: javacc-maven-plugin-pom.patch ---
--- pom.xml.sav	2009-09-30 01:25:34.000000000 +0300
+++ pom.xml	2010-03-23 23:37:07.136383912 +0200
@@ -85,15 +85,6 @@ under the License.
       <version>1.5.6</version>
     </dependency>
     <dependency>
-      <groupId>edu.ucla.cs.compilers</groupId>
-      <artifactId>jtb</artifactId>
-      <version>1.3.2</version>
-      <!--
-      NOTE: Only reflectively accessed to avoid dependency on Java 1.5 for compilation.
-      -->
-      <scope>runtime</scope>
-    </dependency>
-    <dependency>
       <groupId>org.apache.maven.reporting</groupId>
       <artifactId>maven-reporting-api</artifactId>
       <version>2.0.4</version>
@@ -127,60 +118,5 @@ under the License.
     </dependency>
   </dependencies>
 
-  <profiles>
-    <profile>
-      <id>run-its</id>
-      <activation>
-        <property>
-          <name>maven.test.skip</name>
-          <value>!true</value>
-        </property>
-      </activation>
-      <properties>
-        <sitePluginVersion>2.0.1</sitePluginVersion>
-      </properties>
-      <build>
-        <plugins>
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-invoker-plugin</artifactId>
-            <version>1.4</version>
-            <configuration>
-              <projectsDirectory>src/it</projectsDirectory>
-              <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
-              <pomIncludes>
-                <pomInclude>*/pom.xml</pomInclude>
-              </pomIncludes>
-              <postBuildHookScript>verify.bsh</postBuildHookScript>
-              <settingsFile>src/it/settings.xml</settingsFile>
-              <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
-              <debug>true</debug>
-            </configuration>
-            <executions>
-              <execution>
-                <id>integration-test</id>
-                <goals>
-                  <goal>install</goal>
-                  <goal>run</goal>
-                </goals>
-              </execution>
-            </executions>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
-    <profile>
-      <id>maven-3</id>
-      <activation>
-        <file>
-          <!-- This employs that the basedir expression is only recognized by Maven 3.x (see MNG-2363) -->
-          <exists>${basedir}</exists>
-        </file>
-      </activation>
-      <properties>
-        <sitePluginVersion>3.0-beta-1-SNAPSHOT</sitePluginVersion>
-      </properties>
-    </profile>
-  </profiles>
   
 </project>

--- NEW FILE: javacc-maven-plugin-jpp-depmap.xml ---
<dependencies>
   <!--<dependency>
      <maven>
         <groupId>org.mortbay.jetty</groupId>
         <artifactId>servlet-api</artifactId>
         <version>2.5-20081211</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>servlet_2_5_api</artifactId>
         <version>2.5</version>
      </jpp>
   </dependency>-->

   <dependency>
      <maven>
         <groupId>com.thoughtworks.qdox</groupId>
         <artifactId>qdox</artifactId>
         <version>1.6.3</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>qdox</artifactId>
         <version>1.12</version>
      </jpp>
   </dependency>
</dependencies>

--- NEW FILE: javacc-maven-plugin.spec ---
Name:           javacc-maven-plugin
Version:        2.6
Release:        7%{?dist}
Epoch:          0
Summary:        JavaCC Maven Plugin

Group:          Development/Libraries
License:        ASL 2.0
URL:            http://mojo.codehaus.org/javacc-maven-plugin/ 
#svn export http://svn.codehaus.org/mojo/tags/javacc-maven-plugin-2.6
#tar cjf javacc-maven-plugin-2.6.tar.bz2 javacc-maven-plugin-2.6
Source0:        javacc-maven-plugin-2.6.tar.bz2
Source1:        javacc-maven-plugin-jpp-depmap.xml
Patch0:         javacc-maven-plugin-pom.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch

BuildRequires: apache-commons-parent >= 0:12
BuildRequires: maven2
BuildRequires: javacc >= 0:5.0
BuildRequires: plexus-utils
BuildRequires: maven-doxia
BuildRequires: maven-doxia-sitetools
BuildRequires: maven2-plugin-compiler
BuildRequires: maven2-plugin-invoker
BuildRequires: maven2-plugin-jar
BuildRequires: maven2-plugin-javadoc
BuildRequires: maven2-plugin-enforcer
BuildRequires: maven2-plugin-plugin
BuildRequires: maven2-plugin-resources
BuildRequires: mojo-maven2-plugin-cobertura
BuildRequires: maven-surefire-plugin
BuildRequires: maven-surefire-provider-junit
BuildRequires: mojo-parent
BuildRequires: plexus-containers-component-javadoc
BuildRequires: junit
Requires: javacc >= 0:5.0
Requires: plexus-utils
Requires: jpackage-utils
Requires: mojo-parent
Requires(post): jpackage-utils
Requires(postun): jpackage-utils

%description
Maven 2 Plugin for processing JavaCC grammar files.

%package javadoc
Group:          Documentation
Summary:        Javadoc for %{name}
Requires:       jpackage-utils

%description javadoc
API documentation for %{name}.


%prep
%setup -q 
%patch0 -b .sav

%build
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mvn-jpp \
        -e \
        -Dmaven2.jpp.mode=true \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
        package javadoc:javadoc

%install
rm -rf %{buildroot}

# jars
install -d -m 0755 %{buildroot}%{_javadir}
install -m 644 target/%{name}-%{version}.jar   %{buildroot}%{_javadir}/%{name}-%{version}.jar

(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; \
    do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

%add_to_maven_depmap org.codehaus.mojo javacc-maven-plugin %{version} JPP javacc-maven-plugin

# poms
install -d -m 755 %{buildroot}%{_datadir}/maven2/poms
install -pm 644 pom.xml \
    %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom

# javadoc
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
rm -rf target/site/api*

%post
%update_maven_depmap

%postun
%update_maven_depmap

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_javadir}/%{name}*
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*
%doc src/main/resources/NOTICE

%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

%changelog
* Thu Dec 23 2010 David Walluck <dwalluck at redhat.com> 0:2.6-7
- adapt to JPackage

* Mon Dec 6 2010 Orion Poplawski <orion at cora.nwra.com> 2.6-6
- Require mojo-parent.

* Thu Sep 16 2010 Alexander Kurtakov <akurtako at redhat.com> 2.6-5
- BR mojo-parent.

* Wed Mar 24 2010 Alexander Kurtakov <akurtako at redhat.com> 2.6-4
- Fix BRs.

* Wed Mar 24 2010 Alexander Kurtakov <akurtako at redhat.com> 2.6-3
- Fix plugin metadata build.

* Wed Mar 17 2010 Alexander Kurtakov <akurtako at redhat.com> 2.6-2
- Fix Requires.

* Mon Mar 15 2010 Alexander Kurtakov <akurtako at redhat.com> 2.6-1
- Initial package.




More information about the JPackage-commits mailing list