2010-12-10 15:42:49 +01:00
|
|
|
#
|
2011-11-13 12:12:49 +01:00
|
|
|
# spec file for package libjpeg-turbo
|
2010-12-10 15:42:49 +01:00
|
|
|
#
|
2013-05-17 09:19:55 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-12-10 15:42:49 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-09-30 20:10:46 +02:00
|
|
|
%define major 8
|
|
|
|
%define minor 0
|
|
|
|
%define micro 2
|
|
|
|
%define srcver 1.2.1
|
|
|
|
%define libver %{major}.%{minor}.%{micro}
|
|
|
|
# major number of library from jpeg8
|
2010-12-13 16:08:44 +01:00
|
|
|
|
2010-12-10 15:42:49 +01:00
|
|
|
Name: libjpeg-turbo
|
2012-09-30 20:10:46 +02:00
|
|
|
Version: %{srcver}
|
2012-03-22 14:59:53 +01:00
|
|
|
Release: 0
|
2010-12-10 15:42:49 +01:00
|
|
|
Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
|
2012-03-22 14:59:53 +01:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Graphics/Convertors
|
2010-12-10 15:42:49 +01:00
|
|
|
Url: http://sourceforge.net/projects/libjpeg-turbo
|
2013-05-17 09:19:55 +02:00
|
|
|
Source0: http://downloads.sourceforge.net/project/%{name}/%{version}/libjpeg-turbo-%{version}.tar.gz
|
2012-03-22 14:59:53 +01:00
|
|
|
Source1: baselibs.conf
|
2013-05-17 09:19:55 +02:00
|
|
|
Patch0: libjpeg-turbo-%{version}-int32.patch
|
|
|
|
Patch1: libjpeg-turbo-%{version}-tiff-ojpeg.patch
|
2011-11-13 12:12:49 +01:00
|
|
|
Patch2: libjpeg-ocloexec.patch
|
2012-03-22 14:59:53 +01:00
|
|
|
BuildRequires: gcc-c++
|
2012-09-30 20:10:46 +02:00
|
|
|
BuildRequires: libtool
|
2012-03-22 14:59:53 +01:00
|
|
|
BuildRequires: yasm
|
|
|
|
Provides: jpeg = %{version}
|
2012-09-30 20:10:46 +02:00
|
|
|
Obsoletes: jpeg < %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Conflicts: jpeg%{major}
|
2010-12-10 15:42:49 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The libjpeg-turbo package contains a library of functions for manipulating
|
|
|
|
JPEG images.
|
|
|
|
|
2010-12-14 16:14:31 +01:00
|
|
|
%package -n libjpeg%{major}
|
2012-09-30 20:10:46 +02:00
|
|
|
|
|
|
|
Version: %{libver}
|
|
|
|
Release: 0
|
2012-03-22 14:59:53 +01:00
|
|
|
Summary: The MMX/SSE accelerated JPEG compression/decompression library
|
2010-12-10 15:42:49 +01:00
|
|
|
Group: System/Libraries
|
2012-09-30 20:10:46 +02:00
|
|
|
Provides: libjpeg%{major} = %{version}
|
|
|
|
Obsoletes: libjpeg%{major} < %{version}
|
|
|
|
# bug437293
|
2010-12-10 15:42:49 +01:00
|
|
|
%ifarch ppc64
|
2012-03-22 14:59:53 +01:00
|
|
|
Obsoletes: libjpeg-64bit < %{version}
|
2010-12-10 15:42:49 +01:00
|
|
|
%endif
|
|
|
|
#
|
|
|
|
|
2010-12-14 16:14:31 +01:00
|
|
|
%description -n libjpeg%{major}
|
2010-12-10 15:42:49 +01:00
|
|
|
This library contains MMX/SSE accelerated functions for manipulating
|
|
|
|
JPEG images.
|
|
|
|
|
2010-12-14 16:14:31 +01:00
|
|
|
%package -n libjpeg%{major}-devel
|
2012-09-30 20:10:46 +02:00
|
|
|
Version: %{libver}
|
|
|
|
Release: 0
|
2012-03-22 14:59:53 +01:00
|
|
|
Summary: Development Tools for applications which will use the Libjpeg Library
|
2010-12-10 15:42:49 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-12-14 16:14:31 +01:00
|
|
|
Requires: libjpeg%{major} = %{version}
|
2010-12-10 15:42:49 +01:00
|
|
|
Provides: libjpeg-devel = %{version}
|
2012-03-22 14:59:53 +01:00
|
|
|
Obsoletes: libjpeg-devel < %{version}
|
2013-05-17 11:08:39 +02:00
|
|
|
Conflicts: otherproviders(libjpeg-devel)
|
2012-09-30 20:10:46 +02:00
|
|
|
# bug437293
|
2010-12-10 15:42:49 +01:00
|
|
|
%ifarch ppc64
|
2012-03-22 14:59:53 +01:00
|
|
|
Obsoletes: libjpeg-devel-64bit < %{version}
|
2010-12-10 15:42:49 +01:00
|
|
|
%endif
|
|
|
|
#
|
|
|
|
|
2012-03-22 14:59:53 +01:00
|
|
|
%description -n libjpeg%{major}-devel
|
2010-12-10 15:42:49 +01:00
|
|
|
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
|
2013-05-17 09:19:55 +02:00
|
|
|
%setup -q
|
2010-12-10 15:42:49 +01:00
|
|
|
%patch0
|
|
|
|
%patch1
|
2011-11-13 12:12:49 +01:00
|
|
|
%patch2
|
2010-12-10 15:42:49 +01:00
|
|
|
|
|
|
|
%build
|
2012-09-30 20:10:46 +02:00
|
|
|
autoreconf -fiv
|
2012-03-22 14:59:53 +01:00
|
|
|
%configure --disable-static \
|
|
|
|
--with-jpeg8
|
2012-09-30 20:10:46 +02:00
|
|
|
make %{?_smp_mflags}
|
2010-12-10 15:42:49 +01:00
|
|
|
|
|
|
|
%check
|
|
|
|
make test libdir=%{_libdir}
|
|
|
|
|
|
|
|
%install
|
2012-09-30 20:10:46 +02:00
|
|
|
%makeinstall
|
2012-03-22 14:59:53 +01:00
|
|
|
|
2010-12-10 15:42:49 +01:00
|
|
|
# Fix perms
|
2012-03-22 14:59:53 +01:00
|
|
|
chmod -x README-turbo.txt release/copyright
|
|
|
|
|
2010-12-10 15:42:49 +01:00
|
|
|
# Remove unwanted files
|
2012-03-22 14:59:53 +01:00
|
|
|
rm -f %{buildroot}%{_libdir}/lib{,turbo}jpeg.la
|
|
|
|
|
2012-09-30 20:10:46 +02:00
|
|
|
# Don't distribute libjpegturbo because it is unversioned
|
|
|
|
rm %{buildroot}%{_includedir}/turbojpeg.h
|
|
|
|
rm %{buildroot}%{_libdir}/libturbojpeg.so
|
|
|
|
rm %{buildroot}%{_bindir}/tjbench
|
|
|
|
|
2012-03-22 14:59:53 +01:00
|
|
|
# Remove docs, we'll select docs manually
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/
|
2010-12-10 15:42:49 +01:00
|
|
|
|
2010-12-14 16:14:31 +01:00
|
|
|
%post -n libjpeg%{major} -p /sbin/ldconfig
|
2010-12-10 15:42:49 +01:00
|
|
|
|
2010-12-14 16:14:31 +01:00
|
|
|
%postun -n libjpeg%{major} -p /sbin/ldconfig
|
2010-12-10 15:42:49 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-09-30 20:10:46 +02:00
|
|
|
%doc README README-turbo.txt change.log ChangeLog.txt
|
|
|
|
%doc release/copyright usage.txt wizard.txt
|
2012-03-22 14:59:53 +01:00
|
|
|
%{_bindir}/*
|
2012-09-30 20:10:46 +02:00
|
|
|
%doc %{_mandir}/man1/*
|
2010-12-10 15:42:49 +01:00
|
|
|
|
2010-12-14 16:14:31 +01:00
|
|
|
%files -n libjpeg%{major}
|
2010-12-10 15:42:49 +01:00
|
|
|
%defattr(-,root,root)
|
2012-09-30 20:10:46 +02:00
|
|
|
%{_libdir}/libjpeg.so.%{libver}
|
|
|
|
%{_libdir}/libjpeg.so.%{major}
|
2010-12-10 15:42:49 +01:00
|
|
|
|
2010-12-14 16:14:31 +01:00
|
|
|
%files -n libjpeg%{major}-devel
|
2010-12-10 15:42:49 +01:00
|
|
|
%defattr(-,root,root)
|
2012-03-22 14:59:53 +01:00
|
|
|
%{_includedir}/*.h
|
2010-12-10 15:42:49 +01:00
|
|
|
%{_libdir}/libjpeg.so
|
2011-03-03 14:00:10 +01:00
|
|
|
%doc coderules.txt jconfig.txt libjpeg.txt structure.txt example.c
|
2010-12-10 15:42:49 +01:00
|
|
|
|
|
|
|
%changelog
|