LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File dba-openssl-101e-static.spec of Package dba-openssl-101e-static (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}-static
Summary: 	The OpenSSL toolkit version 1.0.1e static build
Version: 	%{real_vers}
Release: 	1
License: 	GPL
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
Patch1:		openssl-1.0.1e-fix_pod_syntax-1.patch
#
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
%endif


%description
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
protocols.


%prep
%setup -q -n %{pkg_name}-%{real_vers}
%patch1 -p1

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


%build
./config -DOPENSSL_NO_HEARTBEATS no-shared -fPIC \
  --prefix=%{prefix} \

# %{__make} CFLAGS="$RPM_OPT_FLAGS -fPIC -fno-strict-aliasing -Wall"
%{__make}


%check
%if %maketest
%{__make} test
%endif


%install
%{__mkdir_p} %{buildroot}%{prefix}
make INSTALL_PREFIX=%{buildroot} install


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


%post
# add openssl.pc files to pkgconfig directory
if [ -d %{_libdir}/pkgconfig ]; then
  cd %{_libdir}/pkgconfig
  for F in libcrypto.pc libssl.pc openssl.pc
  do
    if [ -e $F ]; then
      %{__rm} -f $F
    fi
    %{__ln_s} -f %{prefix}/lib/pkgconfig/$F .
  done
fi


%files
%defattr(-,root,root,-)
%dir %{prefix}
%{prefix}/*


%changelog
* Thu Nov 21 2013 Holger Manthey <holger.manthey@bertelsmann.de>
- add patch to fix pod syntax
* Thu Jul 25 2013 Holger Manthey <holger.manthey@bertelsmann.de>
- add fPIC for relocation
* Fri Jun 28 2013 Holger Manthey <holger.manthey@bertelsmann.de>
- initial package