2003-03-05 10:08:41 +01:00
|
|
|
# Some distributions name their Freetype 2 package "freetype", while others
|
|
|
|
# name it "freetype2". You can define the name your distribution uses here.
|
2003-03-03 02:13:11 +01:00
|
|
|
%define freetype2 freetype
|
|
|
|
|
|
|
|
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-05 08:45:37 +01:00
|
|
|
Source: http://fontconfig.org/release/fontconfig-%{version}.tar.gz
|
2003-03-03 02:13:11 +01:00
|
|
|
URL: http://fontconfig.org
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
2003-03-05 10:10:14 +01:00
|
|
|
BuildRequires: %{_bindir}/docbook2html
|
|
|
|
BuildRequires: %{_bindir}/docbook2txt
|
2003-03-03 02:13:11 +01:00
|
|
|
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
|
|
|
|
2004-04-14 20:08:41 +02:00
|
|
|
# Some rpm specific directories. Prefix 'my' hopefully does not collide with anything.
|
|
|
|
%define my_docdir %{_datadir}/doc/%{name}-%{version}
|
|
|
|
%define my_develdocdir %{_datadir}/doc/%{name}-devel-%{version}
|
|
|
|
%define my_tmpdocdir $RPM_BUILD_ROOT%{my_docdir}
|
|
|
|
%define my_tmpdeveldocdir $RPM_BUILD_ROOT%{my_develdocdir}
|
|
|
|
|
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
|
2004-04-14 20:08:41 +02:00
|
|
|
%configure --with-x-fonts=/usr/X11R6/lib/X11/fonts --disable-gtk-doc \
|
|
|
|
--with-docdir=%{my_docdir}
|
2003-03-05 10:08:41 +01:00
|
|
|
make %{_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
|
2003-03-08 02:03:32 +01:00
|
|
|
{
|
2004-04-14 20:08:41 +02:00
|
|
|
%makeinstall docdir=%{my_tmpdocdir}
|
|
|
|
|
|
|
|
# The make does not distinguish the base and devel packages
|
|
|
|
mkdir -p %{my_tmpdeveldocdir}
|
|
|
|
mv -f %{my_tmpdocdir}/*devel* %{my_tmpdeveldocdir}
|
|
|
|
|
|
|
|
# Use a more informative directory name:
|
|
|
|
mv -f %{my_tmpdeveldocdir}/fontconfig-devel %{my_tmpdeveldocdir}/html
|
2003-03-08 02:03:32 +01:00
|
|
|
}
|
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
|
2003-03-05 10:14:06 +01:00
|
|
|
{
|
|
|
|
/sbin/ldconfig
|
|
|
|
# Force regeneration of all fontconfig cache files.
|
|
|
|
%{_bindir}/fc-cache -f --system-only
|
|
|
|
}
|
2003-03-03 02:13:11 +01:00
|
|
|
|
2003-02-24 18:18:50 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2003-03-08 02:03:32 +01:00
|
|
|
%defattr(-, root, root)
|
2004-04-14 20:08:41 +02:00
|
|
|
%doc README AUTHORS COPYING ChangeLog doc/fontconfig-user.{html,txt}
|
|
|
|
%{my_docdir}/*
|
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-05 10:16:37 +01:00
|
|
|
%{_bindir}/fc-*
|
|
|
|
%{_libdir}/libfontconfig*.so.*
|
2004-04-14 20:08:41 +02:00
|
|
|
%{_mandir}/man1/*
|
2003-03-08 02:03:32 +01:00
|
|
|
%{_mandir}/man5/*
|
2003-02-24 18:18:50 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2004-04-14 20:08:41 +02:00
|
|
|
#%doc doc/fontconfig-devel.txt doc/fontconfig-devel/*
|
|
|
|
%{my_develdocdir}
|
2003-03-05 10:16:37 +01:00
|
|
|
%dir %{_includedir}/fontconfig
|
2004-04-14 20:08:41 +02:00
|
|
|
%{_includedir}/fontconfig/*
|
2003-03-03 02:13:11 +01:00
|
|
|
%{_libdir}/*.a
|
|
|
|
%{_libdir}/*.la
|
2003-03-05 10:16:37 +01:00
|
|
|
%{_libdir}/libfontconfig.so
|
2003-03-03 02:13:11 +01:00
|
|
|
%{_libdir}/pkgconfig
|
2003-03-08 02:03:32 +01:00
|
|
|
%{_mandir}/man3/*
|
2003-02-24 18:18:50 +01:00
|
|
|
|
|
|
|
%changelog
|
2004-04-14 20:08:41 +02:00
|
|
|
* Wed Mar 20 2004 Enrique Perez-Terron <enrio@online.no>
|
|
|
|
- Added mandir /man1/* to main file list
|
|
|
|
- Added missing '/*' after includedir/fontconfig to avoid "listed twice" error.
|
|
|
|
- Removed configure option --disable-docs since its problem is solved, see below.
|
|
|
|
- Added option to makeinstall to have it install docs in the proper directory.
|
|
|
|
Notice though that the %doc macro deletes and recreates the docs directory.
|
|
|
|
- Cleaner separation of devel docs.
|
|
|
|
- Renamed doc/fontconfig-devel-*/fontconfig-devel subdirectory to 'html'.
|
|
|
|
- Removed %doc macro from devel filelist, since it deletes installed files.
|
|
|
|
|
2003-03-08 02:03:32 +01:00
|
|
|
* Fri Mar 7 2003 Mike A. Harris <mharris@redhat.com> 2.1.92-1
|
|
|
|
- Removed man1/* and added man5/* to main package and man3/* to devel package
|
|
|
|
- Added missing defattr(-, root, root) to main package
|
|
|
|
- Added HTML and text development documentation to -devel subpackage
|
|
|
|
|
2003-03-05 11:08:08 +01:00
|
|
|
* Wed Mar 5 2003 Mike A. Harris <mharris@redhat.com>
|
|
|
|
- Added back the configure macro options --disable-docs because otherwise
|
|
|
|
fontconfig installs docs into /usr/share/doc/fontconfig (with no version
|
|
|
|
number) unconditionally, causing RPM to fail the build due to unpackaged
|
|
|
|
files terminate build
|
|
|
|
|
2003-03-05 10:28:08 +01:00
|
|
|
* Wed Mar 5 2003 Mike A. Harris <mharris@redhat.com>
|
|
|
|
- Removed commented out rpm macro define at top of spec file, replacing it with
|
|
|
|
a simple explanation, since rpm macros are expanded by rpm even in comments
|
|
|
|
- Changed /usr/bin to _bindir in BuildRequires lines
|
|
|
|
- Cleaned up rpm postinstall script, and made fc-cache use _bindir
|
|
|
|
- Reorganized file manifest lists
|
|
|
|
|
2003-03-03 02:13:11 +01:00
|
|
|
* Sun Mar 2 2003 Owen Taylor <otaylor@redhat.com>
|
|
|
|
- Various improvements from Red Hat spec file
|
|
|
|
|
2003-03-05 10:28:08 +01:00
|
|
|
* Sun Mar 2 2003 Mike A. Harris <mharris@redhat.com>
|
2003-03-03 02:13:11 +01:00
|
|
|
- Initial changelog entry
|