SHA256
8
0
forked from pool/perl-Curses

2 Commits

3 changed files with 13 additions and 8 deletions

View File

@@ -11,7 +11,7 @@
# foo.patch: -p1
# bar.patch:
preamble: |-
BuildRequires: ncurses5-devel
BuildRequires: ncurses-devel
post_prep: |-
sed -i '1s| /usr//bin/perl|%{__perl}|' demo.form
sed -i '1s| /usr/bin/perl|%{__perl}|' demo* gdc testsyms
@@ -23,8 +23,8 @@ post_prep: |-
license: Perl
#skip_noarch: 1
custom_build: |-
export CURSES_CFLAGS="-I/usr/include/ncurses5/ncursesw"
export CURSES_LDFLAGS="-L%{_libdir}/ncurses5 -lncursesw"
export CURSES_CFLAGS="-I/usr/include/ncursesw"
export CURSES_LDFLAGS="-L%{_libdir}/ncurses -lncursesw"
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" PANELS MENUS FORMS
%make_build
#custom_test: |-

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Feb 6 22:48:52 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Fix build by depending on ncurses-devel instead of ncurses5-devel
-------------------------------------------------------------------
Sun Apr 28 03:09:21 UTC 2024 - Tina Müller <timueller+perl@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Curses
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -40,7 +40,7 @@ Provides: perl(Curses::Window)
%undefine __perllib_provides
%{perl_requires}
# MANUAL BEGIN
BuildRequires: ncurses5-devel
BuildRequires: ncurses-devel
# MANUAL END
%description
@@ -52,7 +52,7 @@ document describes the interface itself, and assumes that you already know
how your system's curses(3) library works.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
# MANUAL BEGIN
@@ -62,8 +62,8 @@ chmod +x makeConfig
# MANUAL END
%build
export CURSES_CFLAGS="-I/usr/include/ncurses5/ncursesw"
export CURSES_LDFLAGS="-L%{_libdir}/ncurses5 -lncursesw"
export CURSES_CFLAGS="-I/usr/include/ncursesw"
export CURSES_LDFLAGS="-L%{_libdir}/ncurses -lncursesw"
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" PANELS MENUS FORMS
%make_build