Summary: Management tools and libraries relating to cryptography Name: openssl Version: 1.0.2f Release: 1%{?dist} License: OpenSSL URL: http://www.openssl.org Group: System Environment/Security Vendor: VMware, Inc. Distribution: Photon Source0: http://www.openssl.org/source/%{name}-%{version}.tar.gz %define sha1 openssl=2047c592a6e5a42bd37970bdb4a931428110a927 Patch0: c_rehash.patch Patch1: openssl-1.0.2f-ipv6apps.patch Requires: bash glibc libgcc %description The OpenSSL package contains management tools and libraries relating to cryptography. These are useful for providing cryptography functions to other packages, such as OpenSSH, email applications and web browsers (for accessing HTTPS sites). %package devel Summary: Development Libraries for openssl Group: Development/Libraries Requires: openssl = %{version}-%{release} %description devel Header files for doing development with openssl. %package perl Summary: openssl perl scripts Group: Applications/Internet Requires: perl Requires: openssl = %{version}-%{release} %description perl Perl scripts that convert certificates and keys to various formats. %package c_rehash Summary: openssl perl scripts Group: Applications/Internet Requires: perl Requires: perl-DBI Requires: perl-DBIx-Simple Requires: perl-DBD-SQLite Requires: openssl = %{version}-%{release} %description c_rehash Perl scripts that convert certificates and keys to various formats. %prep %setup -q %patch0 -p1 %patch1 -p1 %build export CFLAGS="%{optflags}" ./config \ --prefix=%{_prefix} \ --libdir=lib \ --openssldir=/%{_sysconfdir}/ssl \ shared \ zlib-dynamic \ -Wa,--noexecstack "${CFLAGS}" "${LDFLAGS}" # does not support -j yet make %install [ %{buildroot} != "/"] && rm -rf %{buildroot}/* make INSTALL_PREFIX=%{buildroot} MANDIR=/usr/share/man MANSUFFIX=ssl install ln -sf %{_libdir}/libssl.so.1.0.0 %{buildroot}%{_libdir}/libssl.so.1.0.2 ln -sf %{_libdir}/libcrypto.so.1.0.0 %{buildroot}%{_libdir}/libcrypto.so.1.0.2 %check make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf %{buildroot}/* %files %defattr(-,root,root) %{_sysconfdir}/ssl/certs %{_sysconfdir}/ssl/misc/CA.sh %{_sysconfdir}/ssl/misc/c_hash %{_sysconfdir}/ssl/misc/c_info %{_sysconfdir}/ssl/misc/c_issuer %{_sysconfdir}/ssl/misc/c_name %{_sysconfdir}/ssl/openssl.cnf %{_sysconfdir}/ssl/private %{_bindir}/openssl %{_libdir}/*.so.* %{_libdir}/engines/* %{_mandir}/man1/* %{_mandir}/man3/* %{_mandir}/man5/* %{_mandir}/man7/* %files devel %{_includedir}/* %{_mandir}/man3*/* %{_libdir}/pkgconfig/*.pc %{_libdir}/*.a %{_libdir}/*.so %files perl /%{_sysconfdir}/ssl/misc/tsget /%{_sysconfdir}/ssl/misc/CA.pl %files c_rehash /%{_bindir}/c_rehash %changelog * Wed Feb 03 2016 Xiaolin Li <xiaolinl@vmware.com> 1.0.2f-1 - Update to version 1.0.2f * Mon Feb 01 2016 Anish Swaminathan <anishs@vmware.com> 1.0.2e-3 - Add symlink for libcrypto * Fri Jan 15 2016 Xiaolin Li <xiaolinl@vmware.com> 1.0.2e-2 - Move c_rehash to a seperate subpackage. * Fri Dec 04 2015 Xiaolin Li <xiaolinl@vmware.com> 1.0.2e-1 - Update to 1.0.2e. * Wed Dec 02 2015 Anish Swaminathan <anishs@vmware.com> 1.0.2d-3 - Follow similar logging to previous openssl versions for c_rehash. * Fri Aug 07 2015 Sharath George <sharathg@vmware.com> 1.0.2d-2 - Split perl scripts to a different package. * Fri Jul 24 2015 Chang Lee <changlee@vmware.com> 1.0.2d-1 - Update new version. * Wed Mar 25 2015 Divya Thaluru <dthaluru@vmware.com> 1.0.2a-1 - Initial build. First version