2007-01-16 00:26:51 +01:00
|
|
|
#
|
2009-12-04 11:32:11 +01:00
|
|
|
# spec file for package netpbm (Version 10.35.69)
|
2007-01-16 00:26:51 +01:00
|
|
|
#
|
2010-01-07 13:01:15 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:26:51 +01:00
|
|
|
#
|
2008-10-22 18:26:13 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:26:51 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 14:56:11 +02:00
|
|
|
|
2007-01-16 00:26:51 +01:00
|
|
|
Name: netpbm
|
2009-07-08 21:02:40 +02:00
|
|
|
BuildRequires: flex libjasper-devel libpng-devel libtiff-devel python
|
2009-12-04 11:32:11 +01:00
|
|
|
License: PERMISSIVE-OSI-COMPLIANT ; Artistic License .. ; BSD3c(or similar) ; GPLv2+ ; Public Domain, Freeware ; MIT License (or similar)
|
2007-01-16 00:26:51 +01:00
|
|
|
Group: Productivity/Graphics/Convertors
|
|
|
|
Provides: pbmplus
|
2007-11-09 22:46:22 +01:00
|
|
|
AutoReqProv: on
|
2009-01-09 01:38:27 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: netpbm-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2009-12-04 11:32:11 +01:00
|
|
|
Version: 10.35.69
|
2010-01-07 13:01:15 +01:00
|
|
|
Release: 2
|
2007-01-16 00:26:51 +01:00
|
|
|
Summary: A Powerful Graphics Conversion Package
|
2009-12-04 11:32:11 +01:00
|
|
|
Source: netpbm-%{version}.tar.bz2
|
2007-01-16 00:26:51 +01:00
|
|
|
Source1: netpbm-%{version}-documentation.tar.bz2
|
2010-01-07 13:01:15 +01:00
|
|
|
Source2: baselibs.conf
|
2007-01-16 00:26:51 +01:00
|
|
|
Source3: prepare-src-tarball
|
|
|
|
Patch: netpbm-%{version}.dif
|
|
|
|
Patch2: netpbm-%{version}-manpages.patch
|
2009-07-08 21:02:40 +02:00
|
|
|
Patch3: netpbm-10.23-security.patch
|
|
|
|
Patch4: netpbm-10.22-security2.patch
|
2007-01-16 00:26:51 +01:00
|
|
|
Patch6: netpbm-%{version}-tmpfile.patch
|
|
|
|
Patch7: netpbm-%{version}-colornames-init.diff
|
|
|
|
Patch8: netpbm-%{version}-fixes.patch
|
|
|
|
Patch10: netpbm-%{version}-endian.patch
|
|
|
|
Patch11: netpbm-%{version}-pnmtopng-CAN-2005-2978.patch
|
|
|
|
Patch13: netpbm-%{version}-ximtoppm-fixes.patch
|
|
|
|
Patch15: netpbm-%{version}-rgb.patch
|
|
|
|
Patch16: netpbm-%{version}-pamtouil.patch
|
|
|
|
Patch17: netpbm-%{version}-pnmtopng-transparent.patch
|
2008-10-22 18:26:13 +02:00
|
|
|
Patch19: netpbm-%{version}-pamscale.patch
|
2009-08-06 18:07:53 +02:00
|
|
|
Patch20: netpbm-%{version}-missing-file-close.patch
|
2010-02-15 09:20:38 +01:00
|
|
|
Patch21: netpbm-%{version}-gcc45.patch
|
2007-11-09 22:46:22 +01:00
|
|
|
Url: http://netpbm.sourceforge.net
|
2007-01-16 00:26:51 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-11-09 22:46:22 +01:00
|
|
|
|
2007-08-10 01:26:03 +02:00
|
|
|
%package -n libnetpbm10
|
2009-12-04 11:32:11 +01:00
|
|
|
License: LGPLv2.1+
|
2007-08-10 01:26:03 +02:00
|
|
|
Summary: Libraries for the NetPBM (NetPortableBitmap) Graphic Formats
|
|
|
|
Group: System/Libraries
|
2007-11-09 22:46:22 +01:00
|
|
|
AutoReqProv: on
|
2009-01-09 01:38:27 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
2009-01-14 17:57:18 +01:00
|
|
|
Obsoletes: libnetpbm-64bit
|
2009-01-09 01:38:27 +01:00
|
|
|
%endif
|
|
|
|
#
|
2007-08-10 01:26:03 +02:00
|
|
|
Provides: libnetpbm = %{version}
|
|
|
|
Obsoletes: libnetpbm < %{version}
|
2007-11-09 22:46:22 +01:00
|
|
|
|
2007-08-10 01:26:03 +02:00
|
|
|
%package -n libnetpbm-devel
|
2009-12-04 11:32:11 +01:00
|
|
|
License: LGPLv2.1+
|
2007-08-10 01:26:03 +02:00
|
|
|
Summary: Libraries for the NetPBM Graphic Formats - files mandatory for development
|
|
|
|
Group: Development/Libraries/C and C++
|
2007-11-09 22:46:22 +01:00
|
|
|
AutoReqProv: on
|
2009-01-09 01:38:27 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
2009-01-14 17:57:18 +01:00
|
|
|
Obsoletes: libnetpbm-devel-64bit
|
2009-01-09 01:38:27 +01:00
|
|
|
%endif
|
|
|
|
#
|
2007-08-10 01:26:03 +02:00
|
|
|
Requires: libnetpbm10 = %{version}
|
|
|
|
Provides: libnetpbm:/usr/include/pbm.h
|
2007-01-16 00:26:51 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The latest version of the Portable Bitmap Plus Utilities. This large
|
|
|
|
package, which is by now available for all hardware platforms, provides
|
|
|
|
tools for graphics conversion. Using these tools, images can be
|
|
|
|
converted from virtually any format into any other format. A few of the
|
|
|
|
supported formats include: GIF, PC-Paintbrush, IFF ILBM, Gould Scanner
|
|
|
|
file, MTV ray tracer, Atari Degas .pi1 and .pi3, Macintosh PICT, HP
|
|
|
|
Paintjet file, QRT raytracer, AUTOCAD slide, Atari Spectrum (compressed
|
|
|
|
and uncompressed), Andrew Toolkit raster object, and many more. On top
|
|
|
|
of that, man pages are included for all tools.
|
|
|
|
|
2007-08-10 01:26:03 +02:00
|
|
|
%description -n libnetpbm10
|
|
|
|
These are the libs for the netpbm graphic formats. The tools can be
|
|
|
|
found in the netpbm package. The sources are contained in the netpbm
|
|
|
|
source package.
|
|
|
|
|
|
|
|
%description -n libnetpbm-devel
|
2007-01-16 00:26:51 +01:00
|
|
|
These are the libs for the netpbm graphic formats. The tools can be
|
|
|
|
found in the netpbm package. The sources are contained in the netpbm
|
|
|
|
source package.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
%setup -D -q -a 1
|
|
|
|
rm -rf libtiff
|
|
|
|
%patch
|
|
|
|
%patch2
|
2009-07-08 21:02:40 +02:00
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
2007-01-16 00:26:51 +01:00
|
|
|
%patch6
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8
|
|
|
|
%patch10
|
|
|
|
%patch11
|
|
|
|
%patch13
|
|
|
|
%patch15
|
|
|
|
%patch16
|
|
|
|
%patch17
|
2008-10-22 18:26:13 +02:00
|
|
|
%patch19
|
2009-08-06 18:07:53 +02:00
|
|
|
%patch20
|
2010-02-15 09:20:38 +01:00
|
|
|
%patch21
|
2007-11-09 22:46:22 +01:00
|
|
|
rm -rf converter/other/jpeg2000/libjasper/include #make sure the internal libjasper is not used
|
2007-01-16 00:26:51 +01:00
|
|
|
mkdir -p pnmtopalm
|
2007-04-12 18:12:29 +02:00
|
|
|
cd pnmtopalm
|
2007-01-16 00:26:51 +01:00
|
|
|
cp -v ../converter/other/pnmtopalm/LICENSE .
|
|
|
|
cp -v ../converter/other/pnmtopalm/README .
|
|
|
|
|
|
|
|
%build
|
2009-06-02 12:25:47 +02:00
|
|
|
# fix build with newer glibc
|
|
|
|
sed "s:getline:getline_nonlibc:" -i converter/ppm/xvminitoppm.c
|
|
|
|
#
|
2007-01-16 00:26:51 +01:00
|
|
|
cp Makefile.config.in Makefile.config
|
2007-11-23 01:52:03 +01:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
%if %suse_version > 1030
|
|
|
|
CFLAGS="$CFLAGS -flax-vector-conversions"
|
|
|
|
%endif
|
|
|
|
make CFLAGS="$CFLAGS" \
|
2007-11-09 22:46:22 +01:00
|
|
|
JASPERLIB=-ljasper \
|
|
|
|
JASPERHDR_DIR=/usr/include/jasper
|
2009-07-08 21:02:40 +02:00
|
|
|
#
|
|
|
|
# convert html to man pages
|
|
|
|
cd netpbm.sourceforge.net/doc
|
|
|
|
../../buildtools/makeman *.html
|
|
|
|
for i in 1 3 5 ; do
|
|
|
|
mkdir -p ../../man/man${i}
|
|
|
|
mv *.${i} ../../man/man${i}
|
|
|
|
done
|
2007-01-16 00:26:51 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/{bin,include,%_lib,share/man}
|
|
|
|
make pkgdir=`pwd`/package package STRIPFLAG=
|
|
|
|
cp -prd package/bin $RPM_BUILD_ROOT/usr
|
|
|
|
cp -pd package/{lib,link}/* $RPM_BUILD_ROOT/usr/%_lib
|
2009-07-23 16:09:41 +02:00
|
|
|
ln -sf libnetpbm.so.10.35 $RPM_BUILD_ROOT/usr/%_lib/libnetpbm.so
|
2007-01-16 00:26:51 +01:00
|
|
|
ln -sf libnetpbm.so $RPM_BUILD_ROOT/usr/%_lib/libpbm.so
|
|
|
|
ln -sf libnetpbm.so $RPM_BUILD_ROOT/usr/%_lib/libpgm.so
|
|
|
|
ln -sf libnetpbm.so $RPM_BUILD_ROOT/usr/%_lib/libpnm.so
|
|
|
|
ln -sf libnetpbm.so $RPM_BUILD_ROOT/usr/%_lib/libppm.so
|
|
|
|
cp -pd package/include/* $RPM_BUILD_ROOT/usr/include
|
|
|
|
cp -prd man/* $RPM_BUILD_ROOT/usr/share/man
|
2007-08-10 01:26:03 +02:00
|
|
|
rm $RPM_BUILD_ROOT/usr/%_lib/*.a
|
2007-01-16 00:26:51 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/netpbm
|
|
|
|
install -m 644 converter/other/pnmtopalm/*.map $RPM_BUILD_ROOT/usr/share/netpbm
|
2009-07-08 21:02:40 +02:00
|
|
|
rm $RPM_BUILD_ROOT/usr/bin/doc.url
|
2007-01-16 00:26:51 +01:00
|
|
|
rm $RPM_BUILD_ROOT/usr/bin/g3topbm #conflict with g3utils
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2009-07-08 21:02:40 +02:00
|
|
|
%post -n libnetpbm10 -p /sbin/ldconfig
|
2007-01-16 00:26:51 +01:00
|
|
|
|
2009-07-08 21:02:40 +02:00
|
|
|
%postun -n libnetpbm10 -p /sbin/ldconfig
|
2007-01-16 00:26:51 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README doc/* netpbm.sourceforge.net/doc
|
2007-04-12 18:12:29 +02:00
|
|
|
%doc pnmtopalm/
|
2007-01-16 00:26:51 +01:00
|
|
|
%doc %{_mandir}/man1/*.gz
|
|
|
|
%doc %{_mandir}/man3/*.gz
|
|
|
|
%doc %{_mandir}/man5/*.gz
|
|
|
|
/usr/bin/*
|
|
|
|
/usr/share/netpbm
|
|
|
|
|
2007-08-10 01:26:03 +02:00
|
|
|
%files -n libnetpbm10
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files -n libnetpbm-devel
|
2007-01-16 00:26:51 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/include/*
|
2007-08-10 01:26:03 +02:00
|
|
|
%{_libdir}/lib*.so
|
2007-11-23 01:52:03 +01:00
|
|
|
|
2007-03-29 18:22:31 +02:00
|
|
|
%changelog
|