+++ /dev/null
-diff -urN Font-FreeType-0.03.org/FreeType.xs Font-FreeType-0.03/FreeType.xs
---- Font-FreeType-0.03.org/FreeType.xs 2004-09-11 22:50:44.000000000 +0200
-+++ Font-FreeType-0.03/FreeType.xs 2007-06-10 00:44:09.873808974 +0200
-@@ -805,7 +805,7 @@
- char_code = FT_Get_First_Char(face, &glyph_idx);
- while (glyph_idx) {
- if (glyph_idx == glyph->index) {
-- RETVAL = newSVuv((UV) glyph->char_code = char_code);
-+ RETVAL = newSVuv(glyph->char_code = char_code);
- break;
- }
- char_code = FT_Get_Next_Char(face, char_code, &glyph_idx);
#
-# TODO: check why tests fail (freetype expert needed)
-#
# Conditional build:
-%bcond_with tests # do perform "make test" (fails with recent freetype versions)
+%bcond_without tests # unit tests
#
%define pdir Font
%define pnam FreeType
Summary: Font::FreeType - read font files and render glyphs from Perl using FreeType2
Summary(pl.UTF-8): Font::FreeType - odczyt plików fontów oraz rendering znaków graficznych za pomocą FreeType2
Name: perl-Font-FreeType
-Version: 0.03
-Release: 17
+Version: 0.16
+Release: 1
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Font/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 47b9483c92f1b2df0bbb5258a6a596b2
-Patch0: %{name}-gcc4.patch
-URL: http://search.cpan.org/dist/Font-FreeType/
+# Source0-md5: 01b17b1844c7369084288bb6c70b9021
+URL: https://metacpan.org/dist/Font-FreeType
BuildRequires: freetype-devel >= 2
+BuildRequires: perl-Devel-CheckLib
+BuildRequires: perl-ExtUtils-MakeMaker >= 6.64
+BuildRequires: perl-File-Which
+%if %{with tests}
+BuildRequires: perl-Test-Warnings
+%endif
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
-%patch0 -p1
%build
%{__perl} Makefile.PL \