2003-03-03 02:13:11 +01:00
|
|
|
# Different systems call the freetype2 RPM different things
|
|
|
|
%define freetype2 freetype
|
|
|
|
# %define freetype2 freetype2
|
|
|
|
|
|
|
|
Summary: Font configuration and customization library
|
2003-02-24 18:18:50 +01:00
|
|
|
Name: fontconfig
|
|
|
|
Version: @VERSION@
|
|
|
|
Release: 1
|
|
|
|
License: MIT
|
|
|
|
Group: System Environment/Libraries
|
2003-03-03 02:13:11 +01:00
|
|
|
Source: http://fontconfig.org/release/fontconfig-%{vesion}.tar.gz
|
|
|
|
URL: http://fontconfig.org
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
BuildRequires: /usr/bin/docbook2html
|
|
|
|
BuildRequires: /usr/bin/docbook2txt
|
|
|
|
BuildRequires: %{freetype2}-devel
|
|
|
|
BuildRequires: expat-devel
|
|
|
|
BuildRequires: perl
|
|
|
|
|
|
|
|
PreReq: %{freetype2}
|
2003-02-24 18:18:50 +01:00
|
|
|
|
|
|
|
%description
|
2003-03-03 02:13:11 +01:00
|
|
|
Fontconfig is designed to locate fonts within the
|
|
|
|
system and select them according to requirements specified by
|
|
|
|
applications.
|
2003-02-24 18:18:50 +01:00
|
|
|
|
|
|
|
%package devel
|
2003-03-03 02:13:11 +01:00
|
|
|
Summary: Font configuration and customization library
|
2003-02-24 18:18:50 +01:00
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
2003-03-03 02:13:11 +01:00
|
|
|
Requires: %{freetype2}-devel
|
2003-02-24 18:18:50 +01:00
|
|
|
|
|
|
|
%description devel
|
2003-03-03 02:13:11 +01:00
|
|
|
The fontconfig-devel package includes the static libraries,
|
|
|
|
header files, and developer docs for the fontconfig package.
|
2003-02-24 18:18:50 +01:00
|
|
|
|
2003-03-03 02:13:11 +01:00
|
|
|
Install fontconfig-devel if you want to develop programs which
|
|
|
|
will use fontconfig.
|
2003-02-24 18:18:50 +01:00
|
|
|
|
|
|
|
%prep
|
2003-03-03 02:13:11 +01:00
|
|
|
%setup -q
|
2003-02-24 18:18:50 +01:00
|
|
|
|
|
|
|
%build
|
2003-03-03 02:13:11 +01:00
|
|
|
%configure --with-x-fonts=/usr/X11R6/lib/X11/fonts
|
|
|
|
make -j %{_smp_mflags}
|
2003-02-24 18:18:50 +01:00
|
|
|
|
|
|
|
%install
|
2003-03-03 02:13:11 +01:00
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
%makeinstall
|
2003-02-24 18:18:50 +01:00
|
|
|
|
|
|
|
%clean
|
2003-03-03 02:13:11 +01:00
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
2003-02-24 18:18:50 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
2003-03-03 02:13:11 +01:00
|
|
|
# Force regeneration of all fontconfig cache files.
|
|
|
|
fc-cache -f --system-only
|
|
|
|
|
2003-02-24 18:18:50 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2003-03-03 02:13:11 +01:00
|
|
|
%doc README AUTHORS COPYING ChangeLog doc/fontconfig-*.{html,txt}
|
|
|
|
%{_libdir}/libfontconfig*.so.*
|
2003-02-24 18:18:50 +01:00
|
|
|
%{_bindir}/fc-*
|
2003-03-03 02:13:11 +01:00
|
|
|
%dir %{_sysconfdir}/fonts
|
|
|
|
%{_sysconfdir}/fonts/fonts.conf
|
|
|
|
%{_sysconfdir}/fonts/fonts.dtd
|
2003-02-24 18:18:50 +01:00
|
|
|
%config %{_sysconfdir}/fonts/local.conf
|
2003-03-03 02:13:11 +01:00
|
|
|
%{_mandir}/man1/*
|
2003-02-24 18:18:50 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2003-03-03 02:13:11 +01:00
|
|
|
%{_libdir}/libfontconfig.so
|
|
|
|
%{_libdir}/*.a
|
|
|
|
%{_libdir}/*.la
|
|
|
|
%{_libdir}/pkgconfig
|
2003-02-24 18:18:50 +01:00
|
|
|
%{_includedir}/fontconfig
|
|
|
|
|
|
|
|
%changelog
|
2003-03-03 02:13:11 +01:00
|
|
|
* Sun Mar 2 2003 Owen Taylor <otaylor@redhat.com>
|
|
|
|
- Various improvements from Red Hat spec file
|
|
|
|
|
|
|
|
* Sun Mar 2 2003 Mike A. Harris <mharris@redhat.com> 2.1.90-0.1
|
|
|
|
- Initial changelog entry
|