8
0

Accepting request 851086 from home:M0ses:tmp

- fixed summary 
- added BuildRequires ncurses5-devel
- re-run cpanspec

OBS-URL: https://build.opensuse.org/request/show/851086
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-Terminfo?expand=0&rev=3
This commit is contained in:
2020-11-26 14:03:06 +00:00
committed by Git OBS Bridge
parent 2c032c1733
commit f1c1b1958c
3 changed files with 74 additions and 47 deletions

29
cpanspec.yml Normal file
View File

@@ -0,0 +1,29 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
preamble: |-
BuildRequires: ncurses5-devel
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Nov 26 13:52:20 UTC 2020 - Frank Schreiner <FSchreiner@suse.com>
- fixed summary
-------------------------------------------------------------------
Tue Nov 24 08:40:49 UTC 2020 - Frank Schreiner <FSchreiner@suse.com>
- added BuildRequires ncurses5-devel
- re-run cpanspec
-------------------------------------------------------------------
Sun May 10 10:59:56 UTC 2020 - Frank Schreiner <FSchreiner@suse.com>

View File

@@ -19,74 +19,61 @@
Name: perl-Term-Terminfo
Version: 0.09
Release: 0
Summary: Access the F<terminfo> database
License: GPL-2.0-or-later OR Artistic-1.0(GPL-2.0-or-later OR Artistic-1.0)
%define cpan_name Term-Terminfo
Summary: Access the terminfo database
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Term-Terminfo-%{version}.tar.gz
URL: http://search.cpan.org/dist/Term-Terminfo
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: make
BuildRequires: ncurses-devel
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: pkgconfig
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(ExtUtils::CChecker) >= 0.02
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Module::Build) >= 0.400400
BuildRequires: perl(Module::Build::Using::PkgConfig)
BuildRequires: perl(Test::More)
Provides: perl(Term::Terminfo) = %{version}
BuildRequires: perl(Test::More) >= 0.88
%{perl_requires}
# MANUAL BEGIN
BuildRequires: ncurses5-devel
# MANUAL END
%description
Objects in this class provide access to terminfo database entires.
This database provides information about a terminal, in three separate
sets of capabilities. Flag capabilities indicate the presence of a
particular ability, feature, or bug simply by their presence. Number
capabilities give the size, count or other numeric detail of some feature
of the terminal. String capabilities are usually control strings that the
terminal will recognise, or send.
Objects in this class provide access to _terminfo_ database entires.
This database provides information about a terminal, in three separate sets
of capabilities. Flag capabilities indicate the presence of a particular
ability, feature, or bug simply by their presence. Number capabilities give
the size, count or other numeric detail of some feature of the terminal.
String capabilities are usually control strings that the terminal will
recognise, or send.
Capabilities each have two names; a short name called the capname, and a
longer name called the varname. This class provides two sets of methods,
one that works on capnames, one that work on varnames.
This module optionally uses unibilium to access the terminfo(5) database,
if it is available at compile-time. If not, it will use <term.h> and
-lcurses. For more detail, see the "SEE ALSO" section below.
This module optionally uses _unibilium_ to access the terminfo(5) database,
if it is available at compile-time. If not, it will use _<term.h>_ and
_-lcurses_. For more detail, see the SEE ALSO section below.
%prep
%setup -q -n "Term-Terminfo-%{version}"
%setup -q -n %{cpan_name}-%{version}
%build
TERM=xterm \
LDFLAGS="-L%{_libdir}" \
%__perl ./Build.PL
TERM=xterm \
LDFLAGS="-L%{_libdir}" \
./Build
%install
TERM=xterm \
LDFLAGS="-L%{_libdir}" \
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
perl Build.PL installdirs=vendor optimize="%{optflags}"
./Build build flags=%{?_smp_mflags}
%check
TERM=xterm \
./Build test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%files
%defattr(-,root,root)
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%license LICENSE
%dir %{perl_vendorarch}/Term
%{perl_vendorarch}/Term/Terminfo.pm
%dir %{perl_vendorarch}/auto/Term
%{perl_vendorarch}/auto/Term/Terminfo
%doc %{perl_man3dir}/Term::Terminfo.%{perl_man3ext}%{ext_man}
%changelog