|
|
|
@ -23,7 +23,7 @@
|
|
|
|
|
|
|
|
|
|
# package version |
|
|
|
|
%define V_v1 1.1.4 |
|
|
|
|
%define V_v3 3.0v |
|
|
|
|
%define V_v3 3.0w |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: xdelta |
|
|
|
@ -36,14 +36,14 @@ Class: BASE
|
|
|
|
|
Group: Patching |
|
|
|
|
License: GPL |
|
|
|
|
Version: %{V_v1} |
|
|
|
|
Release: 20090615 |
|
|
|
|
Release: 20100107 |
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
|
%option with_v3 yes |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://xdelta.googlecode.com/files/xdelta-%{V_v1}.tar.gz |
|
|
|
|
Source1: http://xdelta.googlecode.com/files/xdelta%{V_v3}2.tar.gz |
|
|
|
|
Source1: http://xdelta.googlecode.com/files/xdelta%{V_v3}.tar.gz |
|
|
|
|
Patch0: xdelta.patch |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
@ -68,7 +68,7 @@ AutoReqProv: no
|
|
|
|
|
prog xdelta:v3 = { |
|
|
|
|
version = %{V_v3} |
|
|
|
|
url = http://code.google.com/p/xdelta/downloads/list |
|
|
|
|
regex = xdelta(__VER__)\.tar\.gz |
|
|
|
|
regex = xdelta(3\.\d+[a-z])\.tar\.gz |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
@ -93,7 +93,7 @@ AutoReqProv: no
|
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;gcc;%{l_cc};g' \ |
|
|
|
|
Makefile |
|
|
|
|
%{l_make} %{l_mflags} xdelta3-everything xdelta3-all.o |
|
|
|
|
%{l_make} %{l_mflags} CFLAGS="%{l_cflags}" xdelta3 xdelta3-all.o |
|
|
|
|
ar cr libxdelta3.a xdelta3-all.o |
|
|
|
|
ranlib libxdelta3.a |
|
|
|
|
) || exit $? |
|
|
|
@ -111,7 +111,7 @@ AutoReqProv: no
|
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/include \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/lib |
|
|
|
|
%{l_shtool} install -c -s -m 755 \ |
|
|
|
|
xdelta3-everything $RPM_BUILD_ROOT%{l_prefix}/bin/xdelta3 |
|
|
|
|
xdelta3 $RPM_BUILD_ROOT%{l_prefix}/bin/xdelta3 |
|
|
|
|
%{l_shtool} install -c -m 644 \ |
|
|
|
|
libxdelta3.a $RPM_BUILD_ROOT%{l_prefix}/lib/ |
|
|
|
|
%{l_shtool} install -c -m 644 \ |
|
|
|
|