[Jpackage-commits] dist/maven-notice-plugin/devel .cvsignore, 1.1, 1.2 maven-notice-plugin-component-info.xml, NONE, 1.1 maven-notice-plugin-jpp-depmap.xml, NONE, 1.1 maven-notice-plugin-pom.patch, NONE, 1.1 maven-notice-plugin-settings.xml, NONE, 1.1 maven-notice-plugin.spec, NONE, 1.1 sources, 1.1, 1.2

David Walluck david at ryu.zarb.org
Tue Dec 7 23:15:11 CET 2010


Update of /home/projects/jpackage/cvs/dist/maven-notice-plugin/devel
In directory ryu.zarb.org:/tmp/cvs-serv7236/devel

Modified Files:
	.cvsignore sources 
Added Files:
	maven-notice-plugin-component-info.xml 
	maven-notice-plugin-jpp-depmap.xml 
	maven-notice-plugin-pom.patch maven-notice-plugin-settings.xml 
	maven-notice-plugin.spec 
Log Message:
- initial import

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/maven-notice-plugin/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	7 Dec 2010 22:14:24 -0000	1.1
--- .cvsignore	7 Dec 2010 22:15:08 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ maven-notice-plugin-0.0.2.tar.bz2

--- NEW FILE: maven-notice-plugin-component-info.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<project name="">
  <component id="org/apache/httpcomponents/maven-notice-plugin"
             licenseType=""
             version="@VERSION@"
             tag="@TAG@"
             description=""
             
             > 
              
    <artifact id="maven-notice-plugin.jar"/>


    <export>
      <include input="maven-notice-plugin.jar"/>

    </export>
  </component>
</project>

--- NEW FILE: maven-notice-plugin-settings.xml ---
<settings>
    <profiles>
        <profile>
            <id>JPP</id>
            <repositories>
                <repository>
                    <id>internal</id>
                    <layout>jpp</layout>
                    <url>__JPP_URL_PLACEHOLDER__</url>
                </repository>
                <repository>
                    <id>external</id>
                    <layout>jpp</layout>
                    <url>__JAVADIR_PLACEHOLDER__</url>
                </repository>
                <repository>
                    <id>local</id>
                    <layout>jpp</layout>
                    <url>__MAVENREPO_DIR_PLACEHOLDER__</url>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>plugins-internal</id>
                    <name>plugins-internal</name>
                    <layout>jpp</layout>
                    <url>__JPP_URL_PLACEHOLDER__</url>
                </pluginRepository>
                <pluginRepository>
                    <id>plugins-external</id>
                    <name>plugins-external</name>
                    <layout>jpp</layout>
                    <url>__JAVADIR_PLACEHOLDER__</url>
                </pluginRepository>
                <pluginRepository>
                    <id>plugins-maven</id>
                    <name>plugins-maven</name>
                    <layout>jpp</layout>
                    <url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>
                </pluginRepository>
            </pluginRepositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>JPP</activeProfile>
    </activeProfiles>
</settings>

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/maven-notice-plugin/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	7 Dec 2010 22:14:24 -0000	1.1
--- sources	7 Dec 2010 22:15:08 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ ee60d5474e38a5c86c30b0683c1e4042  maven-notice-plugin-0.0.2.tar.bz2

--- NEW FILE: maven-notice-plugin-jpp-depmap.xml ---
<dependencies>
<!--
  Path to dependency: 
        1) org.apache.maven.plugins:maven-plugin-plugin:maven-plugin:2.0.8
        2) org.apache.maven.reporting:maven-reporting-impl:jar:2.0
        3) commons-validator:commons-validator:jar:1.2.0
-->
<!--
   <dependency>
      <maven>
         <groupId>commons-validator</groupId>
         <artifactId>commons-validator</artifactId>
         <version>1.2.0</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>commons-validator</artifactId>
         <version>1.3.1</version>
      </jpp>
   </dependency>
-->
</dependencies>

--- NEW FILE: maven-notice-plugin.spec ---
# Copyright (c) 2000-2010, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define with()          %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without()       %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
%define bcond_with()    %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}

%bcond_without repolib

%define repodir %{_javadir}/repository.jboss.com/org/apache/httpcomponents/%{name}/%{version}-brew
%define repodirlib %{repodir}/lib
%define repodirsrc %{repodir}/src

%define section free
%define namedversion %{version}

Name:           maven-notice-plugin
Version:        0.0.2
Release:        0.1%{?dist}
Epoch:          0
Summary:        Maven NOTICE and LICENSE plugin
License:        ASL 2.0
URL:            http://svn.apache.org/repos/asf/httpcomponents/maven-notice-plugin
Group:          Development/Libraries/Java
# svn export http://svn.apache.org/repos/asf/httpcomponents/maven-notice-plugin/tags/0.0.2-RC1/ maven-notice-plugin-0.0.2 && tar cjf maven-notice-plugin-0.0.2.tar.bz2 maven-notice-plugin-0.0.2
# Exported revision 1042827.
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}-settings.xml
Source2:        %{name}-jpp-depmap.xml
Source4:        %{name}-component-info.xml
Patch0:          maven-notice-plugin-pom.patch
Requires(post):  jpackage-utils
Requires(postun): jpackage-utils
Requires:       jakarta-commons-io
Requires:       java >= 0:1.5.0
Requires:       jpackage-utils
Requires:       maven2
BuildRequires:  jakarta-commons-io
BuildRequires:  maven2 >= 0:2.0.7
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-invoker
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-plugin
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven2-plugin-source
BuildRequires:  maven-doxia-sitetools
BuildRequires:  maven-release
BuildRequires:  maven-surefire-maven-plugin
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  jpackage-utils >= 0:1.7.3
BuildRequires:  junit
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Maven plugin for automatic generation of NOTICE and LICENSE resources.

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

%description javadoc
%{summary}.
%endif

%if %with repolib
%package repolib
Summary:        Artifacts to be uploaded to a repository library
Group:          Development/Libraries/Java

%description repolib
Artifacts to be uploaded to a repository library.
This package is not meant to be installed but so its contents
can be extracted through rpm2cpio.
%endif

%prep
%setup -q 
%patch0 -p0 -b .sav0

cp -p %{SOURCE1} settings.xml
sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/m2_repo/repository</url>|g" settings.xml
sed -i -e "s|<url>__JAVADIR_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" settings.xml
sed -i -e "s|<url>__MAVENREPO_DIR_PLACEHOLDER__</url>|<url>file://`pwd`/m2_repo/repository</url>|g" settings.xml

mkdir external_repo
ln -s %{_javadir} external_repo/JPP

%build
export MAVEN_REPO_LOCAL=$(pwd)/m2_repo/repository
export M2_SETTINGS=$(pwd)/settings.xml
%{_bindir}/mvn-jpp \
                -e \
                -s ${M2_SETTINGS} \
                -Dmaven2.jpp.depmap.file=%{SOURCE2} \
                -Dmaven.repo.local=${MAVEN_REPO_LOCAL} \
                install \
%if 0
                javadoc:aggregate
%endif

%install
rm -rf $RPM_BUILD_ROOT

# jars
mkdir -p $RPM_BUILD_ROOT%{_javadir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -p -m 644 target/%{name}-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -s ${jar} `/bin/echo $jar | sed "s|-%{version}||g"`; done)

# pom
install -p -m 644 pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap org.apache.httpcomponents maven-notice-plugin %{namedversion} JPP %{name}

%if 0
# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%endif

%if %with repolib
mkdir -p $RPM_BUILD_ROOT%{repodir}
mkdir -p $RPM_BUILD_ROOT%{repodirlib}
install -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{repodir}/component-info.xml
tag=`echo %{namedversion}-brew`
sed -i "s/@VERSION@/$tag/g" $RPM_BUILD_ROOT%{repodir}/component-info.xml
tag=`echo %{name}-%{version}-%{release} | sed 's|\.|_|g'`
sed -i "s/@TAG@/$tag/g" $RPM_BUILD_ROOT%{repodir}/component-info.xml
mkdir -p $RPM_BUILD_ROOT%{repodirsrc}
cp -p %{SOURCE0} $RPM_BUILD_ROOT%{repodirsrc}
cp -p %{PATCH0} $RPM_BUILD_ROOT%{repodirsrc}
cp -p $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar $RPM_BUILD_ROOT%{repodirlib}/%{name}.jar
cp -p $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom $RPM_BUILD_ROOT%{repodirlib}/%{name}.pom
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%{_javadir}*/%{name}-%{version}.jar
%{_javadir}*/%{name}.jar
%{_datadir}/maven2/poms/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}

%if 0
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%endif

%if %with repolib
%files repolib
%defattr(0644,root,root,0755)
%dir %{_javadir}*
%{_javadir}*/repository.jboss.com
%endif

%changelog
* Mon Dec 06 2010 David Walluck <dwalluck at redhat.com> 0:0.0.2-0.1
- release

--- NEW FILE: maven-notice-plugin-pom.patch ---
--- pom.xml.orig	2010-12-06 19:21:25.770327236 -0500
+++ pom.xml	2010-12-06 19:21:41.641851986 -0500
@@ -77,6 +77,11 @@
   <dependencies>
     <dependency>
       <groupId>org.apache.maven</groupId>
+      <artifactId>maven-model</artifactId>
+      <version>${maven.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
       <artifactId>maven-plugin-api</artifactId>
       <version>${maven.version}</version>
     </dependency>




More information about the JPackage-commits mailing list