rpm spec file for "fakejava"

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



Interestingly, i just posted to the list a similar SPEC file.
look at the thread on CGI.pm.
 
I've attached my spec file for "fakejava" as well.  

It was a lot of trial and error to make it work.  None of the
documentation I could find was for modern versions of RPM, and IIRC the
documentation i did find for older versions was incorrect somehow.

I think I had to specify a source package, but i didn't have to
actually do anything with it.

I'm cc'ing the list on this so it makes it into the archives.  

On Thu, Jun 30, 2005 at 08:53:06AM -0700, Robert Hanson wrote:
> off list greetings!
> 
> would you please share that expertise you just learned with me individually
> or with the whole list please?
> 
> that is, if it doesnt take you too long can you detail and share your
> creation and how to use it etc that i may learn from it?
> 
> thanks!
> 
>  - rh
> 
> -----Original Message-----
> From: centos-bounces@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] On Behalf
> Of Dan Pritts
> Sent: Thursday, June 30, 2005 8:33 AM
> To: CentOS mailing list
> Subject: Re:  Re: Installing Dag's RPMs
> 
> On Tue, Jun 28, 2005 at 03:11:38PM -0700, dan.trainor wrote:
> > cryptic nature.  I've been doing a LOT of RPM exploration over the past
> > few weeks, and found the process of actually creating an RPM to be a
> > somewhat cumbersome and at times poorly documented system.  I don't want
> 
> Tell it, brother!
> 
> I spent three hours figuring out how to write a spec file to create
> an RPM that doesn't do anything other than tell the RPM database
> that such and such a capability is installed (some java app didn't
> think i have "java" since sun's rpms didn't tell RPM it was there).
> 
> ugh.
> 
> danno
> --
> dan pritts - systems administrator - internet2
> 734/352-4953 office        734/834-7224 mobile
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
> 


danno
--
dan pritts - systems administrator - internet2
734/352-4953 office        734/834-7224 mobile
-------------- next part --------------
%define name fakejava
%define version 1.4.2
%define release 1

Vendor: danno
Packager: danno
Distribution: dannoOS
URL: http://www.internet2.edu

BuildArchitectures: noarch

Summary: A fake package so that rpm thinks we have "java"
Name: %{name}
Version: %{version}
Release: %{release}
Group: internet2
Source: %{name}-%{version}.tar.gz
BuildRoot: /tmp/%{name}-%{version}
License: GPL

Provides: java = %{version}
Provides: jre = %{version}
Provides: jaas = %{version}
Provides: jsse = %{version}
Provides: j2sdk = %{version}
Provides: j2re = %{version}

%description
A fake package so that rpm thinks we have "java"

%prep

%setup

%build

%install

%clean
#/bin/rm fakejava-install-a-file-for-me

%files
#%defattr(0755,root,root)
#/fakejava-install-a-second-file

%pre

%post

%preun

%postun

%changelog

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux