Browse Source

updated image libs

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12189 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 4 years ago
parent
commit
5b64443dee

+ 31 - 14
L/LibRaw/LibRaw-vl.spec

@@ -1,9 +1,11 @@
+%bcond_with openmp
+
 Summary: Library for reading RAW files obtained from digital photo cameras
 Summary(ja): デジタルカメラから取り込んだ RAW ファイルを読むためのライブラリ
 Name: LibRaw
-Version: 0.17.2
+Version: 0.19.5
 Release: 1%{?_dist_release}
-License: LGPLv2 or CDDL or LibRaw Software License
+License: BSD and (CDDL or LGPLv2)
 Group: System Environment/Libraries
 URL: http://www.libraw.org
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
@@ -27,7 +29,6 @@ drawbacks have already been eliminated and part will be fixed in future.
 Summary: LibRaw development libraries
 Summary(ja): LibRaw の開発ライブラリ
 Group: Development/Libraries
-License: LGPLv2 or CDDL o LibRaw Software License
 Requires: %{name} = %{version}-%{release}
 Requires: pkgconfig
 
@@ -41,7 +42,6 @@ against libraw. LibRaw does not provide dynamic libraries.
 Summary: LibRaw static libraries
 Summary(ja): LibRaw の静的ライブラリ
 Group: Development/Libraries
-License: LGPLv2 or CDDL o LibRaw Software License
 
 Requires: %{name}-devel = %{version}-%{release}
 
@@ -49,31 +49,45 @@ Requires: %{name}-devel = %{version}-%{release}
 This package contains the static library for %{name}.
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
 
 %build
-# This is not the autotools generated configure script
-CFLAGS="%{optflags}" sh configure --prefix=/usr --disable-examples \
- --disable-demosaic-pack-gpl2 --disable-demosaic-pack-gpl3 \
- --enable-lcms --enable-jasper
-make %{?_smp_mflags}
+autoreconf -if
+%configure \
+    --enable-examples=no \
+    --enable-jasper \
+    --enable-jpeg \
+    --enable-lcms \
+%if %{with openmp}
+    --enable-openmp
+%endif
+
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+
+%make_build
+
 
 %install
 rm -rf %{buildroot}
 cp -pr doc manual
-cp -pr doc manual
 chmod 644 LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.*
 chmod 644 manual/*.html
 
 # The Libraries
-#make install DESTDIR=%{buildroot} LIBDIR=%{_lib}
-%makeinstall
+%make_install
+
+rm -rfv samples/.deps
+rm -fv samples/.dirstamp
+rm -fv samples/*.o
 
 rm -rf %{buildroot}%{_libdir}/*.la
 
+
 %files
 %defattr(-,root,root,-)
-%doc LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt
+%license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
+%doc Changelog.txt
 %{_libdir}/*.so.*
 
 %files devel
@@ -93,6 +107,9 @@ rm -rf %{buildroot}%{_libdir}/*.la
 %postun -p /sbin/ldconfig
 
 %changelog
+* Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.19.5-1
+- new upstream release.
+
 * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.17.2-1
 - new upstream release.
 

+ 17 - 27
g/giflib/giflib-vl.spec

@@ -3,13 +3,15 @@
 Summary:     A library for manipulating GIF format image files.
 Summary(ja): GIF 形式の画像ファイルを扱うライブラリ
 Name: giflib
-Version: 4.2.3
+Version: 5.2.1
 Release: 1%{_dist_release}
 License: MIT
 URL: http://sourceforge.net/projects/giflib/
-Source: http://jaist.dl.sourceforge.net/sourceforge/giflib/%{name}-%{version}.tar.bz2
+Source: http://jaist.dl.sourceforge.net/sourceforge/giflib/%{name}-%{version}.tar.gz
 Group: System Environment/Libraries
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
+Vendor: Project Vine
+Distribution: Vine Linux
 
 Obsoletes: libungif < 4.1.6-1
 Provides:  libungif = %{version}-%{release}
@@ -127,32 +129,16 @@ giflib package.
 
 
 %build
-sed -i "s|allhtml manpages|manpages|" doc/Makefile.am
-./autogen.sh
-%configure
-make all
-
-MAJOR=`echo '%{version}' | sed 's/\([0-9]\+\)\..*/\1/'`
-%{__cc} $RPM_OPT_FLAGS -shared -Wl,-soname,libungif.so.$MAJOR -Llib/.libs -lgif -o libungif.so.%{version}
-
+CFLAGS="%{optflags} -fPIC" \
+LDFLAGS="%{?__global_ldflags}" \
+%make_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
+%make_install PREFIX="%{_prefix}" LIBDIR="%{_libdir}"
 
-%makeinstall
-install -m 0755 -p libungif.so.%{version} $RPM_BUILD_ROOT%{_libdir}
-ln -sf libungif.so.%{version} ${RPM_BUILD_ROOT}%{_libdir}/libungif.so.4
-ln -sf libungif.so.4 ${RPM_BUILD_ROOT}%{_libdir}/libungif.so
-
-chmod 755 $RPM_BUILD_ROOT%{_libdir}/*.so*
-chmod 644 $RPM_BUILD_ROOT%{_libdir}/*.a
-chmod 644 COPYING README NEWS
-chmod 644 ChangeLog TODO BUGS AUTHORS
-chmod 644 doc/* util/giffiltr.c util/gifspnge.c
-
-## remove unuse files
-rm -rf $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
-
+## remove unused files
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
 
 %post -p /sbin/ldconfig
 
@@ -172,19 +158,20 @@ rm -rf $RPM_BUILD_ROOT
 
 %files 
 %defattr(-,root,root)
-%doc COPYING README NEWS
-%doc ChangeLog TODO BUGS AUTHORS
+%license COPYING
+%doc ChangeLog README NEWS
 %{_libdir}/lib*.so.*
 
 %files devel
 %defattr(-,root,root)
-%doc doc/* util/giffiltr.c util/gifspnge.c
+%doc doc/*
 %{_libdir}/lib*.so
 %{_includedir}/*.h
 
 %files utils
 %defattr(-,root,root)
 %{_bindir}/*
+%{_mandir}/man1/*.1*
 
 ## to build compat32 for x86_64 architecture support
 %if %{build_compat32}
@@ -199,6 +186,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.1-1
+- new upstream release.
+
 * Sun Sep 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.2.3-1
 - new upstream release
 

+ 22 - 23
j/jasper/jasper-vl.spec

@@ -3,16 +3,17 @@
 
 Name:        jasper
 Summary:     implementation of the JPEG-2000 standard, Part 1
-Version:     2.0.12
+Version:     2.0.16
 Release:     1%{?_dist_release}
 
 Group:       Applications/Graphics
 License:     Modified BSD (see LICENSE)
 URL:         http://www.ece.uvic.ca/~mdadams/jasper/
 
-Source:      %{name}-version-%{version}.tar.gz
+Source:      https://github.com/mdadams/jasper/archive/version-%{version}.tar.gz#/%{name}-version-%{version}.tar.gz
 
-Patch1: jasper-1.900.1-CVE-2008-3520.patch
+# skip hard-coded prefix/lib rpath
+Patch1: jasper-2.0.14-rpath.patch
 
 BuildRoot:   %{_tmppath}/%{name}-%{version}-root
 BuildRequires: autoconf automake libtool
@@ -72,36 +73,29 @@ This package contains runtime libraries for JasPer.
 %prep
 %setup -q -n %{name}-version-%{version}
 
-%patch1 -p1 -b .CVE-2008-3520
+%patch1 -p1 -b .rpath
+
 
 %build
 mkdir -p builder
-
-%cmake -G "Unix Makefiles" \
-       -H%{_builddir}/%{name}-version-%{version} \
-       -B%{_builddir}/%{name}-version-%{version}/builder
-
 pushd builder
-make %{?_smp_mflags} clean all
+%cmake -DJAS_ENABLE_DOC:BOOL=OFF ..
 popd
+%make_build -C builder
+
 
 %install
 [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
-pushd builder
-make install DESTDIR=%{buildroot}
-
-# remove .la
-rm -f %{buildroot}/%{_libdir}/*.la
-
-popd
+make install/fast DESTDIR=%{buildroot} -C builder
 
+# Unpackaged files
+rm -f doc/README
+rm -f %{buildroot}%{_libdir}/lib*.la
 rm -rf %{buildroot}%{_docdir}/JasPer
 
 %check
-pushd builder
-LD_PRELOAD=`pwd`/src/libjasper/libjasper.so \
-make test
-popd
+make test -C builder
+
 
 %clean
 [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
@@ -117,12 +111,12 @@ popd
 %files
 %defattr(-,root,root)
 %{!?_licensedir:%global license %%doc}
-%license COPYRIGHT LICENSE
-%doc INSTALL README doc/README doc/jasper.pdf doc/jpeg2000.pdf
 %{_bindir}/*
 %{_mandir}/man1/*
 
 %files libs
+%license COPYRIGHT LICENSE
+%doc INSTALL README doc/README doc/jasper.pdf doc/jpeg2000.pdf
 %defattr(-,root,root)
 %{_libdir}/libjasper*.so.*
 
@@ -145,6 +139,11 @@ popd
 %endif
 
 %changelog
+* Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.16-1
+- new upstream release.
+- dropped Patch1: fixed in upstream.
+- imported Patch1 from rawhide.
+
 * Mon Mar 20 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.12-1
 - new upstream release.
 - dropped all patches.

+ 41 - 16
lib/libj/libjpeg-turbo/libjpeg-turbo-vl.spec

@@ -1,16 +1,22 @@
 %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
 
-Summary:	A MMX/SSE2 accelerated library for manipulating JPEG image files
-Summary(ja):	MMX/SSE2 でアクセラレーションされた libjpeg ライブラリ
+Summary:	A MMX/SSE2/SIMD accelerated library for manipulating JPEG image files
+Summary(ja):	MMX/SSE2/SIMD でアクセラレーションされた libjpeg ライブラリ
 
 Name:		libjpeg-turbo
-Version:	1.5.3
+Version:	2.0.3
 Release:	1%{?_dist_release}
 
 Group:		System Environment/Libraries
-License:	wxWidgets
+License:	IJG
 URL:		http://sourceforge.net/projects/libjpeg-turbo
+Vendor:		Project Vine
+Distribution:	Vine Linux
+
 Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Patch0:		libjpeg-turbo-cmake.patch
+Patch1:		libjpeg-turbo-CET.patch
+
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 
 BuildRequires:	autoconf, automake, libtool
@@ -21,9 +27,6 @@ BuildRequires:	nasm
 Obsoletes:	libjpeg < 6b-50vl6
 Provides:	libjpeg = 6b-50vl6
 
-Patch0:         libjpeg-turbo14-noinst.patch
-Patch1:		libjpeg-turbo-header-files.patch
-
 %description
 The libjpeg-turbo package contains a library of functions for manipulating
 JPEG images
@@ -80,28 +83,44 @@ Requires:	libjpeg-turbo = %{version}-%{release}
 This package contains header files necessary for developing programs which
 will manipulate JPEG files using the libjpeg-turbo library
 
+
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
-%patch0 -p1 -b .noinst_jpgtest
-%patch1 -p1 -b .turbo_headers
 
 %build
-autoreconf -fiv
+%ifarch %{ix86} x86_64
+export LDFLAGS="$RPM_LD_FLAGS -Wl,-z,ibt -Wl,-z,shstk"
+%endif
+
+%{cmake} -DCMAKE_SKIP_RPATH:BOOL=YES \
+         -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \
+         -DENABLE_STATIC:BOOL=NO .
+
+make %{?_smp_mflags} V=1
+
+# Fix perms
+chmod -x README.md
 
-%configure --disable-static
 
-make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
 
 # Remove unwanted files
-rm -f $RPM_BUILD_ROOT/%{_libdir}/lib{,turbo}jpeg.la
+rm -f %{buildroot}/%{_libdir}/lib{,turbo}jpeg.la
+
+
+%check
+LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test %{?_smp_mflags}
+
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
+
 
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
@@ -110,6 +129,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
+%license LICENSE.md
 %doc README.md README.ijg ChangeLog.md
 %{_libdir}/libjpeg.so.62*
 %{_libdir}/libturbojpeg.so.0*
@@ -155,6 +175,11 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.3-1
+- new upstream release.
+- dropped all patches.
+- imported Patch0 and 1 from rawhide.
+
 * Tue Dec 19 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.5.3-1
 - update to 1.5.3
 - update Patch0,doc

+ 4 - 1
lib/libp/libpng/libpng-vl.spec

@@ -3,7 +3,7 @@
 Summary: A library of functions for manipulating PNG image format files.
 Summary(ja): PNG画像形式ファイル操作用の関数ライブラリ
 Name: libpng
-Version: 1.6.36
+Version: 1.6.37
 Release: 1%{_dist_release}
 License: distributable
 Group: System Environment/Libraries
@@ -174,6 +174,9 @@ the libpng package.
 %endif
 
 %changelog
+* Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2:1.6.37-1
+- updated to 1.6.37.
+
 * Fri Jan 25 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2:1.6.36-1
 - updated to 1.6.36.
 

+ 18 - 6
lib/libt/libtiff/libtiff-vl.spec

@@ -3,7 +3,7 @@
 Summary: A library of functions for manipulating TIFF format image files.
 Summary(ja): TIFF フォーマットの画像ファイルを扱うライブラリ
 Name: libtiff
-Version: 4.0.9
+Version: 4.0.10
 Release: 1%{_dist_release}
 License: distributable
 Group: System Environment/Libraries
@@ -27,7 +27,10 @@ Packager: daisuke, iwamoto
 Patch0: libtiff-am-version.patch
 Patch1: libtiff-make-check.patch
 
-Patch1000: libtiff-CVE-2017-9935.patch
+Patch1001: libtiff-CVE-2019-6128.patch
+Patch1002: libtiff-CVE-2018-12900_CVE-2019-7663.patch
+Patch1003: libtiff-CVE-2018-19210.patch
+Patch1004: CVE-2019-14973.patch
 
 %description
 The libtiff package contains a library of functions for manipulating 
@@ -111,7 +114,10 @@ install the libtiff package.
 %patch0 -p1
 %patch1 -p1
 
-%patch1000 -p1
+%patch1001 -p1
+%patch1002 -p1
+%patch1003 -p1
+%patch1004 -p1
 
 # Use build system's libtool.m4, not the one in the package.
 rm -f libtool.m4
@@ -132,13 +138,13 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
 %__make clean
 
 %install
-rm -fr $RPM_BUILD_ROOT
+rm -fr %{buildroot}
 %makeinstall
-rm -rf $RPM_BUILD_ROOT/usr/share/doc/tiff-%{version}
 
 ln -sf libtiff.so.5 $RPM_BUILD_ROOT%{_libdir}/libtiff.so.4
 
-rm $RPM_BUILD_ROOT%{_libdir}/libtiff*.la
+rm -rf %{buildroot}/usr/share/doc/tiff-%{version}
+rm -f %{buildroot}%{_libdir}/libtiff*.{a,la}
 
 
 %post -p /sbin/ldconfig
@@ -181,6 +187,12 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.10-1
+- new upstream release.
+- dropped Patch1000: fixed in upstream.
+- imported Patch1001-1003 from rawhide.
+- imported Patch1004 from upstream.
+
 * Fri Dec 15 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.9-1
 - updated to 4.0.9.
 - added Patch1000 to fix CVE-2017-9935.