]> git.wh0rd.org - fontconfig.git/blame - fontconfig.spec.in
Changed BuildRequires: lines to use %{_bindir} macro instead of hard coded
[fontconfig.git] / fontconfig.spec.in
CommitLineData
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
5Summary: Font configuration and customization library
20fa60c9
KP
6Name: fontconfig
7Version: @VERSION@
8Release: 1
9License: MIT
10Group: System Environment/Libraries
d30f481c 11Source: http://fontconfig.org/release/fontconfig-%{version}.tar.gz
22dc6fc6
OT
12URL: http://fontconfig.org
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14
5283328a
MH
15BuildRequires: %{_bindir}/docbook2html
16BuildRequires: %{_bindir}/docbook2txt
22dc6fc6
OT
17BuildRequires: %{freetype2}-devel
18BuildRequires: expat-devel
19BuildRequires: perl
20
21PreReq: %{freetype2}
20fa60c9
KP
22
23%description
22dc6fc6
OT
24Fontconfig is designed to locate fonts within the
25system and select them according to requirements specified by
26applications.
20fa60c9
KP
27
28%package devel
22dc6fc6 29Summary: Font configuration and customization library
20fa60c9
KP
30Group: Development/Libraries
31Requires: %{name} = %{version}
22dc6fc6 32Requires: %{freetype2}-devel
20fa60c9
KP
33
34%description devel
22dc6fc6
OT
35The fontconfig-devel package includes the static libraries,
36header files, and developer docs for the fontconfig package.
20fa60c9 37
22dc6fc6
OT
38Install fontconfig-devel if you want to develop programs which
39will 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 46make %{_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
56/sbin/ldconfig
57
22dc6fc6
OT
58# Force regeneration of all fontconfig cache files.
59fc-cache -f --system-only
60
20fa60c9
KP
61%postun -p /sbin/ldconfig
62
63%files
22dc6fc6
OT
64%doc README AUTHORS COPYING ChangeLog doc/fontconfig-*.{html,txt}
65%{_libdir}/libfontconfig*.so.*
20fa60c9 66%{_bindir}/fc-*
22dc6fc6
OT
67%dir %{_sysconfdir}/fonts
68%{_sysconfdir}/fonts/fonts.conf
69%{_sysconfdir}/fonts/fonts.dtd
20fa60c9 70%config %{_sysconfdir}/fonts/local.conf
22dc6fc6 71%{_mandir}/man1/*
20fa60c9
KP
72
73%files devel
74%defattr(-, root, root)
22dc6fc6
OT
75%{_libdir}/libfontconfig.so
76%{_libdir}/*.a
77%{_libdir}/*.la
78%{_libdir}/pkgconfig
20fa60c9
KP
79%{_includedir}/fontconfig
80
81%changelog
22dc6fc6
OT
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