]>
Commit | Line | Data |
---|---|---|
20fa60c9 KP |
1 | Summary: System for configuring and customizing font access |
2 | Name: fontconfig | |
3 | Version: @VERSION@ | |
4 | Release: 1 | |
5 | License: MIT | |
6 | Group: System Environment/Libraries | |
7 | Source: http://fontconfig.org/fontconfig.tar.gz | |
8 | BuildRoot: /var/tmp/%{name}-%{version}-root | |
9 | Requires: freetype2 | |
10 | BuildRequires: freetype2-devel | |
11 | ||
12 | %description | |
13 | System for layout and rendering of internationalized text. | |
14 | ||
15 | %package devel | |
16 | Summary: System for layout and rendering of internationalized text | |
17 | Group: Development/Libraries | |
18 | Requires: %{name} = %{version} | |
19 | Requires: freetype2-devel | |
20 | ||
21 | %description devel | |
22 | The fontconfig-devel package includes the static libraries and header files | |
23 | for the fontconfig package. | |
24 | ||
25 | Install fontconfig-devel if you want to develop programs which will use | |
26 | fontconfig. | |
27 | ||
28 | %prep | |
29 | %setup | |
30 | ||
31 | %build | |
32 | CFLAGS="$RPM_OPT_FLAGS" | |
33 | ./configure --prefix=%{_prefix} \ | |
34 | --bindir=%{_bindir} --mandir=%{_mandir} \ | |
35 | --localstatedir=%{_localstatedir} --libdir=%{_libdir} \ | |
36 | --datadir=%{_datadir} --includedir=%{_includedir} \ | |
37 | --sysconfdir=%{_sysconfdir} --disable-gtk-doc | |
38 | make | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \ | |
44 | mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} \ | |
45 | localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \ | |
46 | datadir=$RPM_BUILD_ROOT%{_datadir} \ | |
47 | includedir=$RPM_BUILD_ROOT%{_includedir} \ | |
48 | sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %post | |
54 | /sbin/ldconfig | |
55 | ||
56 | %postun -p /sbin/ldconfig | |
57 | ||
58 | %files | |
59 | %doc README AUTHORS COPYING ChangeLog TODO | |
60 | %{_libdir}/libfontconfig*.so | |
61 | %{_bindir}/fc-* | |
62 | %{_libdir}/pango | |
63 | %config %{_sysconfdir}/fonts/fonts.conf | |
64 | %config %{_sysconfdir}/fonts/fonts.dtd | |
65 | %config %{_sysconfdir}/fonts/local.conf | |
66 | ||
67 | %files devel | |
68 | %defattr(-, root, root) | |
69 | %{_libdir}/libfontconfig*.so | |
70 | %{_libdir}/*a | |
71 | %{_libdir}/pkgconfig/*.pc | |
72 | %{_includedir}/fontconfig | |
73 | ||
74 | %changelog |