Accepting request 304215 from home:pluskalm:branches:graphics
- Cleanup spec file with spec-cleaner - Update dependencies - Use url for source - Remove _DATE_ and _TIME_ OBS-URL: https://build.opensuse.org/request/show/304215 OBS-URL: https://build.opensuse.org/package/show/graphics/zimg?expand=0&rev=9
This commit is contained in:
parent
4729a4e5d3
commit
fc8d170907
@ -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
3
zimg-5.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d992bbb7f24d4c4ad7f6fec2f4efa7dee77222ad086881a2082426e9bfb3e099
|
||||||
|
size 384858
|
@ -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
|
||||||
|
|
||||||
|
64
zimg.spec
64
zimg.spec
@ -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} \
|
|
||||||
--prefix=%{prefix} \
|
|
||||||
--with-gd-includes=/usr/include/ \
|
|
||||||
--with-x-viewer=display \
|
--with-x-viewer=display \
|
||||||
--with-gd-lib=%{_libdir} \
|
--with-gd-lib=%{_libdir} \
|
||||||
--with-jpeg-lib=%{_libdir}
|
--with-jpeg-lib=%{_libdir}
|
||||||
make xpm_libs="-L/usr/X11R6/%{_lib} -lXpm -lX11"
|
make xpm_libs="-L/usr/X11R6/%{_lib} -lXpm -lX11" %{?_smp_mflags}
|
||||||
|
|
||||||
%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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user