2019-09-30 10:56:48 -04:00
|
|
|
Name: libjpeg-turbo
|
2021-11-27 10:21:43 +08:00
|
|
|
Version: 2.1.1
|
2023-07-10 05:27:51 +00:00
|
|
|
Release: 6
|
2019-09-30 10:56:48 -04:00
|
|
|
Summary: MMX/SSE2/SIMD accelerated libjpeg-compatible JPEG codec library
|
|
|
|
|
License: IJG
|
|
|
|
|
URL: http://sourceforge.net/projects/libjpeg-turbo
|
|
|
|
|
Source0: http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-%{version}.tar.gz
|
2023-03-01 08:26:22 +00:00
|
|
|
%ifarch loongarch64
|
2022-11-17 15:42:36 +08:00
|
|
|
Patch0001: Add-loongarch64.patch
|
2023-03-01 08:26:22 +00:00
|
|
|
%endif
|
2019-09-30 10:56:48 -04:00
|
|
|
|
|
|
|
|
BuildRequires: gcc cmake libtool nasm
|
2022-11-17 15:42:36 +08:00
|
|
|
BuildRequires: guile
|
2019-09-30 10:56:48 -04:00
|
|
|
|
2021-01-27 11:23:42 +08:00
|
|
|
Obsoletes: libjpeg < 6b-47 turbojpeg < %{version}-%{release}
|
|
|
|
|
Provides: libjpeg = 6b-47 turbojpeg = %{version}-%{release}
|
2019-12-13 15:37:28 +08:00
|
|
|
|
2019-09-30 10:56:48 -04:00
|
|
|
%description
|
|
|
|
|
libjpeg-turbo is a JPEG image codec that uses SIMD instructions (MMX, SSE2, NEON, AltiVec)
|
|
|
|
|
to accelerate baseline JPEG compression and decompression on x86, x86-64, and ARM systems.
|
|
|
|
|
|
2019-12-13 15:37:28 +08:00
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for the libjpeg-turbo library
|
|
|
|
|
Requires: libjpeg-turbo = %{version}-%{release}
|
|
|
|
|
Provides: libjpeg-turbo-static = 1.3.1 turbojpeg-devel = %{version}-%{release}
|
|
|
|
|
Obsoletes: libjpeg-turbo-static < 1.3.1 turbojpeg-devel < %{version}-%{release}
|
|
|
|
|
Provides: libjpeg-devel = 6b-47 libjpeg-devel%{?_isa} = %{version}-%{release}
|
2020-01-14 22:54:20 +08:00
|
|
|
Obsoletes: libjpeg-devel < 6b-47
|
2019-12-13 15:37:28 +08:00
|
|
|
|
2019-09-30 10:56:48 -04:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Development files for the libjpeg-turbo library.
|
|
|
|
|
|
2021-11-27 10:21:43 +08:00
|
|
|
%package utils
|
|
|
|
|
Summary: Utilities for manipulating JPEG images
|
|
|
|
|
Requires: libjpeg-turbo%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description utils
|
|
|
|
|
The libjpeg-turbo-utils package contains simple client programs for accessing
|
|
|
|
|
the libjpeg functions. It contains cjpeg, djpeg, jpegtran, rdjpgcom and
|
|
|
|
|
wrjpgcom. Cjpeg compresses an image file into JPEG format. Djpeg decompresses a
|
|
|
|
|
JPEG file into a regular image file. Jpegtran can perform various useful
|
|
|
|
|
transformations on JPEG files. Rdjpgcom displays any text comments included in a
|
|
|
|
|
JPEG file. Wrjpgcom inserts text comments into a JPEG file.
|
|
|
|
|
|
|
|
|
|
%package -n turbojpeg
|
|
|
|
|
Summary: TurboJPEG library
|
|
|
|
|
|
|
|
|
|
%description -n turbojpeg
|
|
|
|
|
The turbojpeg package contains the TurboJPEG shared library.
|
|
|
|
|
|
|
|
|
|
%package -n turbojpeg-devel
|
|
|
|
|
Summary: Headers for the TurboJPEG library
|
|
|
|
|
Requires: turbojpeg%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n turbojpeg-devel
|
|
|
|
|
This package contains header files necessary for developing programs which will
|
|
|
|
|
manipulate JPEG files using the TurboJPEG library.
|
|
|
|
|
|
2019-12-13 15:37:28 +08:00
|
|
|
%package_help
|
2019-09-30 10:56:48 -04:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
2023-07-10 05:27:51 +00:00
|
|
|
%{cmake} -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_SKIP_RPATH:BOOL=YES -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES -DENABLE_STATIC:BOOL=NO . \
|
|
|
|
|
%ifarch riscv64
|
|
|
|
|
-DFLOATTEST=fp-contract \
|
|
|
|
|
%endif
|
|
|
|
|
%{nil}
|
2019-09-30 10:56:48 -04:00
|
|
|
|
|
|
|
|
%make_build V=1
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
%delete_la
|
|
|
|
|
|
|
|
|
|
chmod -x README.md
|
|
|
|
|
|
2019-12-13 15:37:28 +08:00
|
|
|
%ifarch x86_64
|
|
|
|
|
%global wordsize "64"
|
|
|
|
|
%else
|
|
|
|
|
%global wordsize ""
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
if test -n "$wordsize"
|
|
|
|
|
then
|
|
|
|
|
pushd $RPM_BUILD_ROOT%{_includedir}
|
|
|
|
|
mv jconfig.h jconfig-$wordsize.h
|
|
|
|
|
cat > jconfig.h <<EOF
|
|
|
|
|
#ifndef JCONFIG_H_MULTILIB
|
|
|
|
|
#define JCONFIG_H_MULTILIB
|
|
|
|
|
|
|
|
|
|
#include <bits/wordsize.h>
|
|
|
|
|
|
|
|
|
|
#if __WORDSIZE == 32
|
|
|
|
|
# include "jconfig-32.h"
|
|
|
|
|
#elif __WORDSIZE == 64
|
|
|
|
|
# include "jconfig-64.h"
|
|
|
|
|
#else
|
|
|
|
|
# error "unexpected value for __WORDSIZE macro"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
EOF
|
|
|
|
|
fi
|
|
|
|
|
|
2019-09-30 10:56:48 -04:00
|
|
|
%check
|
|
|
|
|
LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test %{?_smp_mflags}
|
|
|
|
|
|
2019-12-13 15:37:28 +08:00
|
|
|
%ldconfig_scriptlets
|
2019-09-30 10:56:48 -04:00
|
|
|
|
|
|
|
|
%files
|
2019-12-13 15:37:28 +08:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README.*
|
|
|
|
|
%license LICENSE.md
|
2019-09-30 10:56:48 -04:00
|
|
|
%{_libdir}/libjpeg.so.62*
|
2020-01-13 14:39:57 +08:00
|
|
|
%exclude /usr/share/doc/libjpeg-turbo/*
|
2019-09-30 10:56:48 -04:00
|
|
|
|
|
|
|
|
%files devel
|
2021-11-27 10:21:43 +08:00
|
|
|
%doc coderules.txt jconfig.txt libjpeg.txt structure.txt example.txt
|
|
|
|
|
%exclude %{_includedir}/turbojpeg.h
|
2019-09-30 10:56:48 -04:00
|
|
|
%{_includedir}/*.h
|
2021-11-27 10:21:43 +08:00
|
|
|
%{_libdir}/libjpeg.so
|
|
|
|
|
%{_libdir}/pkgconfig/libjpeg.pc
|
|
|
|
|
%{_libdir}/cmake/%{name}/%{name}*.cmake
|
|
|
|
|
|
|
|
|
|
%files utils
|
|
|
|
|
%doc usage.txt wizard.txt
|
|
|
|
|
%{_bindir}/cjpeg
|
|
|
|
|
%{_bindir}/djpeg
|
|
|
|
|
%{_bindir}/jpegtran
|
|
|
|
|
%{_bindir}/rdjpgcom
|
|
|
|
|
%{_bindir}/wrjpgcom
|
|
|
|
|
%{_bindir}/tjbench
|
|
|
|
|
|
|
|
|
|
%files -n turbojpeg
|
|
|
|
|
%license LICENSE.md
|
|
|
|
|
%{_libdir}/libturbojpeg.so.0*
|
|
|
|
|
|
|
|
|
|
%files -n turbojpeg-devel
|
|
|
|
|
%doc tjexample.c
|
|
|
|
|
%{_includedir}/turbojpeg.h
|
|
|
|
|
%{_libdir}/libturbojpeg.so
|
|
|
|
|
%{_libdir}/pkgconfig/libturbojpeg.pc
|
2019-09-30 10:56:48 -04:00
|
|
|
|
|
|
|
|
%files help
|
2021-11-27 10:21:43 +08:00
|
|
|
%doc ChangeLog.md
|
2019-09-30 10:56:48 -04:00
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-07-10 05:27:51 +00:00
|
|
|
* Mon Jul 10 2023 Jingwiw <wangjingwei@iscas.ac.cn> - 2.1.1-6
|
|
|
|
|
- add riscv64 support
|
|
|
|
|
|
2023-04-24 10:03:22 +08:00
|
|
|
* Mon Apr 24 2023 guoqinglan <guoqinglan@kylinsec.com.cn> - 2.1.1-5
|
|
|
|
|
- fix build error for sw_64
|
|
|
|
|
|
2022-11-17 15:42:36 +08:00
|
|
|
* Thu Nov 17 2022 doupengda <doupengda@loongson.cn> - 2.1.1-4
|
|
|
|
|
- add loongarch64 support
|
|
|
|
|
|
2022-07-13 03:09:27 +00:00
|
|
|
* Wed Jul 13 2022 wangkerong <wangkerong@h-partners.com> - 2.1.1-3
|
|
|
|
|
- utils provide by libjpeg-turbo-utils subpackage,the main package shouldn't provide it
|
|
|
|
|
|
2022-03-30 16:15:01 +08:00
|
|
|
* Wed Mar 30 2022 liuyumeng <liuyumeng5@h-partners.com> - 2.1.1-2
|
|
|
|
|
- enable tests
|
|
|
|
|
|
2021-11-27 10:21:43 +08:00
|
|
|
* Sat Nov 27 2021 wangkerong <wangkerong@huawei.com> - 2.1.1-1
|
|
|
|
|
- update to 2.1.1
|
|
|
|
|
- splite utils turbojpeg turbojpeg-devel subpackages
|
|
|
|
|
|
2021-01-27 11:23:42 +08:00
|
|
|
* Wed Jan 27 2021 hanhui <hanhui15@huawei.com> - 2.0.6-1
|
|
|
|
|
- Type: enhancement
|
|
|
|
|
- ID: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC: update to 2.0.6
|
|
|
|
|
|
2020-07-22 21:53:25 +08:00
|
|
|
* Wed Jul 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.0.5-1
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:upgrade to 2.0.5
|
|
|
|
|
|
2020-05-20 11:26:55 +08:00
|
|
|
* Tue Jan 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.0.0-4
|
2020-01-14 22:54:20 +08:00
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:remove the libjpeg-devel with arch in obsoletes
|
|
|
|
|
|
2019-12-13 15:37:28 +08:00
|
|
|
* Fri Nov 1 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.0-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
2020-01-14 22:54:20 +08:00
|
|
|
- DESC:add the libjpeg-devel and jconfig.h
|
2019-12-13 15:37:28 +08:00
|
|
|
|
2019-09-30 10:56:48 -04:00
|
|
|
* Sat Sep 21 2019 Lijin Yang <yanglijin@huawei.com> - 2.0.0-2
|
|
|
|
|
- Package init
|