# # spec file for package zimg # # Copyright (c) 2013 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 http://bugs.opensuse.org/ # Name: zimg BuildRequires: freetype2-devel BuildRequires: gd-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel BuildRequires: libtool BuildRequires: xorg-x11 BuildRequires: xorg-x11-devel Requires: gd >= 1.8.3 Version: 5.0.0 Release: 0 Source: %{name}-%{version}.tar.bz2 Patch: %{name}-%{version}.patch Url: http://sourceforge.net/projects/zimg/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: Display 2-D data of arbitrary format License: BSD-3-Clause Group: Productivity/Graphics/Visualization/Graph Requires: ImageMagick %description zimg generates png images from arbitrary formatted f(x,y) data. Both plain unformatted ascii and a variety of binary input formats are supported. Output options include variable logarithmic color mapping VLCM and contour graphics and lots of color maps. zimg is a fast converter. Authors: -------- Johannes Zellner %prep %setup %patch %build %define prefix /usr/ autoreconf -fi CFLAGS="$RPM_OPT_FLAGS" \ CXXFLAGS="$RPM_OPT_FLAGS" \ ./configure --mandir=%{_mandir} \ --prefix=%{prefix} \ --with-gd-includes=/usr/include/ \ --with-x-viewer=display \ --with-gd-lib=%{_libdir} \ --with-jpeg-lib=%{_libdir} make xpm_libs="-L/usr/X11R6/%{_lib} -lXpm -lX11" %install make DESTDIR=$RPM_BUILD_ROOT install rm -f $RPM_BUILD_ROOT/usr/include/zimg.h %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README ChangeLog AUTHORS COPYING NEWS TODO /usr/bin/zimg /usr/share/man/man1/zimg* %changelog