[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/java_cup/devel .cvsignore,1.4,1.5 java_cup.spec,1.7,1.8



Author: gbenson

Update of /cvs/dist/rpms/java_cup/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv24043

Modified Files:
	.cvsignore java_cup.spec 
Log Message:
Nativify


Index: .cvsignore
===================================================================
RCS file: /cvs/dist/rpms/java_cup/devel/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- .cvsignore	21 Jun 2005 15:12:36 -0000	1.4
+++ .cvsignore	28 Jun 2005 11:47:44 -0000	1.5
@@ -1,4 +1,4 @@
 java_cup_v10k-RHCLEAN.tar.bz2
 java_cup-0.10
-noarch
+i386
 *.src.rpm


Index: java_cup.spec
===================================================================
RCS file: /cvs/dist/rpms/java_cup/devel/java_cup.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- java_cup.spec	21 Jun 2005 15:12:36 -0000	1.7
+++ java_cup.spec	28 Jun 2005 11:47:44 -0000	1.8
@@ -1,7 +1,7 @@
 %define name		java_cup
 %define version		0.10
 %define pkg_version	v10k
-%define release		0.k.1jpp_3fc
+%define release		0.k.1jpp_4fc
 %define section		free
 
 Name:		%{name}
@@ -16,10 +16,14 @@
 BuildRequires:	ant
 BuildRequires:  jpackage-utils >= 0:1.5
 Group: 		Development/Java
-Buildarch:	noarch
 Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
 # RHEL3 and FC2
 Obsoletes:	cup <= 0:v10k
+# libgcj aot-compiled native libraries
+BuildRequires:         gcc-java >= 4.0.0-0.43
+BuildRequires:         java-1.4.2-gcj-compat >= 1.4.2.0-40jpp_16rh
+Requires(post,postun): java-1.4.2-gcj-compat >= 1.4.2.0-40jpp_16rh
+ExclusiveArch:         %{ix86} x86_64 ppc alpha
 
 %description
 java_cup is a LALR Parser Generator for Java
@@ -49,6 +53,18 @@
 ant
 ant javadoc
 
+gcj-dbtool -n dist/lib/%{name}-%{version}.db 64
+for jar in %{name} %{name}-runtime; do
+    aot-compile \
+        dist/lib/$jar.jar \
+        dist/lib/lib$jar-%{version}.jar.so \
+        "$RPM_OPT_FLAGS -fPIC"
+    gcj-dbtool -f \
+        dist/lib/%{name}-%{version}.db \
+        dist/lib/$jar.jar \
+        %{_libdir}/lib$jar-%{version}.jar.so
+done
+
 %install
 # jar
 install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
@@ -57,6 +73,15 @@
 (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do \
 ln -sf ${jar} ${jar/-%{version}/}; done)
 
+# solibs
+install -d -m 755 $RPM_BUILD_ROOT%{_libdir}
+install -m 755 dist/lib/lib*.jar.so $RPM_BUILD_ROOT%{_libdir}
+
+# gcjdb
+gcjdbdir=`gcj-dbtool -p %{_libdir}`.d
+install -d -m 755 $RPM_BUILD_ROOT$gcjdbdir
+install -m 644 dist/lib/%{name}-%{version}.db $RPM_BUILD_ROOT$gcjdbdir
+
 # javadoc
 install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
 cp -pr dist/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
@@ -65,6 +90,12 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+/usr/bin/rebuild-gcj-db %{_libdir}
+
+%postun
+/usr/bin/rebuild-gcj-db %{_libdir}
+
 %post javadoc
 rm -f %{_javadocdir}/%{name}
 ln -s %{name}-%{version} %{_javadocdir}/%{name}
@@ -78,6 +109,8 @@
 %defattr(0644,root,root,0755)
 %doc README LICENSE CHANGELOG
 %{_javadir}/*
+%attr(0755,root,root) %{_libdir}/lib*.jar.so
+%{_libdir}/*/*/%{name}-%{version}.db
 
 %files manual
 %defattr(0644,root,root,0755)
@@ -89,6 +122,9 @@
 %ghost %doc %{_javadocdir}/%{name}
 
 %changelog
+* Tue Jun 28 2005 Gary Benson <gbenson redhat com> 1:0.10-0.k.1jpp_4fc
+- BC-compile.
+
 * Tue Jun 21 2005 Gary Benson <gbenson redhat com> 1:0.10-0.k.1jpp_3fc
 - Remove classes from the tarball.
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]