/[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 192811 by gil, Wed Dec 21 00:38:33 2011 UTC revision 192812 by dmorgan, Sat Jan 7 01:46:20 2012 UTC
# Line 61  Requires:       maven Line 61  Requires:       maven
61  Requires:       mycila-parent-pom  Requires:       mycila-parent-pom
62  Requires:       xmltool  Requires:       xmltool
63    
 Requires(post):   jpackage-utils  
 Requires(postun): jpackage-utils  
   
64  %description  %description
65  maven-license-plugin is a Maven 2 plugin that help you managing license  maven-license-plugin is a Maven 2 plugin that help you managing license
66  headers in source files. Basically, when you are developing a project  headers in source files. Basically, when you are developing a project
# Line 73  This plugin lets you maintain the header Line 70  This plugin lets you maintain the header
70  header is present, generating a report and of course having the  header is present, generating a report and of course having the
71  possibility to update / reformat missing license headers.  possibility to update / reformat missing license headers.
72    
73    %files
74    %doc NOTICE.txt LICENSE.txt
75    %{_mavenpomdir}/JPP-%{name}.pom
76    %{_mavendepmapfragdir}/%{name}
77    %{_javadir}/%{name}.jar
78    
79    #--------------------------------------------------------------------
80    
81  %package javadoc  %package javadoc
82  Summary:        Javadocs for %{name}  Summary:        Javadocs for %{name}
# Line 84  BuildArch:      noarch Line 88  BuildArch:      noarch
88  %description javadoc  %description javadoc
89  This package contains the API documentation for %{name}.  This package contains the API documentation for %{name}.
90    
91    %pre javadoc
92    [ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
93    rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
94    
95    %files javadoc
96    %{_javadocdir}/%{name}
97    
98    #--------------------------------------------------------------------
99    
100  %prep  %prep
101  %setup -q -n %{name}  %setup -q -n %{name}
# Line 112  install -d -m 755 $RPM_BUILD_ROOT%{_mave Line 124  install -d -m 755 $RPM_BUILD_ROOT%{_mave
124  install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom  install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
125  %add_maven_depmap JPP-%{name}.pom %{name}.jar  %add_maven_depmap JPP-%{name}.pom %{name}.jar
126    
 %post  
 %update_maven_depmap  
   
 %postun  
 %update_maven_depmap  
   
 %files  
 %doc NOTICE.txt LICENSE.txt  
 %{_mavenpomdir}/JPP-%{name}.pom  
 %{_mavendepmapfragdir}/%{name}  
 %{_javadir}/%{name}.jar  
   
 %pre javadoc  
 [ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \  
 rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :  
   
 %files javadoc  
 %{_javadocdir}/%{name}  

Legend:
Removed from v.192811  
changed lines
  Added in v.192812

  ViewVC Help
Powered by ViewVC 1.1.30