libgdiplus/libgdiplus.spec

154 lines
4.2 KiB
RPMSpec

# the glitz surface backend is still an unstable API
%define with_glitz 1
# the XCB surface backend is still an unstable API
%define with_xcb 1
Name: libgdiplus
Version: 2.10.9
Release: 2mamba
Summary: An Open Source implementation of the GDI+ API
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.mono-project.com/Libgdiplus
Source: http://download.mono-project.com/sources/libgdiplus/libgdiplus-%{version}.tar.bz2
Patch1: %{name}-1.2.4-cairo_glitz_path.patch
Patch2: %{name}-1.2.4-fix_link.patch
Patch3: %{name}-2.10.9-libpng14.patch
Patch4: libgdiplus-2.10.9-libgif-5.patch
License: LGPL, MPL 1.1, MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcairo-devel
BuildRequires: libexif-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgif-devel
BuildRequires: libglib-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng14-devel
BuildRequires: libtiff-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXrender-devel
## AUTOBUILDREQ-END
BuildRequires: pkgconfig
BuildRequires: libcairo-devel
BuildRequires: libpoppler-devel
%if %{with_glitz}
BuildRequires: libglitz-devel
%endif
%if %{with_xcb}
BuildRequires: libxcb-devel >= 1.1
BuildRequires: libxcb-util-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Libgdiplus is an Open Source implementation of the GDI+ API.
It is part of the Mono Project.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
Libgdiplus is an Open Source implementation of the GDI+ API.
It is part of the Mono Project.
This package contains static libraries and header files need for development.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p0
%patch4 -p1
%build
export CFLAGS="-lX11 -lXext -lglib-2.0"
%configure \
%if %{with_glitz}
--enable-glitz \
%else
--disable-glitz \
%endif
%if %{with_xcb}
--enable-xcb \
%else
--disable-xcb \
%endif
sed -ie "s,-Werror,,g" src/Makefile
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
# note: mono requires libgdiplus.so
%{_libdir}/*.so*
%doc AUTHORS COPYING ChangeLog LICENSE MPL-1.1.html NEWS README TODO
%files devel
%defattr(-,root,root)
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/pkgconfig/*.pc
%changelog
* Fri May 31 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.9-2mamba
- rebuilt with libgif instead of libungif
* Tue Jun 26 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.9-1mamba
- update to 2.10.9
* Fri Jul 22 2011 Automatic Build System <autodist@mambasoft.it> 2.10-1mamba
- automatic update to 3.0.3.0 by autodist
* Mon Nov 22 2010 Automatic Build System <autodist@mambasoft.it> 2.8.1-1mamba
- automatic update by autodist
* Tue Nov 09 2010 Automatic Build System <autodist@mambasoft.it> 2.8-1mamba
- automatic update by autodist
* Tue Aug 10 2010 Automatic Build System <autodist@mambasoft.it> 2.6.7-1mamba
- automatic update by autodist
* Sat Jun 26 2010 Automatic Build System <autodist@mambasoft.it> 2.6.4-1mamba
- automatic update by autodist
* Sun Apr 25 2010 Automatic Build System <autodist@mambasoft.it> 2.6.2-1mamba
- automatic update by autodist
* Thu Jan 14 2010 Automatic Build System <autodist@mambasoft.it> 2.6-1mamba
- automatic update by autodist
* Thu May 21 2009 Automatic Build System <autodist@mambasoft.it> 2.4-1mamba
- automatic update by autodist
* Wed Jul 16 2008 gil <puntogil@libero.it> 1.9-1mamba
- update to 1.9
* Fri Jun 29 2007 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.2.4-1mamba
- update to 1.2.4
- fixed license
- enabled XCB surface backend
* Thu Dec 21 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.2.2-1qilnx
- update to version 1.2.2 by autospec
- added missing build requirements
* Wed May 04 2005 Davide Madrisan <davide.madrisan@qilinux.it> 1.1.8-1qilnx
- package created by autospec