%endif
%define basever 5.9
-%define patchlevel 20130525
+%define patchlevel 20131221
Summary: curses terminal control library
Summary(de.UTF-8): curses-Terminal-Control-Library
Summary(es.UTF-8): Biblioteca de control de terminal curses
# Source0-md5: 8cb9c412e5f2d96bc6f459aa8c6282a1
Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
# Source1-md5: 3b05ee835dc20c306e9af2a9d3fbf1f1
-# source: ftp://dickey.his.com/ncurses/5.9/
-Patch0: ftp://dickey.his.com/ncurses/5.9/%{name}-%{basever}-20130504-patch.sh.bz2
-# Patch0-md5: 328966f1daa16c045b16a22d1b0020ec
-Patch1: ftp://dickey.his.com/ncurses/5.9/%{name}-%{basever}-20130511.patch.gz
-# Patch1-md5: 090c30bb83e286e9cea22ad62c6136ff
-Patch2: ftp://dickey.his.com/ncurses/5.9/%{name}-%{basever}-20130518.patch.gz
-# Patch2-md5: 3300610567774c441bd4a014db76db11
-Patch3: ftp://dickey.his.com/ncurses/5.9/%{name}-%{basever}-20130525.patch.gz
-# Patch3-md5: c35aa6d8d6dc3a0620904045b5a8f6bc
+%patchset_source -f ftp://dickey.his.com/ncurses/%{basever}/ -s sources
Patch100: %{name}-screen_hpa_fix.patch
Patch101: %{name}-xterm_hpa_fix.patch
Patch102: %{name}-meta.patch
Patch108: %{name}-fix-nonunicode-breakage.patch
URL: http://dickey.his.com/ncurses/ncurses.html
BuildRequires: automake
+BuildRequires: rpmbuild(macros) >= 1.683
%if %{with ada}
BuildRequires: gcc-ada
# gnat bug: https://bugzilla.redhat.com/show_bug.cgi?id=613407
Group: Applications/Terminal
Requires: %{name} = %{version}-%{release}
Obsoletes: ncurses-extraterms
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
%description -n terminfo
This package contains complete terminfo database. If you just use the
tworzenia aplikacji używających ncurses w języku Ada95.
%prep
-%setup -q -n %{name}-%{basever}
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
+%setup -qc
+mv %{name}-%{basever}/* .
+
+# official patches
+%patchset_patch -s sources -p1
%patch100 -p1
%patch101 -p1