osc copypac from project:home:pgajdos package:libjpeg-turbo revision:19
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=1
This commit is contained in:
commit
048b0f1b34
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
2
baselibs.conf
Normal file
2
baselibs.conf
Normal file
@ -0,0 +1,2 @@
|
||||
libjpeg62
|
||||
libjpeg62-devel
|
11
libjpeg-turbo-1.0.1-int32.patch
Normal file
11
libjpeg-turbo-1.0.1-int32.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- jmorecfg.h
|
||||
+++ jmorecfg.h
|
||||
@@ -158,7 +158,7 @@
|
||||
/* INT32 must hold at least signed 32-bit values. */
|
||||
|
||||
#ifndef XMD_H /* X11/xmd.h correctly defines INT32 */
|
||||
-typedef long INT32;
|
||||
+typedef int INT32;
|
||||
#endif
|
||||
|
||||
/* Datatype used for image dimensions. The JPEG standard only supports
|
1934
libjpeg-turbo-1.0.1-jpegtran.patch
Normal file
1934
libjpeg-turbo-1.0.1-jpegtran.patch
Normal file
File diff suppressed because it is too large
Load Diff
1283
libjpeg-turbo-1.0.1-rh639672.patch
Normal file
1283
libjpeg-turbo-1.0.1-rh639672.patch
Normal file
File diff suppressed because it is too large
Load Diff
38
libjpeg-turbo-1.0.1-tiff-ojpeg.patch
Normal file
38
libjpeg-turbo-1.0.1-tiff-ojpeg.patch
Normal file
@ -0,0 +1,38 @@
|
||||
--- jdhuff.c
|
||||
+++ jdhuff.c
|
||||
@@ -649,3 +649,35 @@
|
||||
entropy->dc_derived_tbls[i] = entropy->ac_derived_tbls[i] = NULL;
|
||||
}
|
||||
}
|
||||
+/*
|
||||
+ * BEWARE OF KLUDGE: This subroutine is a hack for decoding illegal JPEG-in-
|
||||
+ * TIFF encapsulations produced by Microsoft's Wang Imaging
|
||||
+ * for Windows application with the public-domain TIFF Library. Based upon an
|
||||
+ * examination of selected output files, this program apparently divides a JPEG
|
||||
+ * bit-stream into consecutive horizontal TIFF "strips", such that the JPEG
|
||||
+ * encoder's/decoder's DC coefficients for each image component are reset before
|
||||
+ * each "strip". Moreover, a "strip" is not necessarily encoded in a multiple
|
||||
+ * of 8 bits, so one must sometimes discard 1-7 bits at the end of each "strip"
|
||||
+ * for alignment to the next input-Byte storage boundary. IJG JPEG Library
|
||||
+ * decoder state is not normally exposed to client applications, so this sub-
|
||||
+ * routine provides the TIFF Library with a "hook" to make these corrections.
|
||||
+ * It should be called after "jpeg_start_decompress()" and before
|
||||
+ * "jpeg_finish_decompress()", just before decoding each "strip" using
|
||||
+ * "jpeg_read_raw_data()" or "jpeg_read_scanlines()".
|
||||
+ *
|
||||
+ * This kludge is not sanctioned or supported by the Independent JPEG Group, and
|
||||
+ * future changes to the IJG JPEG Library might invalidate it. Do not send bug
|
||||
+ * reports about this code to IJG developers. Instead, contact the author for
|
||||
+ * advice: Scott B. Marovich <marovich@hpl.hp.com>, Hewlett-Packard Labs, 6/01.
|
||||
+ */
|
||||
+GLOBAL(void)
|
||||
+jpeg_reset_huff_decode (register j_decompress_ptr cinfo,register float *refbw)
|
||||
+{ register huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy;
|
||||
+ register int ci = 0;
|
||||
+
|
||||
+ /* Re-initialize DC predictions */
|
||||
+ do entropy->saved.last_dc_val[ci] = -refbw[ci << 1];
|
||||
+ while (++ci < cinfo->comps_in_scan);
|
||||
+ /* Discard encoded input bits, up to the next Byte boundary */
|
||||
+ entropy->bitstate.bits_left &= ~7;
|
||||
+}
|
3
libjpeg-turbo-1.0.1.tar.bz2
Normal file
3
libjpeg-turbo-1.0.1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1675a911b30e9612ef9d3684cc8fb34d199150f878943495ed00c51a16ebae92
|
||||
size 1054917
|
11
libjpeg-turbo.changes
Normal file
11
libjpeg-turbo.changes
Normal file
@ -0,0 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 10 13:02:58 UTC 2010 - pgajdos@novell.com
|
||||
|
||||
- this jpeg version will be the default to the prejudice of jpeg8
|
||||
from now on
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 7 12:53:26 UTC 2010 - prusnak@opensuse.org
|
||||
|
||||
- created package based on Fedora one (v 1.0.1)
|
||||
|
141
libjpeg-turbo.spec
Normal file
141
libjpeg-turbo.spec
Normal file
@ -0,0 +1,141 @@
|
||||
#
|
||||
# spec file for package jpeg-turbo
|
||||
#
|
||||
# Copyright (c) 2010 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/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: libjpeg-turbo
|
||||
License: wxWindows Library Licence 3.1
|
||||
Group: Productivity/Graphics/Convertors
|
||||
AutoReqProv: on
|
||||
Version: 1.0.1
|
||||
Release: 1
|
||||
Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
|
||||
Url: http://sourceforge.net/projects/libjpeg-turbo
|
||||
BuildRequires: nasm gcc-c++
|
||||
Provides: jpeg = %{version}
|
||||
Obsoletes: jpeg
|
||||
Conflicts: jpeg8
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Source1: baselibs.conf
|
||||
Patch0: %{name}-%{version}-int32.patch
|
||||
Patch1: %{name}-%{version}-tiff-ojpeg.patch
|
||||
Patch2: %{name}-%{version}-jpegtran.patch
|
||||
Patch3: %{name}-%{version}-rh639672.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
The libjpeg-turbo package contains a library of functions for manipulating
|
||||
JPEG images.
|
||||
|
||||
%package -n libjpeg62
|
||||
|
||||
|
||||
License: BSD3c(or similar)
|
||||
Summary: The MMX/SSE accelerated JPEG compression/decompression library
|
||||
Version: 62.0.0
|
||||
Provides: libjpeg6 = %{version}
|
||||
Obsoletes: libjpeg6
|
||||
Group: System/Libraries
|
||||
AutoReqProv: on
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
Obsoletes: libjpeg-64bit
|
||||
%endif
|
||||
#
|
||||
|
||||
%description -n libjpeg62
|
||||
This library contains MMX/SSE accelerated functions for manipulating
|
||||
JPEG images.
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Rob Hooft <hooft@EMBL-Heidelberg.DE>
|
||||
Michael Mauldin <mlm@cs.cmu.edu>
|
||||
|
||||
%package -n libjpeg62-devel
|
||||
License: BSD3c(or similar)
|
||||
Summary: Development Tools for applications which will use the Libjpeg Library
|
||||
Version: 62.0.0
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libjpeg62 = %{version}
|
||||
Provides: libjpeg-devel = %{version}
|
||||
Obsoletes: libjpeg-devel
|
||||
Conflicts: libjpeg8-devel
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
Obsoletes: libjpeg-devel-64bit
|
||||
%endif
|
||||
#
|
||||
|
||||
%description -n libjpeg62-devel
|
||||
The libjpeg-devel package includes the header files and libraries
|
||||
necessary for compiling and linking programs which will manipulate JPEG
|
||||
files using the libjpeg library.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0
|
||||
%patch1
|
||||
%patch2
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
%configure --disable-static
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make test libdir=%{_libdir}
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
# Fix perms
|
||||
chmod -x README-turbo.txt
|
||||
# Remove unwanted files
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/lib{,turbo}jpeg.la
|
||||
# Don't distribute libjpegturbo because it is unversioned
|
||||
rm -f $RPM_BUILD_ROOT%{_includedir}/turbojpeg.h
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libturbojpeg.so
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -n libjpeg62 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libjpeg62 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README README-turbo.txt change.log ChangeLog.txt LGPL.txt LICENSE.txt
|
||||
/usr/bin/*
|
||||
%doc %{_mandir}/man1/*
|
||||
|
||||
%files -n libjpeg62
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libjpeg.so.62.0.0
|
||||
%{_libdir}/libjpeg.so.62
|
||||
|
||||
%files -n libjpeg62-devel
|
||||
%defattr(-,root,root)
|
||||
/usr/include/*.h
|
||||
%{_libdir}/libjpeg.so
|
||||
%doc coderules.doc jconfig.doc libjpeg.doc structure.doc example.c
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user