]> git.wh0rd.org - fontconfig.git/blame - fontconfig.spec.in
Force FC_FOUNDRY and FC_WIDTH to always be set so that matches looking for
[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
a5ae222c 45%configure --with-x-fonts=/usr/X11R6/lib/X11/fonts --disable-gtk-doc --disable-docs
674c09df 46make %{_smp_mflags}
20fa60c9
KP
47
48%install
22dc6fc6 49[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
dbe9a11e
MH
50{
51 %makeinstall
52 # fontconfig is currently installing these in improper location for RPM
53 # based Linux distributions, so we remove what it installs here, and let
54 # RPM pick up the same files with 'doc' directives in the file lists as
55 # a workaround
56 rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/fontconfig
57}
20fa60c9
KP
58
59%clean
22dc6fc6 60[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
20fa60c9
KP
61
62%post
c674c89b
MH
63{
64 /sbin/ldconfig
65 # Force regeneration of all fontconfig cache files.
66 %{_bindir}/fc-cache -f --system-only
67}
22dc6fc6 68
20fa60c9
KP
69%postun -p /sbin/ldconfig
70
71%files
dbe9a11e 72%defattr(-, root, root)
22dc6fc6 73%doc README AUTHORS COPYING ChangeLog doc/fontconfig-*.{html,txt}
22dc6fc6
OT
74%dir %{_sysconfdir}/fonts
75%{_sysconfdir}/fonts/fonts.conf
76%{_sysconfdir}/fonts/fonts.dtd
20fa60c9 77%config %{_sysconfdir}/fonts/local.conf
fc87206f
MH
78%{_bindir}/fc-*
79%{_libdir}/libfontconfig*.so.*
dbe9a11e 80%{_mandir}/man5/*
20fa60c9
KP
81
82%files devel
83%defattr(-, root, root)
dbe9a11e 84%doc doc/fontconfig-devel.txt doc/fontconfig-devel/*
fc87206f
MH
85%dir %{_includedir}/fontconfig
86%{_includedir}/fontconfig
22dc6fc6
OT
87%{_libdir}/*.a
88%{_libdir}/*.la
fc87206f 89%{_libdir}/libfontconfig.so
22dc6fc6 90%{_libdir}/pkgconfig
dbe9a11e 91%{_mandir}/man3/*
20fa60c9
KP
92
93%changelog
dbe9a11e
MH
94* Fri Mar 7 2003 Mike A. Harris <mharris@redhat.com> 2.1.92-1
95- Removed man1/* and added man5/* to main package and man3/* to devel package
96- Added missing defattr(-, root, root) to main package
97- Added HTML and text development documentation to -devel subpackage
98
a5ae222c
MH
99* Wed Mar 5 2003 Mike A. Harris <mharris@redhat.com>
100- Added back the configure macro options --disable-docs because otherwise
101 fontconfig installs docs into /usr/share/doc/fontconfig (with no version
102 number) unconditionally, causing RPM to fail the build due to unpackaged
103 files terminate build
104
b06766e4
MH
105* Wed Mar 5 2003 Mike A. Harris <mharris@redhat.com>
106- Removed commented out rpm macro define at top of spec file, replacing it with
107 a simple explanation, since rpm macros are expanded by rpm even in comments
108- Changed /usr/bin to _bindir in BuildRequires lines
109- Cleaned up rpm postinstall script, and made fc-cache use _bindir
110- Reorganized file manifest lists
111
22dc6fc6
OT
112* Sun Mar 2 2003 Owen Taylor <otaylor@redhat.com>
113- Various improvements from Red Hat spec file
114
b06766e4 115* Sun Mar 2 2003 Mike A. Harris <mharris@redhat.com>
22dc6fc6 116- Initial changelog entry