File deltarpm.spec of Package deltarpm

#
# spec file for package deltarpm
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           deltarpm
BuildRequires:  libbz2-devel rpm-devel xz-devel
Url:            ftp://ftp.suse.com/pub/projects/deltarpm
License:        BSD3c(or similar)
Group:          System/Packages
Version:        3.5.git
Release:        1
Summary:        Tools to Create and Apply deltarpms
Source:         deltarpm-3.5.git.tar.bz2
Patch0:         patch.sles8
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# we need to build against recent rpm, so avoid the new payload
%define _binary_payload w9.bzdio

%description
This package contains tools to create and apply deltarpms. A deltarpm
contains the difference between an old and a new version of an RPM,
which makes it possible to recreate the new RPM from the deltarpm and
the old one. You do not need to have a copy of the old RPM, because
deltarpms can also work with installed RPMs.

%prep
%setup
%if %suse_version < 900
%patch0
%endif

%build
make CC="%__cc" CFLAGS="$RPM_OPT_FLAGS" prefix="%{_prefix}" rpmdumpheader="/usr/lib/rpm/rpmdumpheader" %{?_smp_mflags}

%install
mkdir -p $RPM_BUILD_ROOT/usr/lib/rpm
make DESTDIR=$RPM_BUILD_ROOT prefix="%{_prefix}" mandir="%{_mandir}" rpmdumpheader="/usr/lib/rpm/rpmdumpheader" install

%files
%defattr(-,root,root)
%doc README LICENSE.BSD
%{_bindir}/*
%{_mandir}/man8/*
%if %suse_version >= 900
/usr/lib/rpm/rpmdumpheader
%endif

%changelog
openSUSE Build Service is sponsored by