2007-01-15 23:30:15 +00:00
|
|
|
#
|
2011-11-18 11:27:50 +00:00
|
|
|
# spec file for package perl-Curses
|
2007-01-15 23:30:15 +00:00
|
|
|
#
|
2025-02-06 22:58:22 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2007-01-15 23:30:15 +00:00
|
|
|
#
|
2008-09-12 16:08:43 +00:00
|
|
|
# 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.
|
|
|
|
|
2020-10-19 09:06:06 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:30:15 +00:00
|
|
|
#
|
|
|
|
|
2008-03-10 17:33:17 +00:00
|
|
|
|
2021-08-03 08:48:29 +00:00
|
|
|
%define cpan_name Curses
|
2007-01-15 23:30:15 +00:00
|
|
|
Name: perl-Curses
|
2024-05-16 12:00:12 +00:00
|
|
|
Version: 1.450.0
|
2018-09-13 08:38:21 +00:00
|
|
|
Release: 0
|
2024-05-16 12:00:12 +00:00
|
|
|
# 1.45 -> normalize -> 1.450.0
|
|
|
|
%define cpan_version 1.45
|
2020-10-19 09:06:06 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-08-16 14:32:45 +00:00
|
|
|
Summary: Terminal screen handling and optimization
|
2020-10-19 09:06:06 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-05-16 12:00:12 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/G/GI/GIRAFFED/%{cpan_name}-%{cpan_version}.tar.gz
|
2020-10-19 09:06:06 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:12:55 +02:00
|
|
|
Source100: README.md
|
2015-02-06 13:30:17 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 13:59:52 +00:00
|
|
|
BuildRequires: perl-macros
|
2024-05-16 12:00:12 +00:00
|
|
|
Provides: perl(Curses) = %{version}
|
|
|
|
Provides: perl(Curses::Field)
|
|
|
|
Provides: perl(Curses::Form)
|
|
|
|
Provides: perl(Curses::Item)
|
|
|
|
Provides: perl(Curses::Menu)
|
|
|
|
Provides: perl(Curses::Panel)
|
|
|
|
Provides: perl(Curses::Screen)
|
|
|
|
Provides: perl(Curses::Window)
|
|
|
|
%undefine __perllib_provides
|
2010-12-03 13:59:52 +00:00
|
|
|
%{perl_requires}
|
2020-10-19 09:06:06 +00:00
|
|
|
# MANUAL BEGIN
|
2025-02-06 22:58:22 +00:00
|
|
|
BuildRequires: ncurses-devel
|
2020-10-19 09:06:06 +00:00
|
|
|
# MANUAL END
|
2007-01-15 23:30:15 +00:00
|
|
|
|
|
|
|
%description
|
2020-10-19 09:06:06 +00:00
|
|
|
'Curses' is the interface between Perl and your system's curses(3) library.
|
2010-02-09 21:38:31 +00:00
|
|
|
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.
|
2007-01-15 23:30:15 +00:00
|
|
|
|
|
|
|
%prep
|
2025-02-06 22:58:22 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2023-03-10 10:44:40 +00:00
|
|
|
|
2024-05-16 12:00:12 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2022-08-16 14:32:45 +00:00
|
|
|
# MANUAL BEGIN
|
2021-06-11 11:56:30 +00:00
|
|
|
sed -i '1s| /usr//bin/perl|%{__perl}|' demo.form
|
2022-12-12 09:24:38 +00:00
|
|
|
sed -i '1s| /usr/bin/perl|%{__perl}|' demo* gdc testsyms
|
|
|
|
chmod +x makeConfig
|
2022-08-16 14:32:45 +00:00
|
|
|
# MANUAL END
|
2021-06-11 11:56:30 +00:00
|
|
|
|
2007-01-15 23:30:15 +00:00
|
|
|
%build
|
2025-02-06 22:58:22 +00:00
|
|
|
export CURSES_CFLAGS="-I/usr/include/ncursesw"
|
|
|
|
export CURSES_LDFLAGS="-L%{_libdir}/ncurses -lncursesw"
|
2021-06-11 11:56:30 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" PANELS MENUS FORMS
|
2021-08-03 08:48:29 +00:00
|
|
|
%make_build
|
2007-11-19 12:44:38 +00:00
|
|
|
|
|
|
|
%check
|
2020-10-19 09:06:06 +00:00
|
|
|
make test
|
2007-01-15 23:30:15 +00:00
|
|
|
|
|
|
|
%install
|
2020-10-19 09:06:06 +00:00
|
|
|
%perl_make_install
|
2007-01-15 23:30:15 +00:00
|
|
|
%perl_process_packlist
|
2020-10-19 09:06:06 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:30:15 +00:00
|
|
|
|
2020-10-19 09:06:06 +00:00
|
|
|
%files -f %{name}.files
|
2022-12-12 09:24:38 +00:00
|
|
|
%doc ChangeLog demo demo2 demo.form demo.menu demo.panel HISTORY MAINTENANCE README
|
2020-10-19 09:06:06 +00:00
|
|
|
%license Artistic Copying
|
2008-03-10 17:33:17 +00:00
|
|
|
|
2007-03-10 23:07:49 +00:00
|
|
|
%changelog
|