libgdiplus/libgdiplus.spec

182 lines
5.1 KiB
RPMSpec
Raw Permalink Normal View History

# 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: 6.0.5
Release: 1mamba
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: https://github.com/mono/libgdiplus.git/%{version}/libgdiplus-%{version}.tar.bz2
#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: ldconfig
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libXdmcp-devel
BuildRequires: libbzip2-devel
BuildRequires: libcairo-devel
BuildRequires: libexif-devel
BuildRequires: libexpat-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgif-devel
BuildRequires: libglib-devel
BuildRequires: libjbig-devel
BuildRequires: libjpeg-devel
BuildRequires: liblzma-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: libwebp-devel
BuildRequires: libxcb-devel
BuildRequires: libz-devel
BuildRequires: libzstd-devel
## AUTOBUILDREQ-END
BuildRequires: pkgconfig
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} = %{?epoch:%epoch:}%{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 needed for development.
%debug_package
%prep
%setup -q
#%patch1 -p1
#%patch2 -p1
#%patch3 -p0
#%patch4 -p1
./autogen.sh
%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}/libgdiplus.so
%{_libdir}/libgdiplus.so.*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_libdir}/libgdiplus.a
%{_libdir}/libgdiplus.la
%{_libdir}/pkgconfig/*.pc
%doc ChangeLog LICENSE NEWS TODO
%changelog
* Mon Dec 14 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0.5-1mamba
- update to 6.0.5
* Thu Mar 28 2019 Automatic Build System <autodist@mambasoft.it> 5.6.1-1mamba
- automatic version update by autodist
* Tue Jan 09 2018 Automatic Build System <autodist@mambasoft.it> 5.6-1mamba
- automatic version update by autodist
* Fri Jul 15 2016 Automatic Build System <autodist@mambasoft.it> 4.2-1mamba
- automatic version update by autodist
* Sat Oct 04 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.8-1mamba
- update to 3.8
* 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