rpms/jpcap/devel jpcap.spec,1.1,1.2

Patrick Dignan dignan at fedoraproject.org
Tue Jan 27 17:10:26 UTC 2009


Author: dignan

Update of /cvs/pkgs/rpms/jpcap/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18627

Modified Files:
	jpcap.spec 
Log Message:
Fixed the .jar file to use System.load() and the exact path instead of System.loadLibrary


Index: jpcap.spec
===================================================================
RCS file: /cvs/pkgs/rpms/jpcap/devel/jpcap.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- jpcap.spec	26 Jan 2009 03:58:36 -0000	1.1
+++ jpcap.spec	27 Jan 2009 17:09:56 -0000	1.2
@@ -7,7 +7,7 @@
 
 Name: jpcap
 Version: 0.7
-Release: 5%{?dist}
+Release: 6%{?dist}
 Summary: A Java library for capturing and sending network packets
 
 Group: Development/Libraries
@@ -35,6 +35,8 @@
 
 %prep
 %setup -q
+sed -i 's:System.loadLibrary("jpcap"):System.load("'%{_libdir}/%{name}/lib%{name}.so'"):g' src/java/%{name}/JpcapWriter.java
+sed -i 's:System.loadLibrary("jpcap"):System.load("'%{_libdir}/%{name}/lib%{name}.so'"):g' src/java/%{name}/JpcapCaptor.java
 rm -rf lib/*
 dos2unix ChangeLog
 dos2unix README
@@ -75,6 +77,8 @@
 
 
 %changelog
+* Tue Jan 27 2009 Patrick Dignan <dignan.patrick at, gmail.com> 0.7-6
+- Uses sed to change System.loadLibrary() to System.load and the exact path of the .so file.
 * Tue Jan 06 2009 Patrick Dignan <jpdota at, sourceforge.net> 0.7-5
 - Fixed End-of-line problems in README, ChangeLog, doc/javadoc/stylesheet.css, and doc/javadoc/package-list
 - Fixed Directory ownership of _libdir/name (macros)




More information about the fedora-extras-commits mailing list