2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-27 03:39:11 +00:00
xcat-dep/perl-Crypt-SSLeay/Build-notes
2018-11-23 15:20:55 +08:00

27 lines
1.1 KiB
Plaintext

1. Download Crypt-SSLeay-0.57.tar.gz from CPAN to /tmp directory.
2. Unwrap the tar file in a temporary directory. (tar -zxvf)
3. Copy Crypt-SSLeay.spec to /tmp/Crypt-SSLeay-0.57 (.spec taken from AIX version)
4. Modify the spec file, if needed.
a. Change buildarch to ppc64 for ppc64 platform, and x84_64 for x86_64 platform
b. Add option --default when "%{__perl} Makefile.PL"
c. Un-comment following script
-----------------------------
# SuSE Linux
#if [ -e /etc/SuSE-release -o -e /etc/UnitedLinux-release ]
#then
# %{__mkdir_p} %{buildroot}/var/adm/perl-modules
# %{__cat} `find %{buildroot} -name "perllocal.pod"` \
# | %{__sed} -e s+%{buildroot}++g \
# > %{buildroot}/var/adm/perl-modules/%{name}
#fi
-----------------------------
5. From /tmp directory run: tar -czvf Crypt-SSLeay-0.57.tar.gz Crypt-SSLeay-0.57
6. cp /tmp/Crypt-SSLeay-0.57.tar.gz /usr/src/packages/SOURCES
7. Run "rpmbuild -ta /usr/src//packages/SOURCES/Crypt-SSLeay-0.57.tar.gz" which creates /usr/src/packages/RPMS/ppc64/perl-Crypt-SSLeay-0.57-1.ppc64.rpm
For RHEL 8, run "rpmbuild --rebuild perl-Crypt-SSLeay-0.72-20.fc29.src.rpm".