File img2eps.spec of Package img2eps

# spec file for package img2eps (Version 0.2)
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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.

# Please submit bugfixes or comments via

# norootforbuild

Name:           img2eps
BuildRequires:  libpng-devel libtiff-devel
Version:        0.2
Release:        137
License:        BSD3c
Group:          Productivity/Publishing/TeX/Utilities
Summary:        Bitmap Image to Encapsulated PostScript Converter
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         img2eps-%{version}.tar.bz2
Patch0:         compress-params.diff
Patch1:         man.diff
Patch2:         libpng14.diff

Converts bitmap images in the formats PNG, JPEG, and TIFF to
Encapsulated PostScript Level 1, 2, or 3. It supports the native
PostScript filters ASCIIHex, ASCII85, DCT, LZW, Flate, and RunLength.

    Dieter Baron <>

%setup -q
%patch2 -p1

export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -D_GNU_SOURCE"
./configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir}

make install DESTDIR="$RPM_BUILD_ROOT"

rm -rf %{buildroot}

%defattr (-, root, root)
%doc %{_mandir}/man1/*