/[packages]/updates/3/hawtjni/current/SPECS/hawtjni.spec
ViewVC logotype

Diff of /updates/3/hawtjni/current/SPECS/hawtjni.spec

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

revision 793486 by umeabot, Wed May 22 00:00:21 2013 UTC revision 793487 by luigiwalser, Sun Oct 26 15:22:47 2014 UTC
# Line 1  Line 1 
1  Name:             hawtjni  Name:             hawtjni
2  Version:          1.6  Version:          1.9
3  Release:          %mkrel 1  Release:          %mkrel 1
4  Summary:          Code generator that produces the JNI code  Summary:          Code generator that produces the JNI code
5  Group:            Development/Java  Group:            Development/Java
6  License:          ASL 2.0 and EPL and BSD  License:          ASL 2.0 and EPL and BSD
7  URL:              http://hawtjni.fusesource.org/  URL:              http://hawtjni.fusesource.org/
8    
9  # git clone git://github.com/fusesource/hawtjni.git  Source0:          https://github.com/fusesource/hawtjni/archive/hawtjni-project-%{version}.tar.gz
 # cd hawtjni && git archive --format=tar --prefix=hawtjni-1.6/ hawtjni-project-1.6 | xz > hawtjni-1.6.tar.xz  
 Source0:          %{name}-%{version}.tar.xz  
10  Patch0:           0001-Fix-shading-and-remove-unneeded-modules.patch  Patch0:           0001-Fix-shading-and-remove-unneeded-modules.patch
11  Patch1:           0002-Fix-xbean-compatibility.patch  Patch1:           0002-Fix-xbean-compatibility.patch
12  Patch2:           0003-Remove-plexus-maven-plugin-dependency.patch  Patch2:           0003-Remove-plexus-maven-plugin-dependency.patch
# Line 16  Patch3:           0004-Remove-eclipse-pl Line 14  Patch3:           0004-Remove-eclipse-pl
14    
15  BuildArch:        noarch  BuildArch:        noarch
16    
17  BuildRequires:    jpackage-utils  BuildRequires:    maven-local
 BuildRequires:    java-devel  
 BuildRequires:    maven  
18  BuildRequires:    maven-compiler-plugin  BuildRequires:    maven-compiler-plugin
 BuildRequires:    maven-idea-plugin  
19  BuildRequires:    maven-plugin-plugin  BuildRequires:    maven-plugin-plugin
20  BuildRequires:    maven-surefire-report-plugin  BuildRequires:    maven-surefire-report-plugin
21  BuildRequires:    maven-project-info-reports-plugin  BuildRequires:    maven-project-info-reports-plugin
# Line 35  BuildRequires:    junit4 Line 30  BuildRequires:    junit4
30  BuildRequires:    fusesource-pom  BuildRequires:    fusesource-pom
31  BuildRequires:    xbean  BuildRequires:    xbean
32    
 Requires:         java  
 Requires:         jpackage-utils  
 Requires:         xbean  
 Requires:         apache-commons-cli  
 Requires:         objectweb-asm  
   
33  %description  %description
34  HawtJNI is a code generator that produces the JNI code needed to  HawtJNI is a code generator that produces the JNI code needed to
35  implement java native methods. It is based on the jnigen code generator  implement java native methods. It is based on the jnigen code generator
# Line 50  JNI code which powers the eclipse platfo Line 39  JNI code which powers the eclipse platfo
39  %package javadoc  %package javadoc
40  Summary:          Javadocs for %{name}  Summary:          Javadocs for %{name}
41  Group:            Documentation  Group:            Documentation
 Requires:         jpackage-utils  
42    
43  %description javadoc  %description javadoc
44  This package contains the API documentation for %{name}.  This package contains the API documentation for %{name}.
45    
46  %package -n maven-%{name}-plugin  %package -n maven-hawtjni-plugin
47  Summary:          Use HawtJNI from a maven plugin  Summary:          Use HawtJNI from a maven plugin
48  Group:            Development/Java  Group:            Development/Java
 Requires:         maven  
 Requires:         plexus-utils  
 Requires:         plexus-interpolation  
 Requires:         maven-archiver  
 Requires:         plexus-archiver  
 Requires:         plexus-io  
49  Requires:         hawtjni = %{version}-%{release}  Requires:         hawtjni = %{version}-%{release}
50    
51  %description -n maven-%{name}-plugin  %description -n maven-%{name}-plugin
52  This package allows to use HawtJNI from a maven plugin.  This package allows to use HawtJNI from a maven plugin.
53    
54  %prep  %prep
55  %setup -q  %setup -q -n hawtjni-hawtjni-project-%{version}
56    
57  %patch0 -p1  %patch0 -p1
58  %patch1 -p1  %patch1 -p1
59  %patch2 -p1  %patch2 -p1
60  %patch3 -p1  %patch3 -p1
61    
62    # Ready to replace patch0
63    # %pom_disable_module hawtjni-example
64    # %pom_disable_module hawtjni-website
65    # %pom_add_dep "org.apache.maven:maven-compat:3.0.3" maven-hawtjni-plugin/pom.xml
66    # %pom_remove_plugin ":maven-shade-plugin" hawtjni-generator/pom.xml
67    
68    %mvn_package ":maven-hawtjni-plugin" maven-plugin
69    
70  %build  %build
71  mvn-rpmbuild install javadoc:aggregate  %mvn_build
72    
73  %install  %install
74  # JAR  %mvn_install
75  mkdir -p $RPM_BUILD_ROOT%{_javadir}  
76  cp -p %{name}-generator/target/%{name}-generator-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-generator.jar  %files -f .mfiles
77  cp -p %{name}-runtime/target/%{name}-runtime-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-runtime.jar  %dir %{_javadir}/%{name}
 cp -p maven-%{name}-plugin/target/maven-%{name}-plugin-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/maven-%{name}-plugin.jar  
   
 # JAVADOC  
 mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}  
 cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}  
   
 # POM  
 install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}  
 install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-pom.pom  
 install -pm 644 %{name}-generator/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-generator.pom  
 install -pm 644 %{name}-runtime/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-runtime.pom  
 install -pm 644 maven-%{name}-plugin/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-maven-%{name}-plugin.pom  
   
 # DEPMAP  
 %add_maven_depmap JPP-%{name}-pom.pom  
 %add_maven_depmap JPP-%{name}-generator.pom %{name}-generator.jar  
 %add_maven_depmap JPP-%{name}-runtime.pom %{name}-runtime.jar  
 %add_maven_depmap JPP-maven-%{name}-plugin.pom maven-%{name}-plugin.jar  
   
 %files  
 %{_mavenpomdir}/*  
 %{_mavendepmapfragdir}/*  
 %{_javadir}/*  
78  %doc readme.md license.txt changelog.md  %doc readme.md license.txt changelog.md
 %exclude %{_mavenpomdir}/JPP-maven-%{name}-plugin.pom  
 %exclude %{_javadir}/maven-%{name}-plugin.jar  
79    
80  %files javadoc  %files javadoc -f .mfiles-javadoc
 %{_javadocdir}/%{name}  
81  %doc license.txt  %doc license.txt
82    
83  %files -n maven-%{name}-plugin  %files -n maven-hawtjni-plugin -f .mfiles-maven-plugin
84  %{_mavenpomdir}/JPP-maven-%{name}-plugin.pom  %doc license.txt
 %{_javadir}/maven-%{name}-plugin.jar  
   
85    

Legend:
Removed from v.793486  
changed lines
  Added in v.793487

  ViewVC Help
Powered by ViewVC 1.1.30