]> git.pld-linux.org Git - packages/compat-ncurses5.git/blobdiff - ncurses.spec
up to 20131221, use patchset to handle patches from sources file
[packages/compat-ncurses5.git] / ncurses.spec
index 5f4304923b947537742212e4e39f10bac2104c6e..89f708a3d2349b2fdac59c5acd319fb20f757305 100644 (file)
@@ -10,7 +10,7 @@
 %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
@@ -29,15 +29,7 @@ Source0:     ftp://dickey.his.com/ncurses/%{name}-%{basever}.tar.gz
 # 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
@@ -49,6 +41,7 @@ Patch107:     %{name}-no-rain-demo.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
@@ -154,6 +147,9 @@ Summary(pt_BR.UTF-8):       Base de dados terminfo para terminais adicionais (menos us
 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
@@ -325,11 +321,11 @@ Ten pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do
 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
This page took 0.032084 seconds and 4 git commands to generate.