summaryrefslogtreecommitdiff
path: root/packaging/freetype2.spec
blob: 1c01dfd77731b3243a8df2baff409f5d1c6865fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Name:           freetype2
BuildRequires:  pkg-config
BuildRequires:  zlib-devel
Version:        2.4.9
Release:        0
Summary:        A TrueType Font Library
License:        Freetype or GPL-2.0+
Group:          Graphics/Font Management
Url:            http://www.freetype.org
Source0:        http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.bz2
Source2:        baselibs.conf
Source1001: 	freetype2.manifest

%description
This library features TrueType fonts for open source projects. This
version also contains an autohinter for producing improved output.

%package -n libfreetype
Summary:        A TrueType Font Library
Group:          Graphics/Font Management

%description -n libfreetype
This library features TrueType fonts for open source projects. This
version also contains an autohinter for producing improved output.

%package devel
Summary:        Development environment for the freetype2 TrueType font library
Group:          Development/Libraries
Requires:       libfreetype = %{version}
Requires:       zlib-devel
Provides:       freetype-devel

%description devel
This package contains all necessary include files, libraries and
documentation needed to develop applications that require the freetype2
TrueType font library.

It also contains a small tutorial for using that library.

%prep
%define enable_subpixel_rendering 0
%setup -q -n freetype-%{version} 
cp %{SOURCE1001} .

%build
export CFLAGS="%optflags -std=gnu99 -D_GNU_SOURCE"
%configure --without-bzip2 \
           --disable-static
make %{?_smp_mflags}

%install
%make_install

rm docs/INSTALL*

%post -n libfreetype -p /sbin/ldconfig

%postun -n libfreetype -p /sbin/ldconfig

%files -n libfreetype
%manifest %{name}.manifest
%defattr(-,root,root)
%{_libdir}/libfreetype.so.*

%files devel
%manifest %{name}.manifest
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/libfreetype.so
%{_libdir}/pkgconfig/freetype2.pc
%{_bindir}/*
%{_datadir}/aclocal

%changelog