[perl-Barcode-Code128] Initial import (#700346).
by Nicholas van Oudtshoorn
commit 414638fb91e5800a455734943a09ce7903dab255
Author: Nicholas van Oudtshoorn <vanoudt(a)gmail.com>
Date: Fri Jul 15 08:40:35 2011 +0800
Initial import (#700346).
.gitignore | 1 +
perl-Barcode-Code128-testfix.patch | 33 +++++++++++++++++++++
perl-Barcode-Code128.spec | 55 ++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4b4d6e3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Barcode-Code128-2.01.tar.gz
diff --git a/perl-Barcode-Code128-testfix.patch b/perl-Barcode-Code128-testfix.patch
new file mode 100644
index 0000000..08c4fb5
--- /dev/null
+++ b/perl-Barcode-Code128-testfix.patch
@@ -0,0 +1,33 @@
+--- t/png.t.orig 2011-04-28 16:53:40.149925007 +0800
++++ t/png.t 2011-04-28 16:55:24.229044665 +0800
+@@ -19,13 +19,21 @@
+ use strict;
+ my $code = new Barcode::Code128;
+ my $file = "t/code128.png";
+-my $good;
+-{
+- open IM, $file or die "Can't read $file: $!";
+- binmode IM;
+- read IM, $good, -s $file;
+- close IM;
+-}
++my $expected_image = GD::Image->new($file);
++
+ my $test = $code->png("CODE 128");
+-print "not " unless $test eq $good;
++my $got_image = GD::Image->new($test);
++
++my $cmp = $expected_image->compare($got_image);
++print "not " if $cmp != 0;
+ print "ok 2\n";
++
++if ($cmp & &GD::GD_CMP_IMAGE) { warn "The two images look different\n" }
++if ($cmp & &GD::GD_CMP_NUM_COLORS) { warn "The two images have different numbers of colors\n"}
++if ($cmp & &GD::GD_CMP_COLOR) { warn "The two images' palettes differ\n"}
++if ($cmp & &GD::GD_CMP_SIZE_X) { warn "The two images differ in the horizontal dimension\n"}
++if ($cmp & &GD::GD_CMP_SIZE_Y) { warn "The two images differ in the vertical dimension\n"}
++if ($cmp & &GD::GD_CMP_TRANSPARENT) { warn "The two images have different transparency\n"}
++if ($cmp & &GD::GD_CMP_BACKGROUND) { warn "The two images have different background colors\n"}
++if ($cmp & &GD::GD_CMP_INTERLACE) { warn "The two images differ in their interlace\n"}
++if ($cmp & &GD::GD_CMP_TRUECOLOR) { warn "The two images are not both true color\n"}
+
diff --git a/perl-Barcode-Code128.spec b/perl-Barcode-Code128.spec
new file mode 100644
index 0000000..61395c8
--- /dev/null
+++ b/perl-Barcode-Code128.spec
@@ -0,0 +1,55 @@
+name: perl-Barcode-Code128
+Version: 2.01
+Release: 3%{?dist}
+Summary: Generate CODE 128 bar codes
+License: Public Domain
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/Barcode-Code128/
+Source0: http://www.cpan.org/authors/id/W/WR/WRW/Barcode-Code128-%{version}.tar.gz
+Patch0: perl-Barcode-Code128-testfix.patch
+BuildArch: noarch
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(GD)
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(GD)
+
+%description
+Barcode::Code128 generates bar codes using the CODE 128 symbology. It can
+generate images in PNG or GIF format using the GD package, or it can
+generate a text string representing the barcode that you can render using
+some other technology if desired.
+
+%prep
+%setup -q -n Barcode-Code128-%{version}
+%patch0
+rm t/gif.t
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Tue May 24 2011 Nicholas van Oudtshoorn <vanoudt(a)gmail.com> 2.01-3
+- Simplified the spec file to conform to Fedora guidelines
+* Tue May 24 2011 Nicholas van Oudtshoorn <vanoudt(a)gmail.com> 2.01-2
+- Added build and run-time dependency on perl(GD)
+* Thu Apr 28 2011 Nicholas van Oudtshoorn <vanoudt(a)gmail.com> 2.01-1
+- Specfile autogenerated by cpanspec 1.78.
+- Disable tests since they are broken
+
diff --git a/sources b/sources
index e69de29..cbf601a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a0aa077b26926c30659471d14515d907 Barcode-Code128-2.01.tar.gz
12 years, 11 months
[perl-HTML-Template] 2.10
by Tom Callaway
commit 992ca89c736f2d627bcbde52588e4245e4a9516e
Author: Tom "spot" Callaway <tcallawa(a)redhat.com>
Date: Thu Jul 14 15:13:10 2011 -0400
2.10
.gitignore | 1 +
perl-HTML-Template-manpages.patch | 86 +++++++------------------------------
perl-HTML-Template.spec | 15 +++----
sources | 2 +-
4 files changed, 24 insertions(+), 80 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index f2e653e..4bb4d97 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
HTML-Template-2.9.tar.gz
+/HTML-Template-2.10.tar.gz
diff --git a/perl-HTML-Template-manpages.patch b/perl-HTML-Template-manpages.patch
index e8fed10..0febe35 100644
--- a/perl-HTML-Template-manpages.patch
+++ b/perl-HTML-Template-manpages.patch
@@ -1,75 +1,21 @@
-diff -up HTML-Template-2.9/Template.pm.old HTML-Template-2.9/Template.pm
---- HTML-Template-2.9/Template.pm.old 2007-01-29 20:32:21.000000000 +0100
-+++ HTML-Template-2.9/Template.pm 2010-12-17 11:44:31.368712345 +0100
-@@ -14,7 +14,7 @@ extra tags, the simplest being <TMPL_VAR
- For example, test.tmpl:
-
- <html>
-- <head><title>Test Template</title>
-+ <head><title>Test Template</title></head>
- <body>
- My Home Directory is <TMPL_VAR NAME=HOME>
- <p>
-@@ -271,7 +271,7 @@ available. As a final attempt, the file
- directly. See below for more information on HTML_TEMPLATE_ROOT and
- the "path" option to new().
-
--As a protection against infinitly recursive includes, an arbitary
+diff -up HTML-Template-2.10/lib/HTML/Template.pm.old HTML-Template-2.10/lib/HTML/Template.pm
+--- HTML-Template-2.10/lib/HTML/Template.pm.old 2011-07-14 15:09:24.064824098 -0400
++++ HTML-Template-2.10/lib/HTML/Template.pm 2011-07-14 15:11:42.792823364 -0400
+@@ -298,7 +298,7 @@ if available. As a final attempt, the f
+ directly. See below for more information on C<HTML_TEMPLATE_ROOT>
+ and the C<path> option to C<new()>.
+
+-As a protection against infinitly recursive includes, an arbitrary
+As a protection against infinitely recursive includes, an arbitrary
limit of 10 levels deep is imposed. You can alter this limit with the
- "max_includes" option. See the entry for the "max_includes" option
+ C<max_includes> option. See the entry for the C<max_includes> option
below for more details.
-@@ -715,7 +715,7 @@ the order they appear:
- The old associateCGI() call is still supported, but should be
- considered obsolete.
-
--NOTE: The parameter names are matched in a case-insensitve manner. If
-+NOTE: The parameter names are matched in a case-insensitive manner. If
- you have two parameters in a CGI object like 'NAME' and 'Name' one
- will be chosen randomly by associate. This behavior can be changed by
- the following option.
-@@ -852,7 +852,7 @@ HTML::Template reads your template file
- template tags.
-
- In the most simple usage, you simply assign a code reference to the
--filter parameter. This subroutine will recieve a single argument - a
-+filter parameter. This subroutine will receive a single argument - a
- reference to a string containing the template file text. Here is an
- example that accepts templates with tags that look like "!!!ZAP_VAR
- FOO!!!" and transforms them into HTML::Template tags:
-@@ -867,7 +867,7 @@ FOO!!!" and transforms them into HTML::T
- filter => $filter);
+@@ -980,7 +980,7 @@ C<!!!ZAP_VAR FOO!!!> and transforms them
+ );
More complicated usages are possible. You can request that your
--filter receieve the template text as an array of lines rather than as
-+filter receive the template text as an array of lines rather than as
- a single scalar. To do that you need to specify your filter using a
- hash-ref. In this form you specify the filter using the C<sub> key and
- the desired argument format using the C<format> key. The available
-@@ -902,7 +902,7 @@ unless they declare a different escape i
-
- =back
-
--=back 4
-+=back
-
- =cut
-
-@@ -2428,7 +2428,7 @@ C<param()> can be called in a number of
- $self->param(PARAM => 'value');
-
- # with a subroutine reference that gets called to get the value
-- # of the scalar. The sub will recieve the template object as a
-+ # of the scalar. The sub will receive the template object as a
- # parameter.
- $self->param(PARAM => sub { return 'value' });
-
-@@ -3263,7 +3263,7 @@ Q: How can I execute a program from insi
-
- A: Short answer: you can't. Longer answer: you shouldn't since this
- violates the fundamental concept behind HTML::Template - that design
--and code should be seperate.
-+and code should be separate.
-
- But, inevitably some people still want to do it. If that describes
- you then you should take a look at
+-filter receieve the template text as an array of lines rather than
++filter receive the template text as an array of lines rather than
+ as a single scalar. To do that you need to specify your filter using
+ a hash-ref. In this form you specify the filter using the C<sub> key
+ and the desired argument format using the C<format> key. The available
diff --git a/perl-HTML-Template.spec b/perl-HTML-Template.spec
index e6abc79..940da8e 100644
--- a/perl-HTML-Template.spec
+++ b/perl-HTML-Template.spec
@@ -1,6 +1,6 @@
Name: perl-HTML-Template
-Version: 2.9
-Release: 11%{?dist}
+Version: 2.10
+Release: 1%{?dist}
Summary: Perl module to use HTML Templates
Group: Development/Libraries
@@ -40,7 +40,6 @@ make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
@@ -51,18 +50,16 @@ chmod -R u+w $RPM_BUILD_ROOT/*
TEST_SHARED_MEMORY=1 make test
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
%files
-%defattr(-,root,root,-)
-%doc ANNOUNCE ARTISTIC Changes FAQ GPL README
+%doc Changes LICENSE README
%{perl_vendorlib}/HTML/
%{_mandir}/man3/*.3pm*
%changelog
+* Thu Jul 14 2011 Tom Callaway <spot(a)fedoraproject.org> - 2.10-1
+- update to 2.10
+
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano(a)redhat.com> - 2.9-11
- Perl mass rebuild
diff --git a/sources b/sources
index c66de81..b03268a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-cbf88a486b36284be55765ac7357c187 HTML-Template-2.9.tar.gz
+49537aa239ab090698b9e1a0b0be7412 HTML-Template-2.10.tar.gz
12 years, 11 months
[bucardo/el6: 3/3] Merge branch 'master' into el6
by Itamar Reis Peixoto
commit effff30d78dbe59b41d0fb9dc9e19ce4cf2b3f0e
Merge: 0bb7f71 2a1c3f8
Author: Itamar Reis Peixoto <itamar(a)ispbrasil.com.br>
Date: Thu Jul 14 14:45:08 2011 -0300
Merge branch 'master' into el6
.gitignore | 2 ++
bucardo.spec | 11 ++++++++---
sources | 4 ++--
3 files changed, 12 insertions(+), 5 deletions(-)
---
12 years, 11 months