summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDariusz Michaluk <d.michaluk@samsung.com>2019-06-05 16:10:59 +0200
committerDariusz Michaluk <d.michaluk@samsung.com>2019-06-07 12:55:34 +0200
commita47da67cfe68e4a7b1c0b546bdcf71004ba703b1 (patch)
tree651f5d29c818e3b86b88a561d46c9190aedede73
parentdb415afe12eb958f9782d4cf0a2f5e6315614650 (diff)
downloadopenssl-a47da67cfe68e4a7b1c0b546bdcf71004ba703b1.tar.gz
openssl-a47da67cfe68e4a7b1c0b546bdcf71004ba703b1.tar.bz2
openssl-a47da67cfe68e4a7b1c0b546bdcf71004ba703b1.zip
- remove openssl-doc and openssl-misc - libopenssl-devel conflicts with libopenssl1.1-devel - openssl requires openssl1.1 Change-Id: Ibb053dafb1aa7e5800b28e99da3df0b598834861
-rw-r--r--packaging/openssl.spec124
1 files changed, 40 insertions, 84 deletions
diff --git a/packaging/openssl.spec b/packaging/openssl.spec
index 2745172..074e044 100644
--- a/packaging/openssl.spec
+++ b/packaging/openssl.spec
@@ -1,16 +1,15 @@
%define _unpackaged_files_terminate_build 0
-Release: 1
-
%define openssldir %{_sysconfdir}/ssl
-Summary: Secure Sockets Layer and cryptography libraries and tools
-Name: openssl
-Version: 1.0.2s
-Source0: ftp://ftp.openssl.org/source/%{name}-%{version}.tar.gz
-License: OpenSSL and Apache-2.0 and BSD-3-Clause
-Group: Security/Crypto Libraries
-Provides: SSL
-URL: http://www.openssl.org/
+Summary: Secure Sockets Layer and cryptography libraries and tools
+Name: openssl
+Version: 1.0.2s
+Release: 0
+License: OpenSSL and Apache-2.0 and BSD-3-Clause
+Group: Security/Crypto Libraries
+Url: https://www.openssl.org/
+Source0: ftp://ftp.openssl.org/source/%{name}-%{version}.tar.gz
+Requires: openssl1.1
%description
The OpenSSL Project is a collaborative effort to develop a robust,
@@ -30,19 +29,21 @@ This package contains the base OpenSSL cryptography and SSL/TLS
libraries and tools.
%package -n libopenssl
-Summary: Secure Sockets Layer and crypto libraries
-Group: Security/Crypto Libraries
+Summary: Secure Sockets Layer and crypto libraries
+Group: Security/Crypto Libraries
+
%description -n libopenssl
Secure Sockets Layer and crypto libraries.
%package -n libopenssl-devel
-Summary: Secure Sockets Layer and cryptography static libraries and headers
-Group: Development/Libraries
-Obsoletes: openssl-devel < %{version}
-Requires: %{name} = %{version}-%{release}
-Requires: libopenssl = %{version}-%{release}
-Requires: zlib-devel
-Provides: openssl-devel = %{version}-%{release}
+Summary: Secure Sockets Layer and cryptography static libraries and headers
+Group: Development/Libraries
+Obsoletes: openssl-devel < %{version}
+Requires: libopenssl = %{version}-%{release}
+Requires: zlib-devel
+Provides: openssl-devel = %{version}-%{release}
+Conflicts: libopenssl1.1-devel
+
%description -n libopenssl-devel
The OpenSSL Project is a collaborative effort to develop a robust,
commercial-grade, fully featured, and Open Source toolkit implementing the
@@ -60,34 +61,6 @@ use it for commercial and non-commercial purposes.
This package contains the the OpenSSL cryptography and SSL/TLS
static libraries and header files required when developing applications.
-%package doc
-Summary: OpenSSL miscellaneous files
-Group: Documentation
-BuildArch: noarch
-%description doc
-The OpenSSL Project is a collaborative effort to develop a robust,
-commercial-grade, fully featured, and Open Source toolkit implementing the
-Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1)
-protocols as well as a full-strength general purpose cryptography library.
-The project is managed by a worldwide community of volunteers that use the
-Internet to communicate, plan, and develop the OpenSSL tookit and its related
-documentation.
-
-OpenSSL is based on the excellent SSLeay library developed from Eric A.
-Young and Tim J. Hudson. The OpenSSL toolkit is licensed under an
-Apache-style licence, which basically means that you are free to get and
-use it for commercial and non-commercial purposes.
-
-This package contains the the OpenSSL cryptography and SSL/TLS extra
-documentation and POD files from which the man pages were produced.
-
-%package misc
-Summary: Include Files and Libraries mandatory for Development
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
-%description misc
-Additional data files and scripts for %{name}.
-
%prep
%setup -q
@@ -98,7 +71,7 @@ RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed -s "s/--param=ssp-buffer-size=32//g")
RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed -s "s/-mcpu=cortex-a15.cortex-a7//g")
RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed -s "s/-march=armv7ve/-march=armv7-a/g")
-CONFIG_FLAGS="--prefix=%_prefix --openssldir=%openssldir --libdir=%_lib \
+CONFIG_FLAGS="--prefix=%{_prefix} --openssldir=%{openssldir} --libdir=%{_lib} \
threads shared no-idea no-rc5 no-camellia no-asm no-ssl2-method enable-md2 \
$RPM_OPT_FLAGS -std=gnu99 -fPIC -pie"
@@ -134,44 +107,27 @@ LD_LIBRARY_PATH=`pwd` make test
rm -rf $RPM_BUILD_ROOT
make INSTALL_PREFIX="$RPM_BUILD_ROOT" install_sw
-%files -n lib%name
-%manifest %name.manifest
+%files
+%manifest %{name}.manifest
+%exclude %{_bindir}
+%exclude %{openssldir}
+
+%files -n lib%{name}
+%manifest %{name}.manifest
%license LICENSE
%license LICENSE.Apache-2.0
%license LICENSE.BSD-3-Clause
-%_libdir/libcrypto.so.*
-%_libdir/libssl.so.*
-%_libdir/engines/*.so
-
-%files -n lib%name-devel
+%{_libdir}/*.so.*
+%{_libdir}/engines/*.so
+%{openssldir}/openssl.cnf
+%post -n lib%{name} -p /sbin/ldconfig
+%postun -n lib%{name} -p /sbin/ldconfig
+
+%files -n lib%{name}-devel
+%manifest %{name}.manifest
%license LICENSE
-%_includedir/%name
-%exclude %_libdir/libcrypto.a
-%exclude %_libdir/libssl.a
-%_libdir/libcrypto.so
-%_libdir/libssl.so
-%_libdir/pkgconfig/libcrypto.pc
-%_libdir/pkgconfig/libssl.pc
-%_libdir/pkgconfig/openssl.pc
-
-%files doc
-%license LICENSE
-%doc CHANGES CHANGES.SSLeay NEWS README
-
-%files
-%manifest %name.manifest
-%license LICENSE
-%_bindir/%name
-%openssldir/openssl.cnf
-
-%files misc
-%manifest %name.manifest
-%license LICENSE
-%_bindir/c_rehash
-%openssldir/misc
-
-%post -n lib%name
-ldconfig
+%{_includedir}/%{name}
+%exclude %{_libdir}/*.a
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
-%postun -n lib%name
-ldconfig