Accepting request 500352 from home:scarabeus_iv:branches:Base:System

- Cleanup a bit the dependencies
  * Run %configure as separate comand properly in build phase
- Remove support for < 12.0
- Add condition for openSSL to build with verison 1.0.0 on Factory

OBS-URL: https://build.opensuse.org/request/show/500352
OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=32
This commit is contained in:
Dirk Mueller 2017-06-07 10:35:11 +00:00 committed by Git OBS Bridge
parent d714d912a3
commit 8f229e54bf
2 changed files with 29 additions and 28 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue May 30 13:52:48 UTC 2017 - tchvatal@suse.com
- Cleanup a bit the dependencies
* Run %configure as separate comand properly in build phase
- Remove support for < 12.0
- Add condition for openSSL to build with verison 1.0.0 on Factory
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 29 22:27:17 CET 2016 - kurt@garloff.de Thu Dec 29 22:27:17 CET 2016 - kurt@garloff.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package dd_rescue # spec file for package dd_rescue
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -19,7 +19,7 @@
Name: dd_rescue Name: dd_rescue
Version: 1.99.5 Version: 1.99.5
Release: 0 Release: 0
Summary: Data Copying in the Presence of I/O Errors Summary: Data copying in the presence of I/O Errors
License: GPL-2.0 or GPL-3.0 License: GPL-2.0 or GPL-3.0
Group: System/Base Group: System/Base
Url: http://www.garloff.de/kurt/linux/ddrescue/ Url: http://www.garloff.de/kurt/linux/ddrescue/
@ -27,27 +27,27 @@ Source0: http://garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.bz2
Source1: http://garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.bz2.asc Source1: http://garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.bz2.asc
Source2: %{name}.keyring Source2: %{name}.keyring
Source99: %{name}.changes Source99: %{name}.changes
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: libattr-devel BuildRequires: libattr-devel
BuildRequires: libfallocate-devel
BuildRequires: lzo-devel BuildRequires: lzo-devel
BuildRequires: lzop
BuildRequires: pkgconfig
BuildRequires: python BuildRequires: python
Requires: bc Requires: bc
Recommends: dd_rescue-lzo
Recommends: dd_rescue-crypt Recommends: dd_rescue-crypt
Recommends: dd_rescue-lzo
Recommends: dd_rhelp Recommends: dd_rhelp
Recommends: libfallocate0 Recommends: libfallocate0
# ddrescue was last used in openSUSE 11.4 (version 1.14_0.0.6) # ddrescue was last used in openSUSE 11.4 (version 1.14_0.0.6)
Provides: ddrescue = %{version} Provides: ddrescue = %{version}
Obsoletes: ddrescue < %{version} Obsoletes: ddrescue < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1200 %if 0%{?suse_version} >= 1330
BuildRequires: libfallocate-devel BuildRequires: libopenssl-1_0_0-devel
BuildRequires: lzop %else
BuildRequires: pkgconfig(libcrypto)
%endif %endif
BuildRequires: libopenssl-devel
BuildRequires: openssl
#BuildRequires: openssl-devel
%description %description
dd_rescue helps when nothing else can: your disk has crashed and you dd_rescue helps when nothing else can: your disk has crashed and you
@ -62,13 +62,13 @@ with fallocate().
dd_rescue also provides data protection features by overwriting files dd_rescue also provides data protection features by overwriting files
or disks with fast random numbers, optionally multiple times. or disks with fast random numbers, optionally multiple times.
dd_rescue supports plugins; currently a hash, an lzo and a crypt plugin dd_rescue supports plugins; currently a hash, an lzo and a crypt plugin
exist, supporting on the fly hash/HMAC calculation/validation, lzo exist, supporting on the fly hash/HMAC calculation/validation, lzo
de/compression and de/encryption. The lzo plugin is packaged in the de/compression and de/encryption. The lzo plugin is packaged in the
dd_rescue-lzo, the crypt plugin in the dd_rescue-crypt subpackage. dd_rescue-lzo, the crypt plugin in the dd_rescue-crypt subpackage.
%package crypt %package crypt
Summary: crypt plugin for dd_rescue Summary: Crypt plugin for dd_rescue
Group: System/Base Group: System/Base
Requires: dd_rescue = %{version} Requires: dd_rescue = %{version}
@ -79,15 +79,11 @@ supports various numbers of bits and rounds and uses the x86 AESNI
CPU support if available. CPU support if available.
The plugin does offer a variety of options to handle the keys The plugin does offer a variety of options to handle the keys
and IVs including the generating keys from password and salt. and IVs including the generating keys from password and salt.
The plugin is new as of 1.98 and it despite diligent testing it The plugin is new as of 1.98 and it despite diligent testing it
might be careful to expect some bugs and future changes. might be careful to expect some bugs and future changes.
Authors:
--------
Kurt Garloff <kurt@garloff.de>
%package lzo %package lzo
Summary: LZO plugin for dd_rescue Summary: LZO plugin for dd_rescue
Group: System/Base Group: System/Base
@ -115,8 +111,7 @@ though more will have to be done to feel confident about feeding untrusted
data to the decompressor; the plugin is still young and might expose bugs. data to the decompressor; the plugin is still young and might expose bugs.
%prep %prep
%setup -q %setup -q
./autogen.sh
# Remove build time references so build-compare can do its work # Remove build time references so build-compare can do its work
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{SOURCE99} '+%%H:%%M') FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{SOURCE99} '+%%H:%%M')
@ -125,17 +120,17 @@ sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/g" dd_rescue.c
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/g" dd_rescue.c sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/g" dd_rescue.c
%build %build
flags="%{optflags}" autoheader
make RPM_OPT_FLAGS="$flags" LIBDIR=%{_libdir} LIB=%{_lib} %{?_smp_mflags} autoconf
%configure
make RPM_OPT_FLAGS="%{optflags}" LIBDIR=%{_libdir} LIB=%{_lib} %{?_smp_mflags}
%install %install
make install DESTDIR=%{buildroot} INSTALLDIR=%{buildroot}/%{_bindir} LIB=%{_lib} LIBDIR=%{_libdir} \ %make_install RPM_OPT_FLAGS="%{optflags}" INSTALLDIR=%{buildroot}/%{_bindir} LIB=%{_lib} LIBDIR=%{_libdir} \
INSTASROOT= INSTALLFLAGS= INSTASROOT= INSTALLFLAGS=
#UsrMerge
mkdir %{buildroot}/bin mkdir %{buildroot}/bin
ln -sf %{_bindir}/dd_rescue %{buildroot}/bin ln -sf %{_bindir}/dd_rescue %{buildroot}/bin
#EndUsrMerge
%check %check
make %{?_smp_mflags} check make %{?_smp_mflags} check
@ -144,9 +139,7 @@ make %{?_smp_mflags} check
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING README.dd_rescue TODO %doc COPYING README.dd_rescue TODO
%{_bindir}/dd_rescue %{_bindir}/dd_rescue
#UsrMerge
/bin/dd_rescue /bin/dd_rescue
#EndUsrMerge
%{_libdir}/libddr_hash.so %{_libdir}/libddr_hash.so
%{_libdir}/libddr_MD5.so %{_libdir}/libddr_MD5.so
%{_libdir}/libddr_null.so %{_libdir}/libddr_null.so