libgd/libgd.spec

169 lines
5.2 KiB
RPMSpec
Raw Permalink Normal View History

%define libname libgd
Name: libgd
Version: 2.2.4
Release: 1mamba
Summary: A library used to create PNG, JPEG, or WBMP images
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://libgd.github.io/
Source: https://github.com/libgd/libgd.git/gd-%{version}/libgd-%{version}.tar.bz2
Patch0: gd-2.0.35-CVE_2007_0455.patch
Patch1: gd-2.0.35-gd_gif_loop.patch
# see "DEFAULT_FONTPATH" in index.html
Patch2: gd-2.0.35-default_fontpath.patch
Patch3: gd-2.0.35-libpng-1.6.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libXpm-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: libvpx-devel
BuildRequires: libz-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: gettext-devel >= 0.14.4
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
GD is a graphics library.
It allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and write out the result as a PNG or JPEG file. GD does not create GIF images.
%package devel
Summary: Static libraries and headers for %{name}
Group: Development/Libraries
Requires: libgd = %{version}-%{release}
%description devel
GD is a graphics library.
It allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and write out the result as a PNG or JPEG file. GD does not create GIF images.
This package contains static libraries and header files need for development.
%package utils
Summary: The utils files for %{name}
Group: Applications/Multimedia
Requires: %{libname} = %{version}-%{release}
Provides: gd-utils
Obsoletes: gd-utils
%description utils
The gd-utils package includes utility programs supplied with gd, a graphics library for creating PNG and JPEG images.
%prep
%setup -q
%build
./bootstrap.sh
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_libdir}/libgd.so.*
%doc COPYING
%files devel
%defattr(-,root,root)
%{_bindir}/gdlib-config
%{_includedir}/*.h
%{_libdir}/libgd.a
%{_libdir}/libgd.la
%{_libdir}/libgd.so
%{_libdir}/pkgconfig/gdlib.pc
%files utils
%defattr(-,root,root)
%{_bindir}/annotate
%{_bindir}/bdftogd
%{_bindir}/gd2copypal
%{_bindir}/gd2togif
%{_bindir}/gd2topng
%{_bindir}/gdcmpgif
%{_bindir}/gdparttopng
%{_bindir}/gdtopng
%{_bindir}/giftogd2
%{_bindir}/pngtogd
%{_bindir}/pngtogd2
%{_bindir}/webpng
%changelog
* Sun Mar 26 2017 Automatic Build System <autodist@mambasoft.it> 2.2.4-1mamba
- automatic version update by autodist
* Sun Jul 31 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.3-1mamba
- update to 2.2.3
* Fri Jan 30 2015 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
- automatic update by autodist
* Mon Jan 27 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-1mamba
- update to 2.1.0
* Fri Aug 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.35-6mamba
- rebuilt with libpng 1.6 really (added patch)
* Tue Aug 27 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.35-5mamba
- libpng 1.6 mass rebuild
* Fri Jul 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.35-4mamba
- rebuilt with libpng 1.4 and libjpeg 8
* Thu Jun 03 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.35-3mamba
- rebuilt with current libjpeg
* Sat Oct 25 2008 Aleph0 <aleph0@openmamba.org> 2.0.35-2mamba
- fixed permissions of the documentation files
- security update: CVE-2007-0455 (gd buffer overrun)
- prevent from an infinite loop when decoding bad GIF images
* Mon Jun 16 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.35-1mamba
- update to 2.0.35
* Mon Mar 19 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.34-1qilnx
- update to version 2.0.34 by autospec
* Thu Jun 29 2006 Davide Madrisan <davide.madrisan@qilinux.it> 2.0.33-3qilnx
- security update: CAN-2006-2906 (qibug:186)
* Wed Apr 13 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.0.33-2qilnx
- added gd-utils package
- fixed security issue QSA-2005-043 (CAN-2004-0941)
- added %%post and %%postun scripts
* Fri Nov 05 2004 Davide Madrisan <davide.madrisan@qilinux.it> 2.0.33-1qilnx
- update to version 2.0.33 by autospec
- also fix security issue QSA-2004-050 (CAN-2004-0990)
* Tue Jul 27 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.28-1qilnx
- new version build
* Tue Jul 01 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.26-2qilnx
- added *.so inclusion in devel package
* Tue Jun 29 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.26-1qilnx
- new version build
* Tue Dec 30 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.17-1qilnx
- new version rebuild
* Fri Jun 06 2003 Silvan Calarco <silvan.calarco@qinet.it> 2.0.15-1qilnx
- creation of libgd package