File mingw32-freetype.spec of Package mingw32-freetype

%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
                          %{_mingw32_install_post}

Name:           mingw32-freetype
Version:        2.4.10
Release:        0
Summary:        Free, High-Quality, and Portable Font Engine

License:        FTL or GPLv2+
Url:            http://www.freetype.org
Source:         http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.bz2
Source1:        http://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.bz2
Group:          Development/Libraries
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildArch:      noarch
#!BuildIgnore: post-build-checks

BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-zlib-devel

%description
FreeType 2 is a software font engine that is designed to be small, efficient, highly customizable, and portable while
capable of producing high-quality output (glyph images). It can be used in graphics libraries, display servers, font
conversion tools, text image generation tools, and many other products as well.


%package devel
Summary:        Free, High-Quality, and Portable Font Engine (development files)
Group:          Development/Libraries

%description devel
FreeType 2 is a software font engine that is designed to be small, efficient, highly customizable, and portable while
capable of producing high-quality output (glyph images). It can be used in graphics libraries, display servers, font
conversion tools, text image generation tools, and many other products as well.
(development files)


%{_mingw32_debug_package}

%prep
%setup -q -n freetype-%{version} -b 1 -a 1

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>builds/unix/%{_mingw32_cache} && chmod +w builds/unix/%{_mingw32_cache}
%{_mingw32_configure} \
	--enable-shared --disable-static
make %{?_smp_mflags} || make


%install
make DESTDIR=$RPM_BUILD_ROOT install


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%{_mingw32_bindir}/libfreetype-6.dll


%files devel
%defattr(-,root,root)
%{_mingw32_bindir}/freetype-config
%{_mingw32_includedir}/freetype2
%{_mingw32_includedir}/ft2build.h
%{_mingw32_libdir}/libfreetype.dll.a
%{_mingw32_libdir}/pkgconfig/freetype2.pc
%{_mingw32_datadir}/aclocal/freetype2.m4


%changelog
openSUSE Build Service is sponsored by