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 http://bugs.opensuse.org/
#
# 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
Url: http://cpan.org/modules/by-module/Curses/
Summary: Terminal screen handling and optimization
Source: Curses-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
%description
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.
%prep
%setup -q -n Curses-%{version}
%build
CURSES_LDFLAGS="-lncursesw" CURSES_CFLAGS="-I/usr/include/ncursesw/" perl Makefile.PL PANELS MENUS OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make %{?_smp_mflags}
%check
make test
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
chmod a-x test.syms demo.form
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README Artistic Copying demo demo2 demo.form demo.menu demo.panel HISTORY list.syms MAINTENANCE README test.syms
%doc %{_mandir}/man3/*
%{perl_vendorarch}/Curses.pm
%{perl_vendorarch}/auto/Curses
%changelog