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
41 # Some rpm specific directories. Prefix 'my' hopefully does not collide with anything.
42 %define my_docdir
%{_datadir}/doc/%{name}-%{version}
43 %define my_develdocdir
%{_datadir}/doc/%{name}-devel-%{version}
44 %define my_tmpdocdir $RPM_BUILD_ROOT
%{my_docdir}
45 %define my_tmpdeveldocdir $RPM_BUILD_ROOT
%{my_develdocdir}
51 %configure --with
-x
-fonts
=/usr
/X11R6
/lib
/X11
/fonts
--disable
-gtk
-doc \
52 --with
-docdir
=%{my_docdir}
56 [ "$RPM_BUILD_ROOT"
!= "
/"
] && rm -rf $RPM_BUILD_ROOT
58 %makeinstall docdir
=%{my_tmpdocdir}
60 # The make does not distinguish the base and devel packages
61 mkdir -p
%{my_tmpdeveldocdir}
62 mv
-f
%{my_tmpdocdir}/*devel* %{my_tmpdeveldocdir}
64 # Use a more informative directory name:
65 mv
-f
%{my_tmpdeveldocdir}/fontconfig-devel %{my_tmpdeveldocdir}/html
69 [ "$RPM_BUILD_ROOT"
!= "
/"
] && rm -rf $RPM_BUILD_ROOT
74 # Force regeneration of all fontconfig cache files.
75 %{_bindir}/fc-cache
-f
--system
-only
78 %postun -p
/sbin
/ldconfig
81 %defattr(-, root
, root
)
82 %doc README AUTHORS COPYING ChangeLog doc
/fontconfig
-user.
{html
,txt
}
84 %dir %{_sysconfdir}/fonts
85 %{_sysconfdir}/fonts
/fonts.conf
86 %{_sysconfdir}/fonts
/fonts.dtd
87 %config %{_sysconfdir}/fonts
/local.conf
89 %{_libdir}/libfontconfig
*.so.
*
94 %defattr(-, root
, root
)
95 #%doc doc/fontconfig-devel.txt doc/fontconfig-devel/*
97 %dir %{_includedir}/fontconfig
98 %{_includedir}/fontconfig
/*
101 %{_libdir}/libfontconfig.so
106 * Wed Mar
20 2004 Enrique Perez
-Terron
<enrio@online.no
>
107 - Added mandir
/man1
/* to main file list
108 - Added missing '
/*' after includedir
/fontconfig to avoid "listed twice" error.
109 - Removed configure option
--disable
-docs since its problem is solved
, see below.
110 - Added option to makeinstall to have it
install docs
in the proper directory.
111 Notice though that the
%doc macro deletes and recreates the docs directory.
112 - Cleaner separation of devel docs.
113 - Renamed doc
/fontconfig
-devel
-*/fontconfig
-devel subdirectory to 'html'.
114 - Removed
%doc macro from devel filelist
, since it deletes installed files.
116 * Fri Mar
7 2003 Mike A. Harris
<mharris@redhat.com
> 2.1.92-1
117 - Removed man1
/* and added man5
/* to main package and man3
/* to devel package
118 - Added missing defattr
(-, root
, root
) to main package
119 - Added HTML and text development documentation to
-devel subpackage
121 * Wed Mar
5 2003 Mike A. Harris
<mharris@redhat.com
>
122 - Added back the configure macro options
--disable
-docs because otherwise
123 fontconfig installs docs into
/usr
/share
/doc
/fontconfig
(with no version
124 number
) unconditionally
, causing RPM to fail the build due to unpackaged
125 files terminate build
127 * Wed Mar
5 2003 Mike A. Harris
<mharris@redhat.com
>
128 - Removed commented out rpm macro define at top of spec file
, replacing it with
129 a simple explanation
, since rpm macros are expanded by rpm even
in comments
130 - Changed
/usr
/bin to _bindir
in BuildRequires lines
131 - Cleaned up rpm postinstall script
, and made
fc-cache use _bindir
132 - Reorganized file manifest lists
134 * Sun Mar
2 2003 Owen Taylor
<otaylor@redhat.com
>
135 - Various improvements from Red Hat spec file
137 * Sun Mar
2 2003 Mike A. Harris
<mharris@redhat.com
>
138 - Initial changelog entry