rpmbuild openssl 1.0.1u with default openssl.spec failed

Posted on

I tried to create the rpm packages of openssl 1.0.1u through rpmbuild openssl.spec, but it failed in the end:

RPM build errors:
File not found by glob: /root/rpmbuild/BUILDROOT/openssl-1.0.1u-1.x86_64/usr/lib/.so

[root@192 SPECS]# ll /root/rpmbuild/BUILDROOT/openssl-1.0.1u-1.x86_64/usr
total 20
drwxr-xr-x 2 root root 4096 Jul 29 21:39 bin
drwxr-xr-x 3 root root 4096 Jul 29 21:39 include
drwxr-xr-x 4 root root 4096 Jul 29 21:39 lib64
drwxr-xr-x 6 root root 4096 Jul 29 21:38 man
drwxr-xr-x 3 root root 4096 Jul 29 21:39 share

My OS is RHEL 6.5, download openssl-1.0.1u.tar.gz from https://www.openssl.org.

I don't make any change in openssl.spec file.

What should I do?

Thanks.