forked from pool/perl-File-Comments
fix
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-Comments?expand=0&rev=7
This commit is contained in:
28
cpanspec.yml
Normal file
28
cpanspec.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
#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: gcc-c++
|
||||||
|
#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: Perl
|
||||||
|
#skip_noarch: 1
|
||||||
|
#custom_build: |-
|
||||||
|
#./Build build flags=%{?_smp_mflags} --myflag
|
||||||
|
#custom_test: |-
|
||||||
|
#startserver && make test
|
||||||
|
#ignore_requires: Bizarre::Module
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 28 17:34:25 UTC 2020 - Dirk Stoecker <opensuse@dstoecker.de>
|
||||||
|
|
||||||
|
- Regenerate spec file with cpanspec to fix build with perl 5.32
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 31 10:11:47 UTC 2011 - coolo@novell.com
|
Thu Mar 31 10:11:47 UTC 2011 - coolo@novell.com
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-File-Comments
|
# spec file for package perl-File-Comments
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,18 +12,20 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: perl-File-Comments
|
Name: perl-File-Comments
|
||||||
Version: 0.08
|
Version: 0.08
|
||||||
Release: 0
|
Release: 0
|
||||||
%define cpan_name File-Comments
|
%define cpan_name File-Comments
|
||||||
Summary: Recognizes file formats and extracts format-specific comments
|
Summary: Recognizes file formats and extracts format-specific comments
|
||||||
License: GPL-1.0+ or Artistic-1.0
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/dist/File-Comments/
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Source: http://www.cpan.org/authors/id/M/MS/MSCHILLI/%{cpan_name}-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/M/MS/MSCHILLI/%{cpan_name}-%{version}.tar.gz
|
||||||
|
Source1: cpanspec.yml
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
@@ -33,6 +35,7 @@ BuildRequires: perl(HTML::TreeBuilder)
|
|||||||
BuildRequires: perl(Log::Log4perl) >= 0.5
|
BuildRequires: perl(Log::Log4perl) >= 0.5
|
||||||
BuildRequires: perl(Module::Pluggable) >= 2.4
|
BuildRequires: perl(Module::Pluggable) >= 2.4
|
||||||
BuildRequires: perl(PPI) >= 1.115
|
BuildRequires: perl(PPI) >= 1.115
|
||||||
|
BuildRequires: perl(Pod::Parser) >= 1.14
|
||||||
BuildRequires: perl(Sysadm::Install) >= 0.11
|
BuildRequires: perl(Sysadm::Install) >= 0.11
|
||||||
Requires: perl(Archive::Tar) >= 1.22
|
Requires: perl(Archive::Tar) >= 1.22
|
||||||
Requires: perl(HTML::TokeParser) >= 2.28
|
Requires: perl(HTML::TokeParser) >= 2.28
|
||||||
@@ -40,6 +43,7 @@ Requires: perl(HTML::TreeBuilder)
|
|||||||
Requires: perl(Log::Log4perl) >= 0.5
|
Requires: perl(Log::Log4perl) >= 0.5
|
||||||
Requires: perl(Module::Pluggable) >= 2.4
|
Requires: perl(Module::Pluggable) >= 2.4
|
||||||
Requires: perl(PPI) >= 1.115
|
Requires: perl(PPI) >= 1.115
|
||||||
|
Requires: perl(Pod::Parser) >= 1.14
|
||||||
Requires: perl(Sysadm::Install) >= 0.11
|
Requires: perl(Sysadm::Install) >= 0.11
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
@@ -68,14 +72,14 @@ BUGS, OR WANT TO CONTRIBUTE PLUGINS, PLEASE SEND THEM MY WAY.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
find . -type f -print0 | xargs -0 chmod 644
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||||
%{__make} %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
|
|||||||
Reference in New Issue
Block a user