fontconfig/fontconfig.spec.in

102 lines
2.8 KiB
RPMSpec
Raw Normal View History

# Some distributions name their Freetype 2 package "freetype", while others
# name it "freetype2". You can define the name your distribution uses here.
%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
URL: http://fontconfig.org
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: %{_bindir}/docbook2html
BuildRequires: %{_bindir}/docbook2txt
BuildRequires: %{freetype2}-devel
BuildRequires: expat-devel
BuildRequires: perl
PreReq: %{freetype2}
2003-02-24 18:18:50 +01:00
%description
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
Summary: Font configuration and customization library
2003-02-24 18:18:50 +01:00
Group: Development/Libraries
Requires: %{name} = %{version}
Requires: %{freetype2}-devel
2003-02-24 18:18:50 +01:00
%description devel
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
Install fontconfig-devel if you want to develop programs which
will use fontconfig.
2003-02-24 18:18:50 +01:00
%prep
%setup -q
2003-02-24 18:18:50 +01:00
%build
%configure --with-x-fonts=/usr/X11R6/lib/X11/fonts --disable-gtk-doc --disable-docs
make %{_smp_mflags}
2003-02-24 18:18:50 +01:00
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%makeinstall
2003-02-24 18:18:50 +01:00
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
2003-02-24 18:18:50 +01:00
%post
{
/sbin/ldconfig
# Force regeneration of all fontconfig cache files.
%{_bindir}/fc-cache -f --system-only
}
2003-02-24 18:18:50 +01:00
%postun -p /sbin/ldconfig
%files
%doc README AUTHORS COPYING ChangeLog doc/fontconfig-*.{html,txt}
%dir %{_sysconfdir}/fonts
%{_sysconfdir}/fonts/fonts.conf
%{_sysconfdir}/fonts/fonts.dtd
2003-02-24 18:18:50 +01:00
%config %{_sysconfdir}/fonts/local.conf
%{_bindir}/fc-*
%{_libdir}/libfontconfig*.so.*
%{_mandir}/man1/*
2003-02-24 18:18:50 +01:00
%files devel
%defattr(-, root, root)
%dir %{_includedir}/fontconfig
%{_includedir}/fontconfig
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/libfontconfig.so
%{_libdir}/pkgconfig
2003-02-24 18:18:50 +01:00
%changelog
* 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
* 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
* 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>
- Initial changelog entry