[CentOS] RPMs

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

Hi,

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

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
Source: 
http://www.mirrorservice.org/sites/ftp.openssl.org/source/openssl-0.9.8b.tar.gz
Group: Applications/Communications
%description
OpenSSL provides encryption for Apache, SMTP, POP3 and IMAP.
%prep
%setup -q
%build
./config no-idea shared
make depend
make
%install
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



%changelog
* 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 
POP3/IMAP

* 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.