#
# required versions (forced to avoid SEGV with mixed db used by rpm and poldek)
%define ver_db 4.3.27-1
-%define ver_rpm 4.4.7
+%define ver_rpm 4.4.9
%define snap 20070108.22
Summary: RPM packages management helper tool
-Summary(pl.UTF-8): Pomocnicze narzędzie do zarządzania pakietami RPM
+Summary(pl.UTF-8): Pomocnicze narzędzie do zarządzania pakietami RPM
Name: poldek
Version: 0.20.1
-Release: 0.20070108.1.3
+Release: 0.20070108.1.12
License: GPL v2
Group: Applications/System
Source0: http://poldek.pld-linux.org/download/snapshots/%{name}-%{version}-cvs%{snap}.tar.bz2
Patch1: %{name}-vserver-packages.patch
Patch2: %{name}-config.patch
Patch3: %{name}-multilib.patch
+Patch4: %{name}-configure_in.patch
+Patch5: %{name}-rpm-4.4.8.patch
+Patch6: %{name}-rpm-4.4.9.patch
+Patch7: %{name}-desc_in_utf8.patch
URL: http://poldek.pld-linux.org/
BuildRequires: autoconf
BuildRequires: automake
%{?with_python:BuildRequires: python-devel}
BuildRequires: readline-devel >= 5.0
BuildRequires: rpm-devel >= %{ver_rpm}
+%{?with_python:BuildRequires: rpm-pythonprov}
BuildRequires: xmlto
BuildRequires: zlib-devel
%if %{with static}
%package libs
Summary: poldek libraries
-Summary(pl.UTF-8): Biblioteki poldka
+Summary(pl.UTF-8): Biblioteki poldka
Group: Libraries
%description libs
%package devel
Summary: Header files for poldek libraries
-Summary(pl.UTF-8): Pliki nagłówkowe bibliotek poldka
+Summary(pl.UTF-8): Pliki nagłówkowe bibliotek poldka
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}
%package static
Summary: poldek static libraries
-Summary(pl.UTF-8): Biblioteki statyczne poldka
+Summary(pl.UTF-8): Biblioteki statyczne poldka
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%package -n python-poldek
Summary: Python modules for poldek
-Summary(pl.UTF-8): Moduły języka Python dla poldka
+Summary(pl.UTF-8): Moduły języka Python dla poldka
Group: Libraries/Python
Requires: %{name}-libs = %{version}-%{release}
%pyrequires_eq python-libs
%ifarch %{x8664}
%patch3 -p1
%endif
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
%build
%{__autopoint}