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