Comment

Above in this comment thread:
Fedora Core 2
    Core 3
    

Comment Building Plone2-2.0.3-2.src.rpm on Fedora Core 3

Posted by Anonymous User at Wed 09. Feb 2005 08:13

Thanks to the kind folks here, I was able get the source rpm built. rpm -ivh Plone2-2.0.3-2.src.rpm installed a bunch of items.

Edit the spec file... vi /usr/src/redhat/SPECS/Plone2.spec

# detect fedora core versions

%if %is_fc

%define is_fc3 %(grep -q Heidelberg /etc/fedora-release && echo 1 || echo 0) <<-------- added this line

%define is_fc2 %(grep -q Tettnang /etc/fedora-release && echo 1 || echo 0)

%define is_fc1 %(grep -q Yarrow /etc/fedora-release && echo 1 || echo 0)

%define is_rh 0

%else

%define is_fc1 0

%define is_fc2 0

%define is_fc3 0 <<-------- added this line

%endif

%if %is_fc2

%define pythonrpm python

%define pythondevelrpm python-devel

%define distro Fedora Core

%endif

%if %is_fc3 <<--------------added this line

%define pythonrpm python <<--------------added this line

%define pythondevelrpm python-devel <<--------------added this line

%define distro Fedora Core <<--------------added this line

%endif <<--------------added this line

The rpm built fine after that.

rpmbuild -bb Plone2.spec

Thomas@tecsplace.com


Copyright Simon Eisenmann http://longsleep.org/ - License under Creative Commons License - valid: xhtml, css

powered by icoya