%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
+%define ver_db 4.3.27-1
%define ver_rpm 4.3-0.20040107.34
Summary: RPM packages management helper tool
Summary(pl): Pomocnicze narzêdzie do zarz±dzania pakietami RPM
Name: poldek
Version: 0.18.8
-Release: 3%{?with_distver:+distver}
+Release: 9
License: GPL v2
Group: Applications/System
Source0: http://team.pld.org.pl/~mis/poldek/download/%{name}-%{version}.tar.bz2
Patch0: %{name}-etc_dir.patch
Patch1: %{name}-retr_term.patch
Patch2: %{name}-simplestatic.patch
-Patch12: %{name}-distver.patch
+Patch3: %{name}-gcc4.patch
+Patch4: %{name}-cookie.patch
+Patch5: %{name}-rpmcmd.patch
+Patch6: %{name}-fmtime.patch
URL: http://team.pld.org.pl/~mis/poldek/
BuildRequires: automake
BuildRequires: autoconf
Requires: db >= %{ver_db}
Requires: ed
Requires: rpm >= %{ver_rpm}
-%{?with_distver:Requires: rpm-lib(distver)}
Requires: sed
Requires: openssl >= 0.9.7c
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%patch0 -p1
%patch1 -p1
%patch2 -p0
-%{?with_distver:%patch12 -p1}
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p0
%build
%{__autopoint}
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc README* NEWS TODO *sample* conf/poldekrc*
-%attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/%{name}*
%lang(pl) %{_mandir}/pl/man1/%{name}*