2006-12-18 23:15:59 +00:00
#
2011-10-03 06:34:28 +00:00
# spec file for package fontconfig
2006-12-18 23:15:59 +00:00
#
2022-01-28 04:04:39 +00:00
# Copyright (c) 2022 SUSE LLC
2006-12-18 23:15:59 +00:00
#
2008-08-28 20:13:18 +00:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2019-01-15 06:31:36 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2006-12-18 23:15:59 +00:00
#
2011-12-08 10:24:18 +00:00
2012-09-24 10:24:30 +00:00
Name : fontconfig
2019-01-15 06:31:36 +00:00
%define lname libfontconfig1
2018-11-03 07:01:03 +00:00
Version : 2.13.1
2015-05-19 06:57:17 +00:00
Release : 0
Summary : Library for Font Configuration
License : MIT
Group : System/Libraries
2022-01-28 04:04:39 +00:00
URL : http://fontconfig.org/
2015-05-19 06:57:17 +00:00
Source0 : http://fontconfig.org/release/%{name} -%{version} .tar.bz2
Source4 : baselibs.conf
Source5 : local.conf
2019-02-10 01:42:39 +00:00
# PATCH-FIX-UPSTREAM fontconfig-do-not-remove-UUID-file.patch boo#1124816 badshah400@gmail.com -- Removing .uuid files caused frequent rescanning of all system fonts causing intermittent CPU usage surges, for example, when browsing using firefox; patch taken from upstream commit
Patch0 : fontconfig-do-not-remove-UUID-file.patch
2013-04-05 17:49:13 +00:00
BuildRequires : automake >= 1.11
2017-06-05 11:40:56 +00:00
BuildRequires : gperf
2011-12-03 14:25:40 +00:00
BuildRequires : libtool
BuildRequires : pkgconfig
2017-07-21 11:43:29 +00:00
BuildRequires : pkgconfig(expat)
BuildRequires : pkgconfig(freetype2)
2018-11-03 07:01:03 +00:00
BuildRequires : pkgconfig(uuid)
2015-05-19 06:57:17 +00:00
Provides : ipa-fonts-config = 003.02
2019-01-13 10:47:59 +00:00
Obsoletes : ipa-fonts-config < 003.02
2015-05-19 06:57:17 +00:00
Provides : IPA-fonts-config = 003.02
2019-01-13 10:47:59 +00:00
Obsoletes : IPA-fonts-config < 003.02
2006-12-18 23:15:59 +00:00
%description
2007-10-16 00:24:27 +00:00
Fontconfig is a library for configuring and customizing font access. It
contains two essential modules: the configuration module, which builds
an internal configuration from XML files, and the matching module,
which accepts font patterns and returns the nearest matching font.
2006-12-18 23:15:59 +00:00
2018-11-03 07:01:03 +00:00
%lang_package
2019-01-15 06:31:36 +00:00
%package -n %{lname}
Summary : Library for font configuration
Group : System/Libraries
Requires : %{name}
%description -n %{lname}
Fontconfig is a library for configuring and customizing font access. It
contains two essential modules: the configuration module, which builds
an internal configuration from XML files, and the matching module,
which accepts font patterns and returns the nearest matching font.
%package doc
Summary : Documentation for fontconfig
Group : Documentation/Other
BuildArch : noarch
%description doc
Extended documentation for the fontconfig library.
2006-12-18 23:15:59 +00:00
%package devel
2019-01-15 06:31:36 +00:00
Summary : Header files for fontconfig
2011-12-08 10:24:18 +00:00
Group : Development/Libraries/C and C++
2019-01-15 06:31:36 +00:00
Requires : %{lname} = %{version}
2018-11-03 07:01:03 +00:00
Requires : gettext-devel
2015-05-19 06:57:17 +00:00
Requires : glibc-devel
2017-07-21 11:43:29 +00:00
Requires : pkgconfig(freetype2)
2006-12-18 23:15:59 +00:00
%description devel
2007-10-16 00:24:27 +00:00
This package countains all include files, libraries, configuration
files needed for compiling applications which use the fontconfig
library.
2019-01-15 06:31:36 +00:00
%package devel-doc
Summary : Developer documentation for libfontconfig
Group : Documentation/Other
BuildArch : noarch
2007-10-16 00:24:27 +00:00
2019-01-15 06:31:36 +00:00
%description devel-doc
HTML documentation and manual pages for developers using the
fontconfig library.
2006-12-18 23:15:59 +00:00
%prep
%setup -q
2019-02-10 01:42:39 +00:00
%patch0 -p1
2014-11-30 03:19:53 +00:00
# use suse-specific doc path:
2019-01-15 06:31:36 +00:00
find -name \*.1 -o -name \*.sgml -exec sed -i -e 's/usr\/share\/doc\/fontconfig/usr\/share\/doc\/packages\/fontconfig/g' {} +
2006-12-18 23:15:59 +00:00
%build
2017-07-21 11:43:29 +00:00
# We don't want to rebuild the docs, but we want to install the included ones.
export HASDOCBOOK=no
%configure \
--docdir=%{_docdir} /%{name} \
--disable-silent-rules \
--with-arch=%{_host_cpu} \
2010-12-06 07:14:47 +00:00
--disable-static \
2017-07-21 11:43:29 +00:00
--disable-libxml2 \
--with-add-fonts=%{_prefix} /X11R6/lib/X11/fonts,/opt/kde3/share/fonts,%{_prefix} /local/share/fonts
make %{?_smp_mflags}
2008-08-28 20:13:18 +00:00
%check
export MALLOC_CHECK_=2
2011-10-03 06:34:28 +00:00
make %{?_smp_mflags} check
2008-08-28 20:13:18 +00:00
unset MALLOC_CHECK_
2006-12-18 23:15:59 +00:00
%install
2017-07-21 11:43:29 +00:00
%make_install
2015-05-19 06:57:17 +00:00
find %{buildroot} -type f -name " * . l a " -delete -print
2012-09-24 10:24:30 +00:00
# package /etc/fonts/conf.avail for compatibility reasons
mkdir %{buildroot} %{_sysconfdir} /fonts/conf.avail
install -m 644 conf.d/README %{buildroot} %{_sysconfdir} /fonts/conf.d
2014-02-27 09:01:05 +00:00
install -m 644 %{SOURCE5} %{buildroot} %{_sysconfdir} /fonts
2012-09-24 10:24:30 +00:00
# tune links in conf.d
pushd %{buildroot} %{_sysconfdir} /fonts/conf.d
mv 50-user.conf 56-user.conf
2013-04-11 10:34:52 +00:00
rm 51-local.conf
ln -s ../local.conf 55-local.conf
2014-02-27 09:01:05 +00:00
# leave place for 60-family-prefer.conf from fonts-config
mv 60-latin.conf 61-latin.conf
2012-09-24 10:24:30 +00:00
popd
2018-11-03 07:01:03 +00:00
mkdir -p %{buildroot} /%{_docdir} /%{name}
%find_lang %{name}
%find_lang %{name} -conf
2006-12-18 23:15:59 +00:00
2019-01-15 06:31:36 +00:00
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
2006-12-18 23:15:59 +00:00
%files
2019-01-12 02:29:20 +00:00
%license COPYING
2012-09-24 10:24:30 +00:00
%{_bindir} /*
%dir %{_sysconfdir} /fonts
%dir %{_sysconfdir} /fonts/conf.d
# packaging /etc/fonts/conf.avail for compatibility reasons
%dir %{_sysconfdir} /fonts/conf.avail
%config %{_sysconfdir} /fonts/fonts.conf
2013-04-11 10:34:52 +00:00
%config %{_sysconfdir} /fonts/conf.d/*.conf
2012-09-24 10:24:30 +00:00
%config (noreplace) %{_sysconfdir} /fonts/local.conf
%{_sysconfdir} /fonts/conf.d/README
%dir %{_datadir} /%{name}
%dir %{_datadir} /%{name} /conf.avail
%{_datadir} /%{name} /conf.avail/*.conf
%dir %{_datadir} /xml/%{name}
%{_datadir} /xml/%{name} /fonts.dtd
2015-05-19 06:57:17 +00:00
%dir %{_localstatedir} /cache/fontconfig/
2017-07-21 11:43:29 +00:00
%{_mandir} /man5/fonts-conf.5%{ext_man}
2009-07-17 14:10:19 +00:00
%{_mandir} /man1/*
2018-11-03 07:01:03 +00:00
%files lang -f %{name}.lang -f %{name}-conf.lang
2006-12-18 23:15:59 +00:00
2019-01-15 06:31:36 +00:00
%files doc
%doc AUTHORS ChangeLog README
%dir %{_docdir} /%{name}
%{_docdir} /%{name} /fontconfig-user.html
%{_docdir} /%{name} /fontconfig-user.pdf
%{_docdir} /%{name} /fontconfig-user.txt
2006-12-18 23:15:59 +00:00
%files devel
%{_libdir} /pkgconfig/fontconfig.pc
2008-08-28 20:13:18 +00:00
%{_libdir} /libfontconfig.so
%{_includedir} /fontconfig/
2018-11-03 07:01:03 +00:00
%dir %{_datadir} /gettext/its/
%{_datadir} /gettext/its/fontconfig.*
2007-12-18 17:37:14 +00:00
2019-01-15 06:31:36 +00:00
%files devel-doc
%{_docdir} /%{name} /%{name} -devel/
%{_docdir} /%{name} /fontconfig-devel.pdf
%{_docdir} /%{name} /fontconfig-devel.txt
%{_mandir} /man3/*
%files -n %{lname}
%{_libdir} /libfontconfig.so.*
2007-02-22 13:19:42 +00:00
%changelog