File mingw32-fontconfig.spec of Package mingw32-fontconfig
#
# spec file for package mingw32-fontconfig
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mingw32-fontconfig
Version: 2.10.92
Release: 0
Summary: Configuring and customizing font access
License: MIT
Group: Development/Libraries
Url: http://fontconfig.org/
Source: http://www.freedesktop.org/software/fontconfig/release/fontconfig-%{version}.tar.bz2
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-freetype-devel
BuildRequires: mingw32-libxml2-devel
BuildRequires: mingw32-zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%_mingw32_package_header_debug
BuildArch: noarch
%description
Fontconfig is a library designed to provide system-wide font configuration, customization and application access.
%package devel
Summary: Configuring and customizing font access (development files)
Group: Development/Libraries
%description devel
Fontconfig is a library designed to provide system-wide font configuration, customization and application access.
This package contains all necessary include files and libraries needed
to develop applications that require the provided includes and libraries.
%package tools
Summary: Configuring and customizing font access (tools)
Group: Development/Libraries
%description tools
Fontconfig is a library designed to provide system-wide font configuration, customization and application access.
This package contains several tools for accessing fontconfig functionality.
%_mingw32_debug_package
%prep
%setup -q -n fontconfig-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
--with-freetype-config=%{_mingw32_bindir}/freetype-config \
--with-arch=i686 \
--disable-docs \
--enable-libxml2 \
--enable-shared --disable-static
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
chmod -x %{buildroot}%{_mingw32_libdir}/*.def
%files
%defattr(-,root,root)
%{_mingw32_bindir}/libfontconfig-1.dll
%{_mingw32_sysconfdir}/fonts/
%{_mingw32_datadir}/fontconfig/
%files devel
%defattr(-,root,root)
%{_mingw32_libdir}/fontconfig.def
%{_mingw32_libdir}/libfontconfig.dll.a
%{_mingw32_libdir}/pkgconfig/fontconfig.pc
%{_mingw32_includedir}/fontconfig/
%{_mingw32_datadir}/xml/fontconfig/
%files tools
%defattr(-,root,root)
%{_mingw32_bindir}/fc-cache.exe
%{_mingw32_bindir}/fc-cat.exe
%{_mingw32_bindir}/fc-list.exe
%{_mingw32_bindir}/fc-match.exe
%{_mingw32_bindir}/fc-pattern.exe
%{_mingw32_bindir}/fc-query.exe
%{_mingw32_bindir}/fc-scan.exe
%{_mingw32_bindir}/fc-validate.exe
%changelog