Accepting request 304322 from graphics

1

OBS-URL: https://build.opensuse.org/request/show/304322
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zimg?expand=0&rev=20
This commit is contained in:
Dominique Leuenberger 2015-05-02 19:35:28 +00:00 committed by Git OBS Bridge
commit 1c048ba417
4 changed files with 45 additions and 41 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f2128e64d1a3e2b1222c0255b041150ddd4884827474dd3cfbbd7b78551ed5c
size 264616

3
zimg-5.0.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d992bbb7f24d4c4ad7f6fec2f4efa7dee77222ad086881a2082426e9bfb3e099
size 384858

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Apr 27 16:20:47 UTC 2015 - mpluskal@suse.com
- Cleanup spec file with spec-cleaner
- Update dependencies
- Use url for source
- Remove _DATE_ and _TIME_
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 13 12:16:01 CET 2013 - pgajdos@suse.cz Wed Mar 13 12:16:01 CET 2013 - pgajdos@suse.cz

View File

@ -1,7 +1,7 @@
# #
# spec file for package zimg # spec file for package zimg
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,6 +17,18 @@
Name: zimg Name: zimg
Version: 5.0.0
Release: 0
Summary: Display 2-D data of arbitrary format
License: BSD-3-Clause
Group: Productivity/Graphics/Visualization/Graph
Url: http://sourceforge.net/projects/zimg/
Source0: http://sourceforge.net/projects/zimg/files/zimg/zimg-%{version}/%{name}-%{version}.tar.gz
Source1: %{name}.changes
Patch0: %{name}-%{version}.patch
Patch1: zimg-automake-1.13.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: freetype2-devel BuildRequires: freetype2-devel
BuildRequires: gd-devel BuildRequires: gd-devel
BuildRequires: libpng-devel BuildRequires: libpng-devel
@ -24,18 +36,9 @@ BuildRequires: libtiff-devel
BuildRequires: libtool BuildRequires: libtool
BuildRequires: xorg-x11 BuildRequires: xorg-x11
BuildRequires: xorg-x11-devel BuildRequires: xorg-x11-devel
Requires: gd >= 1.8.3
Version: 5.0.0
Release: 0
Source: %{name}-%{version}.tar.bz2
Patch: %{name}-%{version}.patch
Patch1: zimg-automake-1.13.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 Requires: ImageMagick
Requires: gd >= 1.8.3
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
zimg generates png images from arbitrary formatted f(x,y) data. Both zimg generates png images from arbitrary formatted f(x,y) data. Both
@ -44,41 +47,34 @@ supported. Output options include variable logarithmic color mapping
VLCM and contour graphics and lots of color maps. zimg is a fast VLCM and contour graphics and lots of color maps. zimg is a fast
converter. converter.
Authors:
--------
Johannes Zellner <johannes@zellner.org>
%prep %prep
%setup %setup -q
%patch %patch0
%patch1 -p1 %patch1 -p1
# Do not include build time
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE1}")"
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
TIME="\"$(date -d "${modified}" "+%%R")\""
find . -name '*.[ch]' |\
xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g"
%build %build
%define prefix /usr/
autoreconf -fi autoreconf -fi
CFLAGS="$RPM_OPT_FLAGS" \ %configure \
CXXFLAGS="$RPM_OPT_FLAGS" \ --with-gd-includes=%{_includedir}/ \
./configure --mandir=%{_mandir} \ --with-x-viewer=display \
--prefix=%{prefix} \ --with-gd-lib=%{_libdir} \
--with-gd-includes=/usr/include/ \ --with-jpeg-lib=%{_libdir}
--with-x-viewer=display \ make xpm_libs="-L/usr/X11R6/%{_lib} -lXpm -lX11" %{?_smp_mflags}
--with-gd-lib=%{_libdir} \
--with-jpeg-lib=%{_libdir}
make xpm_libs="-L/usr/X11R6/%{_lib} -lXpm -lX11"
%install %install
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -f $RPM_BUILD_ROOT/usr/include/zimg.h rm -f %{buildroot}%{_includedir}/zimg.h
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc README ChangeLog AUTHORS COPYING NEWS TODO %doc README ChangeLog AUTHORS COPYING NEWS TODO
/usr/bin/zimg %{_bindir}/zimg
/usr/share/man/man1/zimg* %{_mandir}/man1/zimg*
%changelog %changelog