# # Conditional build: %bcond_with pango # use pango for text rendering (experimental and unsupported) # # WARNING! libgdiplus will not work if compiled with -fomit-frame-pointer # Summary: An Open Source implementation of the GDI+ API Summary(pl.UTF-8): Otwarta implementacja API GDI+ Name: libgdiplus Version: 5.6.1 Release: 1 License: MIT Group: Libraries Source0: http://download.mono-project.com/sources/libgdiplus/%{name}-%{version}.tar.gz # Source0-md5: 71dd7e00431dbd590f2ea7f1d49f097e Patch0: %{name}-ac.patch URL: http://www.mono-project.com/docs/gui/libgdiplus/ BuildRequires: autoconf >= 2.54 BuildRequires: automake >= 1:1.7 BuildRequires: cairo-devel >= 1.6.4 BuildRequires: fontconfig-devel BuildRequires: freetype-devel >= 2.0 BuildRequires: giflib-devel >= 5.0 BuildRequires: glib2-devel >= 1:2.2.3 BuildRequires: gtk+2-devel BuildRequires: libexif-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel >= 2:1.4 BuildRequires: libtiff-devel BuildRequires: libtool %{?with_pango:BuildRequires: pango-devel >= 1:1.10} BuildRequires: pkgconfig BuildRequires: sed >= 4.0 BuildRequires: xorg-lib-libX11-devel Requires: cairo >= 1.6.4 Requires: glib2 >= 1:2.2.3 %{?with_pango:Requires: pango >= 1:1.10} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %undefine __cxx %description An Open Source implementation of the GDI+ API. This is part of the Mono project. %description -l pl.UTF-8 Otwarta implementacja API GDI+. Część projektu Mono. %package devel Summary: Development files for libgdiplus Summary(pl.UTF-8): Pliki programistyczne libgdiplus Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: cairo-devel >= 1.6.4 Requires: fontconfig-devel Requires: freetype-devel >= 2.0 Requires: giflib-devel Requires: glib2-devel >= 1:2.2.3 Requires: libexif-devel Requires: libjpeg-devel Requires: libpng-devel >= 2:1.4 Requires: libtiff-devel %{?with_pango:Requires: pango-devel >= 1:1.10} Requires: xorg-lib-libXrender-devel %description devel Development files for libgdiplus. %description devel -l pl.UTF-8 Pliki programistyczne libgdiplus. %package static Summary: Static libgdiplus library Summary(pl.UTF-8): Statyczna biblioteka libgdiplus Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static libgdiplus library. %description static -l pl.UTF-8 Statyczna biblioteka libgdiplus. %prep %setup -q %patch0 -p1 # prefer default libpng instead of libpng14 > libpng12 > default %{__sed} -e 's/libpng14/libpng/g' -i configure.ac %build %{__libtoolize} %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} %configure \ %{?with_pango:--with-pango} %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgdiplus.la %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc AUTHORS COPYING ChangeLog %{?with_internal_cairo:LICENSE} NEWS README TODO %attr(755,root,root) %{_libdir}/libgdiplus.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libgdiplus.so.0 # needed at runtime for mono to load it as gdiplus.dll %attr(755,root,root) %{_libdir}/libgdiplus.so %files devel %defattr(644,root,root,755) %{_pkgconfigdir}/libgdiplus.pc %files static %defattr(644,root,root,755) %{_libdir}/libgdiplus.a