rpms/perl-Jemplate/devel Jemplate.pm-0.23_1.patch, NONE, 1.1 import.log, NONE, 1.1 perl-Jemplate.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Author: cweyl

Update of /cvs/extras/rpms/perl-Jemplate/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv30878/devel

Modified Files:
	.cvsignore sources 
Added Files:
	Jemplate.pm-0.23_1.patch import.log perl-Jemplate.spec 
Log Message:
initial import

Jemplate.pm-0.23_1.patch:

--- NEW FILE Jemplate.pm-0.23_1.patch ---
Bring Jemplate.pm up to 0.23_1 (except for $VERSION).  This resolves issues
with Catalyst::View::Jemplate; see RT#37813, RT#35609, etc. 

--- Jemplate-0.23/lib/Jemplate.pm	2009-03-27 18:37:11.405746135 -0700
+++ Jemplate-0.23_1/lib/Jemplate.pm	2008-08-18 15:35:48.000000000 -0700
@@ -77,7 +77,7 @@
     my ($runtime, $compile, $list) = @$jemplate_options{qw/runtime compile list/};
 
     if ($runtime) {
-        runtime_source_code(@$jemplate_options{qw/runtime ajax json xhr xxx compact/});
+        print runtime_source_code(@$jemplate_options{qw/runtime ajax json xhr xxx compact/});
         return unless $compile;
     }
 
@@ -262,6 +262,8 @@
     require Jemplate::Runtime;
     require Jemplate::Runtime::Compact;
 
+    unshift @_, "standard" unless @_;
+
     my ($runtime, $ajax, $json, $xhr, $xxx, $compact) = map { defined $_ ? lc $_ : "" } @_[0 .. 5];
 
     my $Jemplate_Runtime = $compact ? "Jemplate::Runtime::Compact" : "Jemplate::Runtime";
@@ -311,7 +313,7 @@
 
     push @runtime, $Jemplate_Runtime->xxx if $xxx;
 
-    print join ";", @runtime;
+    return join ";", @runtime;
 }
 
 #-------------------------------------------------------------------------------
@@ -383,7 +385,7 @@
    Template Toolkit. Any changes made to this file will be lost the next
    time the templates are compiled.
 
-   Copyright 2006 - Ingy döt Net - All rights reserved.
+   Copyright 2006-2008 - Ingy döt Net - All rights reserved.
 */
 
 if (typeof(Jemplate) == 'undefined')


--- NEW FILE import.log ---
perl-Jemplate-0_23-2_fc10:HEAD:perl-Jemplate-0.23-2.fc10.src.rpm:1238288793


--- NEW FILE perl-Jemplate.spec ---
Name:       perl-Jemplate 
Version:    0.23 
Release:    2%{?dist}
# lib/Jemplate.pm -> GPL+ or Artistic
# lib/Jemplate/Directive.pm -> GPL+ or Artistic
# lib/Jemplate/Parser.pm -> GPL+ or Artistic
# lib/Jemplate/Runtime.pm -> GPL+ or Artistic
# lib/Jemplate/Runtime/Compact.pm -> GPL+ or Artistic
License:    GPL+ or Artistic 
Group:      Development/Libraries
Summary:    JavaScript Templating with Template Toolkit 
Source:     http://search.cpan.org/CPAN/authors/id/R/RK/RKRIMEN/Jemplate-%{version}.tar.gz 
Patch0:     Jemplate.pm-0.23_1.patch 
Url:        http://search.cpan.org/dist/Jemplate
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch:  noarch

BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(File::Find::Rule) >= 0.30
BuildRequires: perl(Template) >= 2.19

# tests
BuildRequires: perl(Test::Base)
BuildRequires: perl(Test::Base::Filter)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(HTTP::Daemon)
BuildRequires: perl(HTTP::Status)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(IO::All)
BuildRequires: perl(LWP::MediaTypes)
BuildRequires: perl(Path::Class)
BuildRequires: perl(JSON)

%description
Jemplate is a templating framework for JavaScript that is built over
Perl's Template Toolkit (TT2). Jemplate parses TT2 templates using the
TT2 Perl framework, but with a twist. Instead of compiling the templates
into Perl code, it compiles them into JavaScript. Jemplate then provides
a JavaScript runtime module for processing the template code. Presto, we
have full featured JavaScript templating language!



%prep
%setup -q -n Jemplate-%{version}
%patch0 -p1

cat doc/text/Jemplate.text | iconv -f iso-8859-1 -t utf-8 > foo
cat foo > doc/text/Jemplate.text
rm foo

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
rm -rf %{buildroot}

make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'

%{_fixperms} %{buildroot}/*

%check
make test

%clean
rm -rf %{buildroot} 

%files
%defattr(-,root,root,-)
%doc Changes LICENSE README doc/ examples/ 
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%{_bindir}/jemplate
%{_mandir}/man1/jemplate.1.gz

%changelog
* Sat Mar 28 2009 Chris Weyl <cweyl@xxxxxxxxxxxxxxx> 0.23-2
- apply a partial patch to Jemplate.pm from 0.23_01, to resolve issues with
  this release and Catalyst::View::Jemplate

* Tue Mar 24 2009 Chris Weyl <cweyl@xxxxxxxxxxxxxxx> 0.23-1
- touch-up

* Tue Mar 24 2009 Chris Weyl <cweyl@xxxxxxxxxxxxxxx> 0.23-0
- initial RPM packaging
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-Jemplate/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	27 Mar 2009 20:38:47 -0000	1.1
+++ .cvsignore	29 Mar 2009 01:06:44 -0000	1.2
@@ -0,0 +1 @@
+Jemplate-0.23.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-Jemplate/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	27 Mar 2009 20:38:47 -0000	1.1
+++ sources	29 Mar 2009 01:06:44 -0000	1.2
@@ -0,0 +1 @@
+208799c450df16134949ee031b92eef4  Jemplate-0.23.tar.gz

--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
Fedora-perl-devel-list mailing list
Fedora-perl-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-perl-devel-list

[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux