Accepting request 517559 from home:lachs0r
Renamed to zimg to match upstream name (see OBS request #516938). OBS-URL: https://build.opensuse.org/request/show/517559 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/zimg?expand=0&rev=1
This commit is contained in:
parent
1c048ba417
commit
39bc959ede
4
_service
Normal file
4
_service
Normal file
@ -0,0 +1,4 @@
|
||||
<services>
|
||||
<service name="download_files" mode="disabled">
|
||||
</service>
|
||||
</services>
|
3
release-2.6a.tar.gz
Normal file
3
release-2.6a.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d3ba0bb21a3919baf28f3caf9821cfba6ac8b40e74ee43948caae14e8a9e6a61
|
||||
size 238142
|
@ -1,19 +0,0 @@
|
||||
--- configure.in
|
||||
+++ configure.in
|
||||
@@ -41,7 +41,7 @@ AC_PREREQ(1.12)
|
||||
AC_REVISION($Revision: 1.106 $)
|
||||
AC_CONFIG_AUX_DIR(.)
|
||||
|
||||
-VERSION=`head -1 VERSION`
|
||||
+VERSION=`head -n 1 VERSION`
|
||||
AC_SUBST(VERSION)
|
||||
|
||||
AM_INIT_AUTOMAKE(zimg, $VERSION)
|
||||
@@ -69,6 +69,7 @@ AC_LIBTOOL_DLOPEN
|
||||
AM_PROG_LIBTOOL
|
||||
AC_SUBST(LIBTOOL_DEPS)
|
||||
|
||||
+m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
|
||||
if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
|
||||
STATIC=-static
|
||||
else
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d992bbb7f24d4c4ad7f6fec2f4efa7dee77222ad086881a2082426e9bfb3e099
|
||||
size 384858
|
@ -1,13 +0,0 @@
|
||||
Index: zimg-5.0.0/configure.in
|
||||
===================================================================
|
||||
--- zimg-5.0.0.orig/configure.in
|
||||
+++ zimg-5.0.0/configure.in
|
||||
@@ -36,7 +36,7 @@ dnl ====================================
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_INIT(zimg.h)
|
||||
-AM_CONFIG_HEADER(config.h)
|
||||
+AC_CONFIG_HEADERS(config.h)
|
||||
AC_PREREQ(1.12)
|
||||
AC_REVISION($Revision: 1.106 $)
|
||||
AC_CONFIG_AUX_DIR(.)
|
109
zimg.changes
109
zimg.changes
@ -1,93 +1,50 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 27 16:20:47 UTC 2015 - mpluskal@suse.com
|
||||
Fri Aug 18 12:03:13 UTC 2017 - 9@cirno.systems
|
||||
|
||||
- Cleanup spec file with spec-cleaner
|
||||
- Update dependencies
|
||||
- Use url for source
|
||||
- Remove _DATE_ and _TIME_
|
||||
- Rename to zimg to match upstream name (see OBS request #516938)
|
||||
- Update to 2.6a
|
||||
* api: add missing version requirements to comments
|
||||
* example: add ZIMG_CPU_AUTO_64B to API example
|
||||
* example: add more comments
|
||||
* colorspace: fix unit tests on 32-bit x86
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 13 12:16:01 CET 2013 - pgajdos@suse.cz
|
||||
Mon Aug 14 23:21:47 UTC 2017 - 9@cirno.systems
|
||||
|
||||
- builds with automake 1.13
|
||||
* automake-1.13.patch
|
||||
- Update to version 2.6
|
||||
* api: add ZIMG_CPU_AUTO_64B for AVX-512 compatibility
|
||||
* colorspace: add support for ITU-R BT.2100 ICtCp
|
||||
* colorspace: add support for constant luminance ITU-R BT.2100 HLG
|
||||
* colorspace: add support for SMPTE ST.431-2 (traditional DCI-P3)
|
||||
* colorspace: add support for chromaticity-derived NCL/CL matrices
|
||||
* colorspace: assume 1000 cd/m^2 peak luminance for HLG
|
||||
* colorspace: fix crash on bad colorspace definition
|
||||
* depth: optimized SSE2/AVX2 conversions with 8/16-bit input
|
||||
* resize: optimized AVX2 horizontal upsampler memory usage
|
||||
* resize: optimized x86 SIMD function calling
|
||||
* x86: AVX-512 code paths for key functions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 15 12:30:26 UTC 2013 - toganm@opensuse.org
|
||||
Sun Jul 9 00:08:55 UTC 2017 - jengelh@inai.de
|
||||
|
||||
- remove suse-update-config
|
||||
- remove INSTALL from doc
|
||||
- Fix RPM groups
|
||||
- Edit description to avoid potential confusion with the
|
||||
z/zip compression library (zlib).
|
||||
- Replace ancient -j%jobs by %_smp_mflags.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 19 15:39:18 UTC 2011 - coolo@suse.com
|
||||
Thu Jul 6 20:21:12 UTC 2017 - 9@cirno.systems
|
||||
|
||||
- add libtool as buildrequire to avoid implicit dependency
|
||||
- Copy to OBS, add (disabled) download _service
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 6 14:42:09 CEST 2008 - schwab@suse.de
|
||||
Thu Jun 22 10:41:57 UTC 2017 - joerg.lorenzen@ki.tng.de
|
||||
|
||||
- Don't use libtool before it is created.
|
||||
- Update to version 2.5.1
|
||||
+ depth: fix AVX2 conversion from half to byte/word
|
||||
(introduced in 2.1).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 11 14:44:25 CEST 2008 - schwab@suse.de
|
||||
|
||||
- Work around broken configure script.
|
||||
- Use autoreconf.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:43:46 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 14 16:50:23 CET 2005 - lmichnovic@suse.cz
|
||||
|
||||
- update to verison 5.0.0
|
||||
- Default graphical output application changed from xv to display (ImageMagick) due to licence of xv.
|
||||
- Added Requires: ImageMagick.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 16 12:09:32 CET 2004 - ltinkl@suse.cz
|
||||
|
||||
- update to 4.22.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 11 09:51:48 CET 2004 - adrian@suse.de
|
||||
|
||||
- add %defattr
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 27 16:36:24 CEST 2003 - ro@suse.de
|
||||
|
||||
- remove unpackaged files from buildroot
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 17 17:38:17 CET 2003 - tcrhak@suse.cz
|
||||
|
||||
- update to version 4.19.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 26 12:03:41 CEST 2002 - tcrhak@suse.cz
|
||||
|
||||
- fixed to build with lib64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 1 00:26:07 CET 2002 - ro@suse.de
|
||||
|
||||
- changed neededforbuild <libpng> to <libpng-devel-packages>
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 21 19:07:03 CET 2001 - pblaha@suse.cz
|
||||
|
||||
- fix needfor build for freetype2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 25 11:15:20 CET 2001 - pblaha@suse.cz
|
||||
|
||||
- update on lates stable 4.5.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 18 14:29:36 CET 2000 - pblaha@suse.cz
|
||||
|
||||
- create this package
|
||||
Thu Mar 30 11:42:13 UTC 2017 - joerg.lorenzen@ki.tng.de
|
||||
|
||||
- Initial package, version 2.5
|
||||
|
103
zimg.spec
103
zimg.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package zimg
|
||||
# spec file for package libzimg
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -15,66 +15,77 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%define sover 2
|
||||
|
||||
Name: zimg
|
||||
Version: 5.0.0
|
||||
Summary: Scaling, colorspace conversion, and dithering library
|
||||
Version: 2.6a
|
||||
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
|
||||
Url: https://github.com/sekrit-twc/zimg
|
||||
Source0: https://github.com/sekrit-twc/zimg/archive/release-%{version}.tar.gz
|
||||
License: WTFPL
|
||||
Group: Development/Libraries/C and C++
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: freetype2-devel
|
||||
BuildRequires: gd-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libtool
|
||||
BuildRequires: xorg-x11
|
||||
BuildRequires: xorg-x11-devel
|
||||
Requires: ImageMagick
|
||||
Requires: gd >= 1.8.3
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
%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.
|
||||
The "z" image library implements the commonly required image processing
|
||||
basics of scaling, colorspace conversion, and depth conversion.
|
||||
|
||||
%package -n libzimg%{sover}
|
||||
Summary: Scaling, colorspace conversion, and dithering library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libzimg%{sover}
|
||||
The "z" image library implements the commonly required image processing
|
||||
basics of scaling, colorspace conversion, and depth conversion.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for libzimg%{sover}
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libzimg%{sover} = %{version}
|
||||
|
||||
%description devel
|
||||
The libzimg-devel package contains libraries and header files for
|
||||
developing applications that use libzimg%{sover}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0
|
||||
%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"
|
||||
%setup -n zimg-release-%{version}
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
./autogen.sh
|
||||
%configure \
|
||||
--with-gd-includes=%{_includedir}/ \
|
||||
--with-x-viewer=display \
|
||||
--with-gd-lib=%{_libdir} \
|
||||
--with-jpeg-lib=%{_libdir}
|
||||
make xpm_libs="-L/usr/X11R6/%{_lib} -lXpm -lX11" %{?_smp_mflags}
|
||||
--docdir=%{_docdir}/libzimg \
|
||||
--enable-x86simd \
|
||||
--disable-static
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||
rm -f %{buildroot}%{_includedir}/zimg.h
|
||||
%makeinstall
|
||||
find %{buildroot} -iname '*.la' -delete
|
||||
|
||||
%files
|
||||
%post -n libzimg%{sover} -p /sbin/ldconfig
|
||||
|
||||
%postun -n libzimg%{sover} -p /sbin/ldconfig
|
||||
|
||||
%files -n libzimg%{sover}
|
||||
%defattr(-,root,root)
|
||||
%doc README ChangeLog AUTHORS COPYING NEWS TODO
|
||||
%{_bindir}/zimg
|
||||
%{_mandir}/man1/zimg*
|
||||
%{_libdir}/libzimg.so.2
|
||||
%{_libdir}/libzimg.so.2.0.0
|
||||
%dir %{_docdir}/libzimg
|
||||
%doc %{_docdir}/libzimg/COPYING
|
||||
%doc %{_docdir}/libzimg/README.md
|
||||
%doc %{_docdir}/libzimg/ChangeLog
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/zimg.h
|
||||
%{_includedir}/zimg++.hpp
|
||||
%{_libdir}/libzimg.so
|
||||
%{_libdir}/pkgconfig/zimg.pc
|
||||
%{_docdir}/libzimg/example/
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user