- disabled as rpm i can't install it with previously built rpm5 here
Changed files:
rpm.spec -> 1.877
%bcond_without db # BerkeleyDB
%bcond_with sqlite # build with SQLite support
%bcond_with sqlite_dbapi # default database backend is sqlite
%bcond_without db # BerkeleyDB
%bcond_with sqlite # build with SQLite support
%bcond_with sqlite_dbapi # default database backend is sqlite
+%bcond_with system_lua # use system lua
# force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
# force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
# force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
# force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
# force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
# force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
Summary(uk.UTF-8): Менеджер пакетів від RPM
Name: rpm
Version: 5.0.2
Summary(uk.UTF-8): Менеджер пакетів від RPM
Name: rpm
Version: 5.0.2
License: LGPL
Group: Base
Source0: http://rpm5.org/files/rpm/rpm-5.0/%{name}-%{version}.tar.gz
License: LGPL
Group: Base
Source0: http://rpm5.org/files/rpm/rpm-5.0/%{name}-%{version}.tar.gz
Patch8: %{name}-php-macros.patch
Patch9: %{name}-gettext-in-header.patch
Patch10: %{name}-compress-doc.patch
Patch8: %{name}-php-macros.patch
Patch9: %{name}-gettext-in-header.patch
Patch10: %{name}-compress-doc.patch
+Patch11: %{name}-lua.patch
Patch14: %{name}-etc_dir.patch
Patch16: %{name}-php-deps.patch
Patch14: %{name}-etc_dir.patch
Patch16: %{name}-php-deps.patch
Patch61: %{name}-sparc64.patch
URL: http://rpm5.org/
Patch61: %{name}-sparc64.patch
URL: http://rpm5.org/
-BuildRequires: autoconf >= 2.57
+BuildRequires: autoconf >= 2.60
BuildRequires: automake >= 1.4
BuildRequires: beecrypt-devel >= %{beecrypt_ver}
BuildRequires: bzip2-devel >= 1.0.2-17
BuildRequires: automake >= 1.4
BuildRequires: beecrypt-devel >= %{beecrypt_ver}
BuildRequires: bzip2-devel >= 1.0.2-17
%endif
BuildRequires: patch >= 2.2
BuildRequires: popt-devel >= %{reqpopt_ver}
%endif
BuildRequires: patch >= 2.2
BuildRequires: popt-devel >= %{reqpopt_ver}
+%{?with_system_lua:BuildRequires: lua51-devel >= 5.1.2}
%{?with_python:BuildRequires: python-devel >= 1:2.3}
BuildRequires: python-modules >= 1:2.3
BuildRequires: rpm-perlprov
%{?with_python:BuildRequires: python-devel >= 1:2.3}
BuildRequires: python-modules >= 1:2.3
BuildRequires: rpm-perlprov
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
+%{?with_system_lua:%patch11 -p1}
# CHECK ME - macrofiles: ~/etc could be used
#%%patch14 -p1
%patch16 -p1
# CHECK ME - macrofiles: ~/etc could be used
#%%patch14 -p1
%patch16 -p1
# rpm checks for CPU type at runtime, but it looks better
#sed -i -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' -e 's|@host_cpu@|%{_target_cpu}|' macros.in
# rpm checks for CPU type at runtime, but it looks better
#sed -i -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' -e 's|@host_cpu@|%{_target_cpu}|' macros.in
+%{?with_system_lua:CPPFLAGS=-I/usr/include/lua51}
# pass CC and CXX too in case of building with some older configure macro
# pass CC and CXX too in case of building with some older configure macro
-# disable perl-RPM2 build, we have it in separate spec
%configure \
CC="%{__newcc}" \
CXX="%{__newcxx}" \
%configure \
CC="%{__newcc}" \
CXX="%{__newcxx}" \
--with-db=%{?with_db:external}%{!?with_db:no} \
--with-sqlite=%{?with_sqlite:external}%{!?with_sqlite:no} \
--with-dbapi=%{!?with_sqlite_dbapi:db}%{?with_sqlite_dbapi:sqlite} \
--with-db=%{?with_db:external}%{!?with_db:no} \
--with-sqlite=%{?with_sqlite:external}%{!?with_sqlite:no} \
--with-dbapi=%{!?with_sqlite_dbapi:db}%{?with_sqlite_dbapi:sqlite} \
+ --with-lua=%{!?with_system_lua:internal}%{?with_system_lua:external} \
--with-pcre=no \
--with-keyutils=none \
--without-path-versioned \
--with-pcre=no \
--with-keyutils=none \
--without-path-versioned \