[CentOS] RPMs

Sat Mar 3 15:52:08 UTC 2007
Mário Gamito <gamito at gmail.com>


I think my problem is related to the way i make my RPMs (i'm newbie at 

Two things:

1) the generated RPMs are only 1,5 kb size. That's inpossible.

2) The rpmbuild -ba zbr.spec indeed installs the software in the 
building stage. That's odd, isn't it ?

Following my signature is an openssl.spec file

Any help would be appreciated.

Warm regards,
Mário Gamito
Summary: OpenSSL
Name: openssl
Version: 0.9.8b
Release: 6
Source0: %{name}-%{version}.tar.gz
License: GPL
Group: Applications/Communications
OpenSSL provides encryption for Apache, SMTP, POP3 and IMAP.
%setup -q
./config no-idea shared
make depend
make install

echo "\n \n Let's create the CA and the key for Apache/HTTPS: \n \n"

/usr/local/ssl/bin/openssl genrsa -des3 -out /usr/local/ssl/bin/ca.key 1024
/usr/local/ssl/bin/openssl req -new -x509 -days 365 -key 
/usr/local/ssl/bin/ca.key -out /usr/local/ssl/bin/ca.crt
/usr/local/ssl/bin/openssl genrsa -des3 -out 
/usr/local/ssl/bin/server.key 1024
/usr/local/ssl/bin/openssl req -new -key /usr/local/ssl/bin/server.key 
-out /usr/local/ssl/bin/server.csr

echo "\n \n Now for POP3/SSL and IMAP/SSL: \n \n"

/usr/local/ssl/bin/openssl req -new -x509 -days 365 -nodes -out 
/usr/local/ssl/bin/imapd.pem -keyout /usr/local/ssl/bin/imapd.pem || cleanup
/usr/local/ssl/bin/openssl gendh >> /usr/local/ssl/bin/imapd.pem || cleanout
/usr/local/ssl/bin/openssl x509 -subject -dates -fingerprint -noout -in 
/usr/local/ssl/bin/imapd.pem || cleanup

cp /usr/local/ssl/lib/libcrypto.so.0.9.8 /lib

* Fri Feb 02 2007 Mário Gamito <gamito at gmail.comm> 0.9.8.b-2
- fixed to prompt for the CA and the server.key for Apache and cert for 

* Fri Feb 02 2007 Mário Gamito <gamito at gmail.comm> 0.9.8.b-3
- fixed to place the CA and server files in the right place

* Fri Feb 02 2007 Mário Gamito <gamito at gmail.comm> 0.9.8.b-4
- copied libcrypto.so.0.9.8 to /lib. qmail-ldap will need that later.