]> git.pld-linux.org Git - packages/perl-Font-FreeType.git/blame - perl-Font-FreeType.spec
- disable tests (last package version was released in 2004, tests fail with any recen...
[packages/perl-Font-FreeType.git] / perl-Font-FreeType.spec
CommitLineData
50f65e50 1#
51c9f173 2# TODO: check why tests fail (freetype expert needed)
50f65e50 3#
4# Conditional build:
51c9f173 5%bcond_with tests # do perform "make test" (fails with recent freetype versions)
50f65e50 6#
7%include /usr/lib/rpm/macros.perl
8%define pdir Font
9%define pnam FreeType
10Summary: Font::FreeType - read font files and render glyphs from Perl using FreeType2
aa961e57 11Summary(pl.UTF-8): Font::FreeType - odczyt plików fontów oraz rendering znaków graficznych za pomocą FreeType2
50f65e50 12Name: perl-Font-FreeType
13Version: 0.03
5f9916cb 14Release: 6
50f65e50 15# same as perl
16License: GPL v1+ or Artistic
17Group: Development/Languages/Perl
18Source0: http://www.cpan.org/modules/by-module/Font/%{pdir}-%{pnam}-%{version}.tar.gz
19# Source0-md5: 47b9483c92f1b2df0bbb5258a6a596b2
da3f1dd8 20Patch0: %{name}-gcc4.patch
1c7a17f3 21URL: http://search.cpan.org/dist/Font-FreeType/
5961ebc9 22BuildRequires: freetype-devel >= 2
50f65e50 23BuildRequires: perl-devel >= 1:5.8.0
cb04db79 24BuildRequires: rpm-perlprov >= 4.1-13
50f65e50 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28This module allows Perl programs to conveniently read information from
29font files. All the font access is done through the FreeType2 library,
30which supports many formats. It can render images of characters with
31high-quality hinting and antialiasing, extract metrics information,
32and extract the outlines of characters in scalable formats like
33TrueType.
34
94f24bbe
JR
35%description -l pl.UTF-8
36Moduł ten umożliwia programom perlowym odczyt informacji z plików
37fontów w wygodny sposób. Cały dostęp do fontów odbywa sie poprzez
38bibliotekę FreeType2, która wspiera wiele formatów. Umożliwia
39renderowanie obrazów znaków, wysokiej jakości hinting i antyaliasing,
40pobieranie informacji o metryce oraz pobieranie zarysów znaków dla
41formatów skalowalnych, takich jak TrueType.
50f65e50 42
43%prep
44%setup -q -n %{pdir}-%{pnam}-%{version}
da3f1dd8 45%patch0 -p1
50f65e50 46
47%build
48%{__perl} Makefile.PL \
49 INSTALLDIRS=vendor
50%{__make} \
adfb2345 51 CC="%{__cc}" \
50f65e50 52 OPTIMIZE="%{rpmcflags}"
53
54%{?with_tests:%{__make} test}
55
56%install
57rm -rf $RPM_BUILD_ROOT
58
59%{__make} install \
60 DESTDIR=$RPM_BUILD_ROOT
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%files
66%defattr(644,root,root,755)
cb04db79 67%dir %{perl_vendorarch}/Font
51c9f173 68%{perl_vendorarch}/Font/FreeType.pm
50f65e50 69%{perl_vendorarch}/Font/FreeType
cb04db79 70%dir %{perl_vendorarch}/auto/Font
50f65e50 71%dir %{perl_vendorarch}/auto/Font/FreeType
51c9f173
JB
72%attr(755,root,root) %{perl_vendorarch}/auto/Font/FreeType/FreeType.so
73%{perl_vendorarch}/auto/Font/FreeType/FreeType.bs
74%{_mandir}/man3/Font::FreeType.3pm*
This page took 0.410497 seconds and 4 git commands to generate.