LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File dba-openssl-101e.spec of Package dba-openssl-101e (Project home:csbuild:DBA)

%define pkg_name        openssl
%define real_vers       1.0.1e
%define pkg_vers        101e
%define prefix          /DBA/openssl/%{real_vers}
%define maketest        0

Name:           dba-%{pkg_name}-%{pkg_vers}
Summary: 	The OpenSSL toolkit
Version: 	%{real_vers}
Release: 	1
License: 	GPL
Packager: 	Holger Manthey <holger.manthey@bertelsmann.de>
Group: 		System Environment/Libraries
URL: 		http://www.openssl.org/
Source: 	http://openssl.org/source/%{pkg_name}-%{real_vers}.tar.gz
Source1:        dba-%{pkg_name}-rpmlintrc
Source2:        filter-provides.sh
Source3:        filter-requires-openssl.sh
BuildRoot: 	%{_tmppath}/%{pkg_name}-%{real_vers}-build

Provides: 	dba-%{pkg_name}=%{real_vers}

%define _use_internal_dependency_generator 0
%define __find_provides %{SOURCE2}
%define __find_requires %{SOURCE3}

%if 0%{?suse_version} >= 1100
BuildRequires:  -post-build-checks

The OpenSSL toolkit provides support for secure communications between
machines. OpenSSL includes a certificate management tool and shared
libraries which provide various cryptographic algorithms and

%setup -q -n %{pkg_name}-%{real_vers}

%{__chmod} +x %{SOURCE2}
%{__chmod} +x %{SOURCE3}

./config -DOPENSSL_NO_HEARTBEATS no-shared
%{__mkdir_p} %{buildroot}%{prefix}/bin
install -m 755 ./apps/openssl %{buildroot}%{prefix}/bin/openssl.static
%{__make} clean

./config shared \
  --prefix=%{prefix} \


%if %maketest
%{__make} test

%{__mkdir_p} %{buildroot}%{prefix}
# install -d $RPM_BUILD_ROOT/{%{_lib},%{_bindir},%{_includedir},%{_libdir},%{_mandir},%{_libdir}/openssl}
make INSTALL_PREFIX=%{buildroot} install

if [ -e %{buildroot}%{prefix}/bin/openssl.static ]; then
  %{__rm} -f %{buildroot}%{prefix}/bin/openssl
  %{__mv} %{buildroot}%{prefix}/bin/openssl.static %{buildroot}%{prefix}/bin/openssl

[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%dir %{prefix}

* Thu Feb 14 2013 Holger Manthey <holger.manthey@bertelsmann.de>
- initial package