[Jpackage-commits] dist/hawtjni/JPP-6 hawtjni.spec,1.8,1.9

David Walluck david at ryu.zarb.org
Tue Dec 21 04:14:13 CET 2010


Update of /home/projects/jpackage/cvs/dist/hawtjni/JPP-6
In directory ryu.zarb.org:/tmp/cvs-serv18387

Modified Files:
	hawtjni.spec 
Log Message:
- split out native example

Index: hawtjni.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/hawtjni/JPP-6/hawtjni.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -C 2 -d -r1.8 -r1.9
*** hawtjni.spec	21 Dec 2010 03:08:27 -0000	1.8
--- hawtjni.spec	21 Dec 2010 03:14:11 -0000	1.9
***************
*** 44,47 ****
--- 44,49 ----
  %endif
  
+ %global arch_name %{_target_os}_%{_target_cpu}
+ 
  %define section free
  
***************
*** 65,68 ****
--- 67,71 ----
  Requires(post): jpackage-utils
  Requires(postun): jpackage-utils
+ Requires:       %{name}-example-native = %{epoch}:%{version}-%{release}
  Requires:       jpackage-utils
  Requires:       autoconf
***************
*** 91,94 ****
--- 94,106 ----
  project.
  
+ %package example-%{arch_name}
+ Summary:        Native jar for %{name}
+ Group:          Development/Documentation
+ Provides:       %{name}-example-native = %{epoch}:%{version}-%{release}
+ Requires:       %{name} = %{epoch}:%{version}-%{release}
+ 
+ %description example-%{arch_name}
+ %{summary}.
+ 
  %package javadoc
  Summary:        Javadoc for %{name}
***************
*** 211,216 ****
  %defattr(0644,root,root,0755)
  %if %with example
- %{_javadir}*/hawtjni-example-%{version}-linux*.jar
- %{_javadir}*/hawtjni-example-linux*.jar
  %{_javadir}*/hawtjni-example-%{version}-native-src.zip
  %{_javadir}*/hawtjni-example-native-src.zip
--- 223,226 ----
***************
*** 233,236 ****
--- 243,253 ----
  %{_mavendepmapfragdir}/%{name}
  
+ %if %with example
+ %files example-%{arch_name}
+ %defattr(0644,root,root,0755)
+ %{_javadir}*/hawtjni-example-%{version}-linux*.jar
+ %{_javadir}*/hawtjni-example-linux*.jar
+ %endif
+ 
  %files javadoc
  %defattr(0644,root,root,0755)




More information about the JPackage-commits mailing list