fix build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Template-JIT?expand=0&rev=16
This commit is contained in:
34
cpanspec.yml
Normal file
34
cpanspec.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
#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
|
||||
#skip_doc: regexp_to_skip_for_doc.*
|
||||
#add_doc: files to add to docs
|
||||
#misc: |-
|
||||
#anything else to be added to spec file
|
||||
#follows directly after %files section, so it can contain new blocks or also
|
||||
#changes to %files section
|
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 13 22:57:32 UTC 2020 - Dirk Stoecker <opensuse@dstoecker.de>
|
||||
|
||||
- regenerate specfile
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 18 11:08:37 UTC 2011 - coolo@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-HTML-Template-JIT
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,58 +12,85 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: perl-HTML-Template-JIT
|
||||
BuildRequires: perl-HTML-Template perl-Inline-C
|
||||
BuildRequires: perl-macros
|
||||
Url: http://www.cpan.org/modules/by-module/HTML
|
||||
License: GPLv2+
|
||||
Group: Development/Libraries/Perl
|
||||
AutoReqProv: on
|
||||
Summary: Just-In-Time Compiler for HTML Templates
|
||||
Version: 0.05
|
||||
Release: 143
|
||||
Source: HTML-Template-JIT-%{version}.tar.gz
|
||||
Release: 0
|
||||
#Upstream: HTML::Template::JIT : Just-in-time compiler for HTML::Template This module is free software; you can redistribute it and/or modify it under the terms of either: a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" which comes with this module. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the Artistic License for more details. You should have received a copy of the Artistic License with this module, in the file ARTISTIC. If not, I'll be glad to provide one. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
%define cpan_name HTML-Template-JIT
|
||||
Summary: Just-in-time compiler for HTML::Template
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Group: Development/Libraries/Perl
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/S/SA/SAMTREGAR/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(HTML::Template) >= 2.8
|
||||
BuildRequires: perl(Inline) >= 0.43
|
||||
BuildRequires: perl(Inline::C)
|
||||
Requires: perl(HTML::Template) >= 2.8
|
||||
Requires: perl(Inline) >= 0.43
|
||||
Requires: perl(Inline::C)
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
This is a just in time compiler for the HTML Template module. Makes the
|
||||
use of templates very fast.
|
||||
This module provides a just-in-time compiler for HTML::Template. The module
|
||||
works in two phases:
|
||||
|
||||
* Load
|
||||
|
||||
When new() is called the module checks to see if it already has an
|
||||
up-to-date version of your template compiled. If it does it loads the
|
||||
compiled version and returns you a handle to call param() and output().
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Sam Tregar <sam@tregar.com>
|
||||
* Compile
|
||||
|
||||
If your template needs to be compiled - either because it has changed or
|
||||
because it has never been compiled - then HTML::Template::JIT loads
|
||||
HTML::Template::JIT::Compiler which uses HTML::Template and Inline::C to
|
||||
compile your template to native machine instructions.
|
||||
|
||||
The compiled form is saved to disk in the jit_path directory and control
|
||||
returns to the Load phase.
|
||||
|
||||
This may sound a lot like the way HTML::Template's cache mode works but
|
||||
there are some significant differences:
|
||||
|
||||
* The compilation phase takes a long time. Depending on your system it might
|
||||
take several seconds to compile a large template.
|
||||
|
||||
* The resulting compiled template is much faster than a normal cached
|
||||
template. My benchmarks show HTML::Template::JIT, with a precompiled
|
||||
template, performing 4 to 8 times faster than HTML::Template in cache mode.
|
||||
|
||||
* The resulting compiled template should use less memory than a normal cached
|
||||
template. Also, if all your templates are already compiled then you don't
|
||||
even have to load HTML::Template to use the templates!
|
||||
|
||||
%prep
|
||||
%setup -n HTML-Template-JIT-%{version}
|
||||
# ---------------------------------------------------------------------------
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_process_packlist
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorarch}/auto/HTML/Template/JIT*
|
||||
%{perl_vendorlib}/HTML/Template
|
||||
%doc ANNOUNCE ARTISTIC Changes GPL MANIFEST README
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc ANNOUNCE Changes README
|
||||
%license ARTISTIC GPL
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user