I took your spec file as a starting point, but I did make a some changes I 
thought enhance and clarify things a bit more. The good news is that spec file 
is much cleaner, the bad news is that in some cases (Suse) you need a 
.rpmmacros 
files in your home directory with at least one entry (%_topdir). This appears 
to 
be required on Suse systems but not on Fedora and Red Hat systems. The entry 
points to the local RPM build area. See the commited readme file in the trunk.

You also might need a %_mandir entry in the .rpmmacros file. This is needed if 
your system stores man pages in some place besides /usr/share/man. I found a 
SLES 10 system that stores man pages in /usr/man and I had to add the %_mandir 
macro entry to point to that location in the .rpmmacros file.

RPMs are now built in your home directory in a subdirectory called rpmbuild. 
This is where the RPM build area is created and where you should point the 
%_topdir if the build process cannot find the area. The directory is cleaned 
and 
recreated at the start of every ooRexx RPM build (when you run make rpm).

Let me know how all this works for you.

David Ashley

On 09/24/2010 08:32 AM, Erico Mendonca wrote:
>>>> On 9/23/2010 at 05:53 PM, in message<[email protected]>, David 
>>>> Ashley
> <[email protected]>  wrote:
>    >  All -
>>
>> Although not yet commited, I am playing around with the RPM spec file for
>> ooRexx. I have added some new macros to the file that create additional
>> information in the name of the RPM. A typical RPM name produced by these
>> macros
>> looks like this:
>>
>>       ooRexx-4.2.0-6212.fedora13.x86_64.rpm
>>
>> The format is:
>>
>>       ooRexx-<version>-<svn revision>.<os name&  version>.<architecture>.rpm
>>
> Very nice, this makes things much easier to manage. Are you using something 
> similar to this?
>
> %define _rel 5896
> %define _release %{_rel}
>
> %if 0%{?suse_version}
> %define _suse_prefix %(grep -q "SUSE Linux Enterprise Server" 
> /etc/SuSE-release&&  echo sles || echo suse)
> %define _release %{_rel}.%{_suse_prefix}%{suse_version}
> %endif
>
> See the patch I submitted previously.
>
>
>
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
> Create new apps&  games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to