%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: 11.10.0 Release: 1 License: GPL Artistic MIT Group: Graphics Url: https://netpbm.sourceforge.net/ Source0: %{name}-%{version}.tar.zst Source1: mf50-netpbm_filters Source2: test-images.tar.bz2 # Used for creating SOURCE0 Source10: package-source.sh 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 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 %autopatch -p1 %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 <