]>
Commit | Line | Data |
---|---|---|
674c09df MH |
1 | # Some distributions name their Freetype 2 package "freetype", while others |
2 | # name it "freetype2". You can define the name your distribution uses here. | |
22dc6fc6 | 3 | %define freetype2 freetype |
22dc6fc6 OT |
4 | |
5 | Summary: Font configuration and customization library | |
20fa60c9 KP |
6 | Name: fontconfig |
7 | Version: @VERSION@ | |
8 | Release: 1 | |
9 | License: MIT | |
10 | Group: System Environment/Libraries | |
d30f481c | 11 | Source: http://fontconfig.org/release/fontconfig-%{version}.tar.gz |
22dc6fc6 OT |
12 | URL: http://fontconfig.org |
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root | |
14 | ||
5283328a MH |
15 | BuildRequires: %{_bindir}/docbook2html |
16 | BuildRequires: %{_bindir}/docbook2txt | |
22dc6fc6 OT |
17 | BuildRequires: %{freetype2}-devel |
18 | BuildRequires: expat-devel | |
19 | BuildRequires: perl | |
20 | ||
21 | PreReq: %{freetype2} | |
20fa60c9 KP |
22 | |
23 | %description | |
22dc6fc6 OT |
24 | Fontconfig is designed to locate fonts within the |
25 | system and select them according to requirements specified by | |
26 | applications. | |
20fa60c9 KP |
27 | |
28 | %package devel | |
22dc6fc6 | 29 | Summary: Font configuration and customization library |
20fa60c9 KP |
30 | Group: Development/Libraries |
31 | Requires: %{name} = %{version} | |
22dc6fc6 | 32 | Requires: %{freetype2}-devel |
20fa60c9 KP |
33 | |
34 | %description devel | |
22dc6fc6 OT |
35 | The fontconfig-devel package includes the static libraries, |
36 | header files, and developer docs for the fontconfig package. | |
20fa60c9 | 37 | |
22dc6fc6 OT |
38 | Install fontconfig-devel if you want to develop programs which |
39 | will use fontconfig. | |
20fa60c9 KP |
40 | |
41 | %prep | |
22dc6fc6 | 42 | %setup -q |
20fa60c9 KP |
43 | |
44 | %build | |
22dc6fc6 | 45 | %configure --with-x-fonts=/usr/X11R6/lib/X11/fonts |
674c09df | 46 | make %{_smp_mflags} |
20fa60c9 KP |
47 | |
48 | %install | |
22dc6fc6 OT |
49 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
50 | %makeinstall | |
20fa60c9 KP |
51 | |
52 | %clean | |
22dc6fc6 | 53 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
20fa60c9 KP |
54 | |
55 | %post | |
c674c89b MH |
56 | { |
57 | /sbin/ldconfig | |
58 | # Force regeneration of all fontconfig cache files. | |
59 | %{_bindir}/fc-cache -f --system-only | |
60 | } | |
22dc6fc6 | 61 | |
20fa60c9 KP |
62 | %postun -p /sbin/ldconfig |
63 | ||
64 | %files | |
22dc6fc6 | 65 | %doc README AUTHORS COPYING ChangeLog doc/fontconfig-*.{html,txt} |
22dc6fc6 OT |
66 | %dir %{_sysconfdir}/fonts |
67 | %{_sysconfdir}/fonts/fonts.conf | |
68 | %{_sysconfdir}/fonts/fonts.dtd | |
20fa60c9 | 69 | %config %{_sysconfdir}/fonts/local.conf |
fc87206f MH |
70 | %{_bindir}/fc-* |
71 | %{_libdir}/libfontconfig*.so.* | |
22dc6fc6 | 72 | %{_mandir}/man1/* |
20fa60c9 KP |
73 | |
74 | %files devel | |
75 | %defattr(-, root, root) | |
fc87206f MH |
76 | %dir %{_includedir}/fontconfig |
77 | %{_includedir}/fontconfig | |
22dc6fc6 OT |
78 | %{_libdir}/*.a |
79 | %{_libdir}/*.la | |
fc87206f | 80 | %{_libdir}/libfontconfig.so |
22dc6fc6 | 81 | %{_libdir}/pkgconfig |
20fa60c9 KP |
82 | |
83 | %changelog | |
b06766e4 MH |
84 | * Wed Mar 5 2003 Mike A. Harris <mharris@redhat.com> |
85 | - Removed commented out rpm macro define at top of spec file, replacing it with | |
86 | a simple explanation, since rpm macros are expanded by rpm even in comments | |
87 | - Changed /usr/bin to _bindir in BuildRequires lines | |
88 | - Cleaned up rpm postinstall script, and made fc-cache use _bindir | |
89 | - Reorganized file manifest lists | |
90 | ||
22dc6fc6 OT |
91 | * Sun Mar 2 2003 Owen Taylor <otaylor@redhat.com> |
92 | - Various improvements from Red Hat spec file | |
93 | ||
b06766e4 | 94 | * Sun Mar 2 2003 Mike A. Harris <mharris@redhat.com> |
22dc6fc6 | 95 | - Initial changelog entry |