[perl-Font-TTFMetrics] Initial import.

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

 



commit 00ebb31882046e2d060b500140a07dafc3bfba82
Author: Xavier Bachelot <xavier@xxxxxxxxxxxx>
Date:   Tue Aug 24 21:43:40 2010 +0200

    Initial import.

 .gitignore                |    1 +
 perl-Font-TTFMetrics.spec |   63 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a683e99 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Font-TTFMetrics-0.1.tar.gz
diff --git a/perl-Font-TTFMetrics.spec b/perl-Font-TTFMetrics.spec
new file mode 100644
index 0000000..bf2dd78
--- /dev/null
+++ b/perl-Font-TTFMetrics.spec
@@ -0,0 +1,63 @@
+Name:           perl-Font-TTFMetrics
+Version:        0.1
+Release:        2%{?dist}
+Summary:        Parser for the TTF file
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Font-TTFMetrics/
+Source0:        http://www.cpan.org/modules/by-module/Font/Font-TTFMetrics-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+Font::TTFMetrics encapsulates the font metrics of a true type font file. A
+true type font file contains several tables which need to be parsed before
+any useful information could be gathered about the font. There is the
+excellent module for parsing TTF font in CPAN by Martin Hosken, Font::TTF.
+But in my opinion the use of Font::TTF requires intimate knowledge of TTF
+font format. This module was written to support the use of TTF in Pastel 2D
+graphics library in Perl. Three factors prompted me to write this module:
+first, I required a fast module to access TTF file. Second, all the access
+required was read-only. Last, I wanted a user friendly, higher level API to
+access TTF file.
+
+%prep
+%setup -q -n Font-TTFMetrics-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+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 \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+chmod a-x $RPM_BUILD_ROOT/%{perl_vendorlib}/Font/TTFMetrics.pm
+
+%check
+make test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Tue Aug 17 2010 Xavier Bachelot <xavier@xxxxxxxxxxxx> 0.1-2
+- Add missing BR: perl(Test::More).
+
+* Thu Jul 29 2010 Xavier Bachelot <xavier@xxxxxxxxxxxx> 0.1-1
+- Specfile autogenerated by cpanspec 1.78.
+- Fix License.
diff --git a/sources b/sources
index e69de29..f3d7460 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+87295ec80f49a2f088925d35fae77cc8  Font-TTFMetrics-0.1.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel


[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