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)
%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
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
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