From 2f5400410d55eb9818037ad1cee972cead7241710209c89590a5e18080613251 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sun, 8 Oct 2017 09:43:05 +0000 Subject: [PATCH] - regenerate with cpanspec OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Template-GD?expand=0&rev=7 --- Template-GD-2.66.tar.bz2 | 3 -- Template-GD-2.66.tar.gz | 3 ++ cpanspec.yml | 28 +++++++++++++++ perl-Template-GD.changes | 5 +++ perl-Template-GD.spec | 78 ++++++++++++++++++++++++---------------- 5 files changed, 83 insertions(+), 34 deletions(-) delete mode 100644 Template-GD-2.66.tar.bz2 create mode 100644 Template-GD-2.66.tar.gz create mode 100644 cpanspec.yml diff --git a/Template-GD-2.66.tar.bz2 b/Template-GD-2.66.tar.bz2 deleted file mode 100644 index 1b8db93..0000000 --- a/Template-GD-2.66.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cb41a0db8232984e3b2540516c78824b20c6eb80be7d53f6b47e77be9ac9a63c -size 12157 diff --git a/Template-GD-2.66.tar.gz b/Template-GD-2.66.tar.gz new file mode 100644 index 0000000..a73e692 --- /dev/null +++ b/Template-GD-2.66.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98523c8192f2e8184042e5a2e172bd767ac289dd2e480f35f680dce32160905b +size 12827 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..f9087a5 --- /dev/null +++ b/cpanspec.yml @@ -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 License +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-Template-GD.changes b/perl-Template-GD.changes index 35d4759..4102605 100644 --- a/perl-Template-GD.changes +++ b/perl-Template-GD.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Oct 8 09:41:58 UTC 2017 - coolo@suse.com + +- regenerate with cpanspec + ------------------------------------------------------------------- Mon Nov 29 18:31:09 UTC 2010 - coolo@novell.com diff --git a/perl-Template-GD.spec b/perl-Template-GD.spec index b5f50b5..4e240c7 100644 --- a/perl-Template-GD.spec +++ b/perl-Template-GD.spec @@ -1,46 +1,62 @@ -%define modname Template-GD -Name: perl-%{modname} +# +# spec file for package perl-Template-GD +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: perl-Template-GD Version: 2.66 -Release: 1 -Summary: GD plugin(s) for the Template Toolkit -Requires: perl = %{perl_version} perl-GD perl-Template-Toolkit -BuildRequires: perl perl-macros perl-GD perl-Template-Toolkit -License: GPL/Artistic +Release: 0 +#Upstream: CHECK(GPL-1.0+ or Artistic-1.0) +%define cpan_name Template-GD +Summary: Template::GD Perl module +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -Source: %{modname}-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-root +Url: http://search.cpan.org/dist/Template-GD/ +Source0: https://cpan.metacpan.org/authors/id/A/AB/ABW/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(GD) >= 1.14 +BuildRequires: perl(Template) >= 2.14 +Requires: perl(GD) >= 1.14 +Requires: perl(Template) >= 2.14 +%{perl_requires} %description -The Template-GD distribution provides a number of Template Toolkit plugin -modules to interface with Lincoln Stein's GD modules. These in turn provide an -interface to Thomas Boutell's GD graphics library. - -Authors: --------- - Andy Wardley - Craig Barratt +Template::GD Perl module %prep -%setup -q -n %{modname}-%{version} +%setup -q -n %{cpan_name}-%{version} %build -perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -make -make test +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install -make DESTDIR=$RPM_BUILD_ROOT install_vendor +%perl_make_install %perl_process_packlist +%perl_gen_filelist -%clean -rm -rf %{buildroot} - -%files -%defattr(-, root, root) +%files -f %{name}.files +%defattr(-,root,root,755) %doc README -%doc %{_mandir}/man?/* -%{perl_vendorlib}/Template -%{perl_vendorarch}/auto/Template %changelog -