File perl-Curses.spec of Package perl-Curses

# spec file for package perl-Curses
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           perl-Curses
BuildRequires:  ncurses-devel perl
BuildRequires:  perl-macros
Version:        1.28
Release:        7
Provides:       perl_cur Curses
Obsoletes:      perl_cur
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic-1.0
Summary:        Terminal screen handling and optimization
Source:         Curses-%{version}.tgz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Curses is the interface between Perl and your system's curses(3) library.
For descriptions on the usage of a given function, variable, or constant,
consult your system's documentation, as such information invariably varies
(:-) between different curses(3) libraries and operating systems. This
document describes the interface itself, and assumes that you already know
how your system's curses(3) library works.

%setup -q -n Curses-%{version}

CURSES_LDFLAGS="-lncursesw" CURSES_CFLAGS="-I/usr/include/ncursesw/" perl Makefile.PL PANELS MENUS OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make %{?_smp_mflags}

make test

make DESTDIR=$RPM_BUILD_ROOT install_vendor
chmod a-x test.syms demo.form


%doc README Artistic Copying demo demo2 demo.form demo.panel HISTORY list.syms MAINTENANCE README test.syms
%doc %{_mandir}/man3/*

openSUSE Build Service is sponsored by