%bcond_with static # don't use shared libraries
%bcond_without imode # don't build interactive mode
%bcond_with curl # link with curl
+%bcond_with distver # enable distversion patch
#
# required versions (forced to avoid SEGV with mixed db used by rpm and poldek)
%define ver_db 4.2.50-1
Summary(pl): Pomocnicze narzêdzie do zarz±dzania pakietami RPM
Name: poldek
Version: 0.18.6
-Release: 18
+Release: 19%{?with_distver:+distver}
License: GPL v2
Group: Applications/System
Source0: http://team.pld.org.pl/~mis/poldek/download/%{name}-%{version}.tar.bz2
Requires: db >= %{ver_db}
Requires: ed
Requires: rpm >= %{ver_rpm}
-Requires: rpm-lib(distver)
+%{?with_distver:Requires: rpm-lib(distver)}
Requires: sed
Requires: openssl >= 0.9.7c
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%patch9 -p0
%patch10 -p0
%patch11 -p1
-%patch12 -p1
+%{?with_distver:%patch12 -p1}
%build
%{__autopoint}