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
5 Summary: Font configuration and customization library
10 Group: System Environment
/Libraries
11 Source: http
://fontconfig.org
/release
/fontconfig
-%{version}.tar.gz
12 URL: http
://fontconfig.org
13 BuildRoot: %{_tmppath}/%{name}-%{version}-root
15 BuildRequires
: %{_bindir}/docbook2html
16 BuildRequires
: %{_bindir}/docbook2txt
17 BuildRequires
: %{freetype2}-devel
18 BuildRequires
: expat
-devel
24 Fontconfig is designed to locate fonts within the
25 system and
select them according to requirements specified by
29 Summary: Font configuration and customization library
30 Group: Development
/Libraries
31 Requires: %{name} = %{version}
32 Requires: %{freetype2}-devel
35 The fontconfig
-devel package includes the static libraries
,
36 header files
, and developer docs
for the fontconfig package.
38 Install fontconfig
-devel
if you want to develop programs which
45 %configure --with
-x
-fonts
=/usr
/X11R6
/lib
/X11
/fonts
--disable
-gtk
-doc
--disable
-docs
49 [ "$RPM_BUILD_ROOT"
!= "
/"
] && rm -rf $RPM_BUILD_ROOT
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
56 rm -rf $RPM_BUILD_ROOT
/%{_datadir}/doc
/fontconfig
60 [ "$RPM_BUILD_ROOT"
!= "
/"
] && rm -rf $RPM_BUILD_ROOT
65 # Force regeneration of all fontconfig cache files.
66 %{_bindir}/fc-cache
-f
--system
-only
69 %postun -p
/sbin
/ldconfig
72 %defattr(-, root
, root
)
73 %doc README AUTHORS COPYING ChangeLog doc
/fontconfig
-*.
{html
,txt
}
74 %dir %{_sysconfdir}/fonts
75 %{_sysconfdir}/fonts
/fonts.conf
76 %{_sysconfdir}/fonts
/fonts.dtd
77 %config %{_sysconfdir}/fonts
/local.conf
79 %{_libdir}/libfontconfig
*.so.
*
83 %defattr(-, root
, root
)
84 %doc doc
/fontconfig
-devel.txt doc
/fontconfig
-devel
/*
85 %dir %{_includedir}/fontconfig
86 %{_includedir}/fontconfig
89 %{_libdir}/libfontconfig.so
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
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
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
112 * Sun Mar
2 2003 Owen Taylor
<otaylor@redhat.com
>
113 - Various improvements from Red Hat spec file
115 * Sun Mar
2 2003 Mike A. Harris
<mharris@redhat.com
>
116 - Initial changelog entry