-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

>> we usually re-package SunJDK with jpackage and put it in our own repo,
>> then it is simply a matter of package installation. this makes also
>> updating etc. a lot easier.
>>
> 
> Is there any good HOWTO you can recommend, or spec files you can
> share?

not good but a beginning: http://www.jpackage.org/nosrc.php

The spec files you find on the net in the nosrc packages are sufficient.

* Install jpackage-utils with yum
* Get the latest binary java sdk from Oracle. Put this in ~/rpmbuild/SOURCES
* Get the corresponding nosrc rpm from jpackage. Put this in
~/rpmbuild/SRPMS
* Rebuild the SRPM: rpmbuild -ra
~/rpmbuild/SRPMS/java-1.6.0-sun-$versionjpp.nosrc.rpm

Oh and there might be a little x86_64 required, which goes something
like this:

x86_64 fix:
- -----------

Near the top of your spec file, add this:

 %define _use_internal_dependency_generator 0
 %define our_find_requires %{_builddir}/%{name}-%{version}/find_requires

You may need to alter "%{name}-%{version}" to be the name of the
directory your package source gets unpacked into.
At the end of the %prep section of your spec, add this:

 # Kludge to remove bogus odbc dependencies
 cat <<EOF >%{our_find_requires}
 #!/bin/sh
 echo unixODBC
 exec %{__find_requires} | /bin/egrep -v '^(libodbc(inst)?\.so)$'
 exit 0
 EOF
 chmod +x %{our_find_requires}
 %define __find_requires %{our_find_requires}

But that was 2-3 years ago dunno if it still required.

cheers pete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwzQsEACgkQbwltcAfKi39ZWwCfZ+kWfVmSROfcPCkei/19JfuY
1IIAn0jlbDCXTxUBwlLX0Wt6uSBmynlK
=r9QS
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to