]> git.wh0rd.org - fontconfig.git/blob - fontconfig.spec.in
Sun Mar 2 14:16:17 2003 Owen Taylor <otaylor@redhat.com>
[fontconfig.git] / fontconfig.spec.in
1 # Different systems call the freetype2 RPM different things
2 %define freetype2 freetype
3 # %define freetype2 freetype2
4
5 Summary: Font configuration and customization library
6 Name: fontconfig
7 Version: @VERSION@
8 Release: 1
9 License: MIT
10 Group: System Environment/Libraries
11 Source: http://fontconfig.org/release/fontconfig-%{vesion}.tar.gz
12 URL: http://fontconfig.org
13 BuildRoot: %{_tmppath}/%{name}-%{version}-root
14
15 BuildRequires: /usr/bin/docbook2html
16 BuildRequires: /usr/bin/docbook2txt
17 BuildRequires: %{freetype2}-devel
18 BuildRequires: expat-devel
19 BuildRequires: perl
20
21 PreReq: %{freetype2}
22
23 %description
24 Fontconfig is designed to locate fonts within the
25 system and select them according to requirements specified by
26 applications.
27
28 %package devel
29 Summary: Font configuration and customization library
30 Group: Development/Libraries
31 Requires: %{name} = %{version}
32 Requires: %{freetype2}-devel
33
34 %description devel
35 The fontconfig-devel package includes the static libraries,
36 header files, and developer docs for the fontconfig package.
37
38 Install fontconfig-devel if you want to develop programs which
39 will use fontconfig.
40
41 %prep
42 %setup -q
43
44 %build
45 %configure --with-x-fonts=/usr/X11R6/lib/X11/fonts
46 make -j %{_smp_mflags}
47
48 %install
49 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
50 %makeinstall
51
52 %clean
53 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
54
55 %post
56 /sbin/ldconfig
57
58 # Force regeneration of all fontconfig cache files.
59 fc-cache -f --system-only
60
61 %postun -p /sbin/ldconfig
62
63 %files
64 %doc README AUTHORS COPYING ChangeLog doc/fontconfig-*.{html,txt}
65 %{_libdir}/libfontconfig*.so.*
66 %{_bindir}/fc-*
67 %dir %{_sysconfdir}/fonts
68 %{_sysconfdir}/fonts/fonts.conf
69 %{_sysconfdir}/fonts/fonts.dtd
70 %config %{_sysconfdir}/fonts/local.conf
71 %{_mandir}/man1/*
72
73 %files devel
74 %defattr(-, root, root)
75 %{_libdir}/libfontconfig.so
76 %{_libdir}/*.a
77 %{_libdir}/*.la
78 %{_libdir}/pkgconfig
79 %{_includedir}/fontconfig
80
81 %changelog
82 * Sun Mar 2 2003 Owen Taylor <otaylor@redhat.com>
83 - Various improvements from Red Hat spec file
84
85 * Sun Mar 2 2003 Mike A. Harris <mharris@redhat.com> 2.1.90-0.1
86 - Initial changelog entry