fontconfig.spec.in 2.12 KB
Newer Older
1 2
# Some distributions name their Freetype 2 package "freetype", while others
# name it "freetype2".  You can define the name your distribution uses here.
3 4 5
%define freetype2 freetype

Summary:	Font configuration and customization library
Keith Packard's avatar
Keith Packard committed
6 7 8 9 10
Name:		fontconfig
Version:	@VERSION@
Release:	1
License:	MIT
Group:		System Environment/Libraries
Keith Packard's avatar
Keith Packard committed
11
Source:		http://fontconfig.org/release/fontconfig-%{version}.tar.gz
12 13 14
URL:            http://fontconfig.org
BuildRoot:	%{_tmppath}/%{name}-%{version}-root

15 16
BuildRequires: %{_bindir}/docbook2html
BuildRequires: %{_bindir}/docbook2txt
17 18 19 20 21
BuildRequires: %{freetype2}-devel
BuildRequires: expat-devel
BuildRequires: perl

PreReq: %{freetype2}
Keith Packard's avatar
Keith Packard committed
22 23

%description
24 25 26
Fontconfig is designed to locate fonts within the
system and select them according to requirements specified by 
applications.
Keith Packard's avatar
Keith Packard committed
27 28

%package devel
29
Summary:	Font configuration and customization library
Keith Packard's avatar
Keith Packard committed
30 31
Group:		Development/Libraries
Requires:	%{name} = %{version}
32
Requires:	%{freetype2}-devel
Keith Packard's avatar
Keith Packard committed
33 34

%description devel
35 36
The fontconfig-devel package includes the static libraries, 
header files, and developer docs for the fontconfig package.
Keith Packard's avatar
Keith Packard committed
37

38 39
Install fontconfig-devel if you want to develop programs which 
will use fontconfig.
Keith Packard's avatar
Keith Packard committed
40 41

%prep
42
%setup -q
Keith Packard's avatar
Keith Packard committed
43 44

%build
45
%configure --with-x-fonts=/usr/X11R6/lib/X11/fonts
46
make %{_smp_mflags}
Keith Packard's avatar
Keith Packard committed
47 48

%install
49 50
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%makeinstall
Keith Packard's avatar
Keith Packard committed
51 52

%clean
53
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
Keith Packard's avatar
Keith Packard committed
54 55 56 57

%post
/sbin/ldconfig

58 59 60
# Force regeneration of all fontconfig cache files.
fc-cache -f --system-only

Keith Packard's avatar
Keith Packard committed
61 62 63
%postun -p /sbin/ldconfig

%files
64 65
%doc README AUTHORS COPYING ChangeLog doc/fontconfig-*.{html,txt}
%{_libdir}/libfontconfig*.so.*
Keith Packard's avatar
Keith Packard committed
66
%{_bindir}/fc-*
67 68 69
%dir %{_sysconfdir}/fonts
%{_sysconfdir}/fonts/fonts.conf
%{_sysconfdir}/fonts/fonts.dtd
Keith Packard's avatar
Keith Packard committed
70
%config %{_sysconfdir}/fonts/local.conf
71
%{_mandir}/man1/*
Keith Packard's avatar
Keith Packard committed
72 73 74

%files devel
%defattr(-, root, root)
75 76 77 78
%{_libdir}/libfontconfig.so
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/pkgconfig
Keith Packard's avatar
Keith Packard committed
79 80 81
%{_includedir}/fontconfig

%changelog
82 83 84 85 86
* 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