Restore rpms (openssl, mic, doc) for compatability 09/84509/2
authorKyungwook Tak <k.tak@samsung.com>
Fri, 19 Aug 2016 05:23:27 +0000 (14:23 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Fri, 19 Aug 2016 05:51:37 +0000 (14:51 +0900)
Change-Id: I306944c611a4c870d98ee093bfcb3a174e3f41bb
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
packaging/openssl.spec

index 663d5e6..92ba25c 100644 (file)
@@ -33,11 +33,21 @@ use it for commercial and non-commercial purposes.
 This package contains the base OpenSSL cryptography and SSL/TLS
 libraries and tools.
 
-%package devel
+%package -n libopenssl
+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
-Requires: openssl = %{version}-%{release}
-%description devel
+Obsoletes: openssl-devel < %{version}
+Requires: %{name} = %{version}-%{release}
+Requires: libopenssl = %{version}-%{release}
+Requires: zlib-devel
+Provides: openssl-devel = %{version}-%{release}
+%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
 Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1)
@@ -57,7 +67,7 @@ static libraries and header files required when developing applications.
 %package doc
 Summary: OpenSSL miscellaneous files
 Group: Documentation
-Requires: openssl
+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
@@ -75,6 +85,13 @@ 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
@@ -121,34 +138,42 @@ LD_LIBRARY_PATH=`pwd` make test
 rm -rf $RPM_BUILD_ROOT
 make INSTALL_PREFIX="$RPM_BUILD_ROOT" install_sw
 
-%files
+%files -n lib%name
 %manifest %name.manifest
-%defattr(0644,root,root,0755)
 %license LICENSE
-%attr(0755,root,root) %_libdir/libcrypto.so.*
-%attr(0755,root,root) %_libdir/libssl.so.*
-%attr(0755,root,root) %_libdir/engines/*.so
-%exclude %openssldir/openssl.cnf
-%exclude %openssldir/misc
-%exclude %_bindir/c_rehash
-%exclude %_bindir/%name
-
-%files devel
-%defattr(0644,root,root,0755)
+%_libdir/libcrypto.so.*
+%_libdir/libssl.so.*
+%_libdir/engines/*.so
+
+%files -n lib%name-devel
 %license LICENSE
+%_includedir/%name
+%exclude %_libdir/libcrypto.a
+%exclude %_libdir/libssl.a
 %_libdir/libcrypto.so
 %_libdir/libssl.so
-%exclude %attr(0644,root,root) %_libdir/libcrypto.a
-%exclude %attr(0644,root,root) %_libdir/libssl.a
-%attr(0644,root,root) %_libdir/pkgconfig/*.pc
-%attr(0644,root,root) %_includedir/openssl/*
+%_libdir/pkgconfig/libcrypto.pc
+%_libdir/pkgconfig/libssl.pc
+%_libdir/pkgconfig/openssl.pc
 
 %files doc
 %license LICENSE
 %doc CHANGES CHANGES.SSLeay NEWS README
 
-%post
+%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
 
-%postun
+%postun -n lib%name
 ldconfig