|
|
|
|
@ -28,7 +28,7 @@
|
|
|
|
|
%define V_curses_ui_dtv 0.10 |
|
|
|
|
%define V_curses_widgets 1.997 |
|
|
|
|
%define V_curses_forms 1.997 |
|
|
|
|
%define V_cdk_perl 20031210 |
|
|
|
|
%define V_cdk_perl 20120324 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: perl-curses |
|
|
|
|
@ -41,7 +41,7 @@ Class: BASE
|
|
|
|
|
Group: Perl |
|
|
|
|
License: GPL/Artistic |
|
|
|
|
Version: %{V_perl} |
|
|
|
|
Release: 20120601 |
|
|
|
|
Release: 20120603 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://www.cpan.org/modules/by-module/Curses/Curses-%{V_curses}.tgz |
|
|
|
|
@ -50,7 +50,6 @@ Source2: http://www.cpan.org/authors/id/G/GS/GSAINIO/Curses-UI-DelimitedTex
|
|
|
|
|
Source3: http://www.cpan.org/authors/id/C/CO/CORLISS/CursesWidgets-%{V_curses_widgets}.tar.gz |
|
|
|
|
Source4: http://www.cpan.org/authors/id/C/CO/CORLISS/CursesForms-%{V_curses_forms}.tar.gz |
|
|
|
|
Source5: ftp://invisible-island.net/cdk/cdk-perl-%{V_cdk_perl}.tgz |
|
|
|
|
Patch0: perl-curses.patch |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20100101, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126 |
|
|
|
|
@ -107,7 +106,6 @@ PreReq: ncurses, cdk >= 4.9.11.20031210, perl-term
|
|
|
|
|
%setup -q -T -D -a 3 |
|
|
|
|
%setup -q -T -D -a 4 |
|
|
|
|
%setup -q -T -D -a 5 |
|
|
|
|
%patch -p0 |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
|
|
|
|
|
@ -153,7 +151,14 @@ PreReq: ncurses, cdk >= 4.9.11.20031210, perl-term
|
|
|
|
|
-e 's;-L/usr/local/lib;%{l_ldflags};' \ |
|
|
|
|
-e 's;-I/usr/include/ncurses;%{l_cppflags ncurses};' \ |
|
|
|
|
-e 's;-I/usr/local/include/cdk;%{l_cppflags cdk};' \ |
|
|
|
|
Makefile.PL |
|
|
|
|
Makefile.PL.in |
|
|
|
|
CC="%{l_cc}" \ |
|
|
|
|
CFLAGS="%{l_cflags -O}" \ |
|
|
|
|
CPPFLAGS="%{l_cppflags cdk .}" \ |
|
|
|
|
LDFLAGS="%{l_ldflags}" \ |
|
|
|
|
LIBS="-lncurses" \ |
|
|
|
|
./configure \ |
|
|
|
|
--prefix=%{l_prefix} |
|
|
|
|
) || exit $? |
|
|
|
|
%{l_prefix}/bin/perl-openpkg -d cdk-perl-%{V_cdk_perl} configure build install |
|
|
|
|
|
|
|
|
|
|