%define debug_package %{nil} %define _disable_ld_no_undefined 1 %define major 11 %define libname %mklibname %{name} %{major} %define devname %mklibname %{name} -d Summary: Tools for manipulating graphics files in netpbm supported formats Name: netpbm Version: 10.85.03 Release: 1 License: GPL Artistic MIT Group: Graphics Url: http://netpbm.sourceforge.net/ # Source0 is prepared by # svn checkout https://svn.code.sf.net/p/netpbm/code/advanced netpbm-%{version} # svn checkout https://svn.code.sf.net/p/netpbm/code/userguide netpbm-%{version}/userguide # and removing the .svn directories ( find -name "\.svn" -type d -print0 | xargs -0 rm -rf ) # and removing the ppmtompeg code, due to patents ( rm -rf netpbm-%{version}/converter/ppm/ppmtompeg/ ) Source0: %{name}-%{version}.tar.gz Source1: mf50-netpbm_filters Source2: test-images.tar.bz2 Patch1: http://pkgs.fedoraproject.org/cgit/rpms/netpbm.git/plain/netpbm-CVE-2017-2587.patch Patch2: http://pkgs.fedoraproject.org/cgit/rpms/netpbm.git/plain/netpbm-noppmtompeg.patch Patch3: http://pkgs.fedoraproject.org/cgit/rpms/netpbm.git/plain/netpbm-ppmfadeusage.patch Patch5: http://pkgs.fedoraproject.org/cgit/rpms/netpbm.git/plain/netpbm-security-scripts.patch BuildRequires: flex BuildRequires: jbig-devel BuildRequires: jpeg-devel BuildRequires: tiff-devel BuildRequires: pkgconfig(jasper) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(python) BuildRequires: pkgconfig(x11) BuildConflicts: svgalib-devel %description The netpbm package contains a library of functions which support programs for handling various graphics file formats, including .pbm (portable bitmaps), .pgm (portable graymaps), .pnm (portable anymaps), .ppm (portable pixmaps) and others. %package -n %{libname} Summary: A library for handling different graphics file formats Group: System/Libraries %description -n %{libname} The netpbm package contains a library of functions which support programs for handling various graphics file formats, including .pbm (portable bitmaps), .pgm (portable graymaps), .pnm (portable anymaps), .ppm (portable pixmaps) and others. %package -n %{devname} Summary: Development tools for programs which will use the netpbm libraries Group: Development/C Requires: %{libname} >= %{version} Provides: %{name}-devel = %{version}-%{release} %description -n %{devname} The netpbm-devel package contains the header files and programmer's documentation for developing programs which can handle the various graphics file formats supported by the netpbm libraries. %prep %setup -q -a2 %apply_patches %build #export CC=gcc #export CXX=g++ %serverbuild export CFLAGS="$CFLAGS -fPIC -flax-vector-conversions -fno-strict-aliasing" find . -name Makefile |xargs sed -i -e 's,\$(AR) -rc,$(AR) rc,g' ./configure <