%define name aptitude %define release 1mdk %define version 0.2.13 Summary: Curses-based apt frontend Name: %{name} Version: %{version} Release: %{release} License: GPL Url: http://packages.qa.debian.org/a/aptitude.html Group: System/Configuration/Packaging Source: http://http.us.debian.org/debian/pool/main/a/%{name}/%{name}-%{version}.tar.bz2 Patch0: %name-0.2.13-cnc-alt-rpm-apt.patch.bz2 Patch1: %name-0.2.13-automake.patch.bz2 Patch2: %name-0.2.13-autoconf.patch.bz2 Patch3: %name-0.2.13-po-mkinstalldirs.patch.bz2 BuildRequires: ncurses-devel libapt-pkg-devel libsigc++1.2-devel gettext-devel BuildRequires: automake1.7 autoconf2.5 Buildroot: %{_tmppath}/%{name}-root %description Aptitude is a curses-based apt frontend with a number of useful extended features, including: a mutt-like syntax for matching packages in a flexible manner, persistence of user actions, and extreme flexibility and customization. %prep %setup -q -n %{name}-%{version} %patch0 -p1 -b .apt-rpm %patch1 -p1 -b .automake %patch2 -p1 -b .autoconf %patch3 -p1 -b .po-mkinstalldirs %build libtoolize --copy --force aclocal-1.7 automake-1.7 -a autoconf-2.5x CPPFLAGS=-DRPM_VERSION=0x040202 export CPPFLAGS %configure2_5x --disable-werror %make make check %install rm -rf $RPM_BUILD_ROOT %makeinstall %find_lang %name %clean rm -rf $RPM_BUILD_ROOT %files -f %name.lang %defattr(-, root, root) %dir %{_datadir}/aptitude %{_datadir}/aptitude/* %{_bindir}/aptitude %changelog * Tue Jan 20 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 0.2.13-1mdk - initial package