[perl-PDF-Haru] Initial upload

cheeselee cheeselee at fedoraproject.org
Tue Nov 23 02:30:55 UTC 2010


commit 66c1f8f3d6afa30a3d1a02f0631f4cc79763ecd3
Author: Robin Lee <cheeselee at fedoraproject.org>
Date:   Tue Nov 23 10:31:44 2010 +0800

    Initial upload

 .gitignore         |    1 +
 perl-PDF-Haru.spec |   75 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4c9fb99 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/PDF-Haru-1.00.tar.gz
diff --git a/perl-PDF-Haru.spec b/perl-PDF-Haru.spec
new file mode 100644
index 0000000..f1015f4
--- /dev/null
+++ b/perl-PDF-Haru.spec
@@ -0,0 +1,75 @@
+Name:           perl-PDF-Haru
+Version:        1.00
+Release:        2%{?dist}
+Summary:        Perl interface to Haru Free PDF Library
+
+Group:          Development/Libraries
+License:        GPL+ or Artistic
+URL:            http://search.cpan.org/dist/PDF-Haru/
+Source0:        http://search.cpan.org/CPAN/authors/id/B/BU/BUTILW/PDF-Haru-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(AutoLoader)
+Buildrequires:  perl(XSLoader)
+Buildrequires:  perl(constant)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Test::More)
+BuildRequires:  libharu-devel
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+%description
+Perl interface to Haru Free PDF Library. It supports the following features:
+
+   1. Generating PDF files with lines, text, images.
+   2. Outline, text annotation, link annotation.
+   3. Compressing document with deflate-decode.
+   4. Embedding PNG, Jpeg images.
+   5. Embedding Type1 font and TrueType font.
+   6. Creating encrypted PDF files.
+   7. Using various character sets (ISO8859-1~16, MSCP1250~8, KOI8-R).
+   8. Supporting CJK fonts and encodings.
+
+%prep
+%setup -q -n PDF-Haru-%{version}
+chmod -x examples/*.pl
+
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+
+%check
+make test
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README examples/
+%{perl_vendorarch}/PDF/
+%{perl_vendorarch}/auto/PDF/
+%{_mandir}/man3/*.3*
+
+
+%changelog
+* Fri Nov 19 2010 Robin Lee <cheeselee at fedoraproject.org> - 1.00-2
+- BR: perl(Exporter), perl(AutoLoader), perl(XSLoader) and perl(constant) added
+- Removed executable bits from examples/*.pl scripts
+
+* Sun Nov  7 2010 Robin Lee <cheeselee at fedoraproject.org> - 1.00-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..aca1de0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+64332db5c86550d8b07ede926908c03f  PDF-Haru-1.00.tar.gz


More information about the scm-commits mailing list