From f1c1b1958c4a44955bee54a99c8d6fb1d2fe928930f820b23e7dba829e78d402 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Thu, 26 Nov 2020 14:03:06 +0000 Subject: [PATCH] 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 --- cpanspec.yml | 29 ++++++++++++++ perl-Term-Terminfo.changes | 11 ++++++ perl-Term-Terminfo.spec | 81 ++++++++++++++++---------------------- 3 files changed, 74 insertions(+), 47 deletions(-) create mode 100644 cpanspec.yml diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..e63238f --- /dev/null +++ b/cpanspec.yml @@ -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 + diff --git a/perl-Term-Terminfo.changes b/perl-Term-Terminfo.changes index 6d5a32a..4c9ee20 100644 --- a/perl-Term-Terminfo.changes +++ b/perl-Term-Terminfo.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Nov 26 13:52:20 UTC 2020 - Frank Schreiner + +- fixed summary + +------------------------------------------------------------------- +Tue Nov 24 08:40:49 UTC 2020 - Frank Schreiner + +- added BuildRequires ncurses5-devel +- re-run cpanspec + ------------------------------------------------------------------- Sun May 10 10:59:56 UTC 2020 - Frank Schreiner diff --git a/perl-Term-Terminfo.spec b/perl-Term-Terminfo.spec index 477cca9..845eb4d 100644 --- a/perl-Term-Terminfo.spec +++ b/perl-Term-Terminfo.spec @@ -19,74 +19,61 @@ Name: perl-Term-Terminfo Version: 0.09 Release: 0 -Summary: Access the F 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 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 __ 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