/[packages]/cauldron/maven-license-plugin/current/SPECS/maven-license-plugin.spec
ViewVC logotype

Diff of /cauldron/maven-license-plugin/current/SPECS/maven-license-plugin.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 185214 by dmorgan, Wed Apr 27 23:48:56 2011 UTC revision 185215 by gil, Wed Dec 21 00:38:33 2011 UTC
# Line 1  Line 1 
1  Name:           maven-license-plugin  Name:           maven-license-plugin
2  Version:        1.8.0  Version:        1.9.0
3  Release:        %mkrel 4  Release:        %mkrel 1
4  Summary:        Maven plugin to update header licenses of source files  Summary:        Maven plugin to update header licenses of source files
5    
6  Group:          Development/Java  Group:          Development/Java
# Line 8  License:        ASL 2.0 Line 8  License:        ASL 2.0
8  URL:            http://code.google.com/p/maven-license-plugin  URL:            http://code.google.com/p/maven-license-plugin
9  ### upstream only provides binaries or source without build scripts  ### upstream only provides binaries or source without build scripts
10  # tar creation instructions  # tar creation instructions
11  # svn export http://maven-license-plugin.googlecode.com/svn/tags/maven-license-plugin-1.8.0 maven-license-plugin  # svn export http://maven-license-plugin.googlecode.com/svn/tags/maven-license-plugin-1.9.0 maven-license-plugin
12  # tar cfJ maven-license-plugin-1.8.0.tar.xz maven-license-plugin  # tar cfJ maven-license-plugin-1.9.0.tar.xz maven-license-plugin
13  Source0:        %{name}-%{version}.tar.xz  Source0:        %{name}-%{version}.tar.xz
14  # custom depmap needed to workaround missing xml-commons-apis poms  # custom depmap needed to workaround missing xml-commons-apis poms
15  Source1:        maven-license-plugin-jpp-depmap.xml  #Source1:        maven-license-plugin-jpp-depmap.xml
16  # remove testng dep (tests are skipped) and maven-license-plugin call  # remove testng dep (tests are skipped) and maven-license-plugin call
17  Patch0:         001-mavenlicenseplugin-fixbuild.patch  # add maven 3 support
18    Patch0:         maven-license-plugin-1.9.0-fixbuild.patch
19    
20  BuildArch:      noarch  BuildArch:      noarch
21    
22  BuildRequires:  java-devel  BuildRequires:  java-devel
23  BuildRequires:  jpackage-utils  BuildRequires:  jpackage-utils
24  BuildRequires:  maven2  # pom BR
25    BuildRequires:  mycila-parent-pom
26    BuildRequires:  apache-resource-bundles
27    BuildRequires:  maven
28  BuildRequires:  maven-assembly-plugin  BuildRequires:  maven-assembly-plugin
29    BuildRequires:  maven-clean-plugin
30    BuildRequires:  maven-compiler-plugin
31    BuildRequires:  maven-dependency-plugin
32  BuildRequires:  maven-deploy-plugin  BuildRequires:  maven-deploy-plugin
33    BuildRequires:  maven-install-plugin
34  BuildRequires:  maven-jar-plugin  BuildRequires:  maven-jar-plugin
35  BuildRequires:  maven-javadoc-plugin  BuildRequires:  maven-javadoc-plugin
36    BuildRequires:  maven-plugin-plugin
37    BuildRequires:  maven-release-plugin
38    BuildRequires:  maven-remote-resources-plugin
39  BuildRequires:  maven-source-plugin  BuildRequires:  maven-source-plugin
40    BuildRequires:  maven-surefire-plugin
41    BuildRequires:  plexus-utils
42    BuildRequires:  xmltool
43    # old BR
44  BuildRequires:  maven-changelog-plugin  BuildRequires:  maven-changelog-plugin
45  BuildRequires:  maven-changes-plugin  BuildRequires:  maven-changes-plugin
 BuildRequires:  maven-clean-plugin  
 BuildRequires:  maven-compiler-plugin  
 BuildRequires:  maven-dependency-plugin  
46  BuildRequires:  maven-eclipse-plugin  BuildRequires:  maven-eclipse-plugin
47  BuildRequires:  maven-help-plugin  BuildRequires:  maven-help-plugin
48  BuildRequires:  maven-idea-plugin  BuildRequires:  maven-idea-plugin
49  BuildRequires:  maven-install-plugin  BuildRequires:  maven-plugin-testing-harness
 BuildRequires:  maven-plugin-plugin  
50  BuildRequires:  maven-pmd-plugin  BuildRequires:  maven-pmd-plugin
51  BuildRequires:  maven-resources-plugin  BuildRequires:  maven-resources-plugin
52  BuildRequires:  maven-repository-plugin  BuildRequires:  maven-repository-plugin
 BuildRequires:  maven-remote-resources-plugin  
 BuildRequires:  maven-site-plugin  
 BuildRequires:  maven-surefire-plugin  
53  BuildRequires:  maven-shared  BuildRequires:  maven-shared
54  BuildRequires:  maven-plugin-testing-harness  BuildRequires:  maven-site-plugin
 BuildRequires:  maven-release-plugin  
 BuildRequires:  plexus-utils  
55  BuildRequires:  plexus-classworlds  BuildRequires:  plexus-classworlds
56  BuildRequires:  xml-commons-apis  BuildRequires:  xml-commons-apis
 BuildRequires:  xmltool  
57    
58  Requires:       java  Requires:       java
59  Requires:       jpackage-utils  Requires:       jpackage-utils
60  Requires:       maven2  Requires:       maven
61    Requires:       mycila-parent-pom
62  Requires:       xmltool  Requires:       xmltool
63    
64  Requires(post):   jpackage-utils  Requires(post):   jpackage-utils
# Line 80  This package contains the API documentat Line 87  This package contains the API documentat
87    
88  %prep  %prep
89  %setup -q -n %{name}  %setup -q -n %{name}
90  %patch0 -p1  
91    %patch0 -p0
92    
93  # fix EOL  # fix EOL
94  sed -i 's/\r//' LICENSE.txt  sed -i 's/\r//' LICENSE.txt
95  sed -i 's/\r//' NOTICE.txt  sed -i 's/\r//' NOTICE.txt
96    
   
97  %build  %build
 export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository  
 mkdir -p $MAVEN_REPO_LOCAL  
   
 mvn-jpp \  
   -e \  
   -Dmaven.repo.local=$MAVEN_REPO_LOCAL \  
   -Dmaven2.jpp.depmap.file=%{SOURCE1} \  
   -Dmaven.test.skip=true \  
   install javadoc:aggregate  
98    
99    mvn-rpmbuild -e -Dmaven.test.skip=true install javadoc:aggregate
100    
101  %install  %install
102  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
103    
104  mkdir -p $RPM_BUILD_ROOT%{_javadir}  mkdir -p $RPM_BUILD_ROOT%{_javadir}
105  install -Dp -m 644 target/%{name}-%{version}.jar \  install -Dp -m 644 target/%{name}-%{version}.jar \
106    $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar    $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
 (cd $RPM_BUILD_ROOT%{_javadir} && ln -sf %{name}-%{version}.jar %{name}.jar)  
107    
108  mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}  mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
109  cp -rp target/site/apidocs/  \  cp -rp target/site/apidocs/  $RPM_BUILD_ROOT%{_javadocdir}/%{name}
   $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}  
 (cd $RPM_BUILD_ROOT%{_javadocdir} && ln -sf %{name}-%{version} %{name})  
110    
111  install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}  install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
112  install -pm 644 pom.xml  \  install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
113    $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom  %add_maven_depmap JPP-%{name}.pom %{name}.jar
   
 %add_to_maven_depmap com.mycila.maven-license-plugin %{name} %{version} JPP %{name}  
   
   
 %clean  
 rm -rf $RPM_BUILD_ROOT  
   
   
 %files  
 %defattr(-,root,root,-)  
 %doc NOTICE.txt LICENSE.txt  
 %{_mavenpomdir}/*  
 %{_mavendepmapfragdir}/*  
 %{_javadir}/*  
   
   
 %files javadoc  
 %defattr(-,root,root,-)  
 %{_javadocdir}/%{name}  
 %{_javadocdir}/%{name}-%{version}  
   
114    
115  %post  %post
116  %update_maven_depmap  %update_maven_depmap
# Line 141  rm -rf $RPM_BUILD_ROOT Line 118  rm -rf $RPM_BUILD_ROOT
118  %postun  %postun
119  %update_maven_depmap  %update_maven_depmap
120    
121    %files
122    %doc NOTICE.txt LICENSE.txt
123    %{_mavenpomdir}/JPP-%{name}.pom
124    %{_mavendepmapfragdir}/%{name}
125    %{_javadir}/%{name}.jar
126    
127    %pre javadoc
128    [ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
129    rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
130    
131    %files javadoc
132    %{_javadocdir}/%{name}

Legend:
Removed from v.185214  
changed lines
  Added in v.185215

  ViewVC Help
Powered by ViewVC 1.1.30