%define ver_rpm 4.5-5
#
%define snap 20080820.23
-%define rel 33
+%define rel 38
Summary: RPM packages management helper tool
Summary(pl.UTF-8): Pomocnicze narzędzie do zarządzania pakietami RPM
Name: poldek
Patch27: %{name}-multilib-upgrade.patch
Patch28: %{name}-score-reqs-marked-to-install.patch
Patch29: %{name}-dont-be-greedy.patch
+Patch30: %{name}-dont-lose-deps.patch
+Patch31: %{name}-ls-queryfmt.patch
+Patch32: %{name}-prepare_url_fix.patch
+Patch33: %{name}-noloop_on_terminal_loos.patch
+Patch34: %{name}-show_only_relative_used_space.patch
+Patch35: %{name}-zlib.patch
URL: http://poldek.pld-linux.org/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bzip2-devel
-BuildRequires: check
BuildRequires: db-devel >= %{ver_db}-%{ver_db_rel}
-BuildRequires: gettext-autopoint
+BuildRequires: gettext-devel
BuildRequires: libtool
BuildRequires: libxml2-devel
BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: pcre-devel
-BuildRequires: perl-tools-pod
BuildRequires: pkgconfig
BuildRequires: popt-devel
%{?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}
BuildRequires: bzip2-static
%patch22 -p0
%patch23 -p1
%patch24 -p1
-# LP#392984
+# LP#392984: add source rpm to ls
%patch25 -p1
# LP#408036
%patch26 -p1
%patch28 -p1
# dont be greedy if upgraded pkg has needed capabilities
%patch29 -p1
+# http://lists.pld-linux.org/mailman/pipermail/pld-devel-pl/2009-November/150519.html
+%patch30 -p1
+# LP#392984: add query format to ls
+%patch31 -p1
+# LP#506568
+%patch32 -p0
+# LP#499504
+%patch33 -p1
+# do not info. about amount of transaction space req. but relative to already installed
+%patch34 -p1
+# fixes failures with zlib >= 1.2.3.7
+%patch35 -p0
# cleanup backups after patching
find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
%build
%{__libtoolize}
+%{__autoheader}
%{__aclocal} -I m4
%{__autoconf}
%{__automake}