13b921b29Sopenharmony_ciName: libjpeg-turbo 23b921b29Sopenharmony_ciVersion: 2.1.1 33b921b29Sopenharmony_ciRelease: 5 43b921b29Sopenharmony_ciSummary: MMX/SSE2/SIMD accelerated libjpeg-compatible JPEG codec library 53b921b29Sopenharmony_ciLicense: IJG 63b921b29Sopenharmony_ciURL: http://sourceforge.net/projects/libjpeg-turbo 73b921b29Sopenharmony_ciSource0: http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-%{version}.tar.gz 83b921b29Sopenharmony_ci%ifarch loongarch64 93b921b29Sopenharmony_ciPatch0001: Add-loongarch64.patch 103b921b29Sopenharmony_ci%endif 113b921b29Sopenharmony_ci 123b921b29Sopenharmony_ciBuildRequires: gcc cmake libtool nasm 133b921b29Sopenharmony_ci 143b921b29Sopenharmony_ciObsoletes: libjpeg < 6b-47 turbojpeg < %{version}-%{release} 153b921b29Sopenharmony_ciProvides: libjpeg = 6b-47 turbojpeg = %{version}-%{release} 163b921b29Sopenharmony_ci 173b921b29Sopenharmony_ci%description 183b921b29Sopenharmony_cilibjpeg-turbo is a JPEG image codec that uses SIMD instructions (MMX, SSE2, NEON, AltiVec) 193b921b29Sopenharmony_cito accelerate baseline JPEG compression and decompression on x86, x86-64, and ARM systems. 203b921b29Sopenharmony_ci 213b921b29Sopenharmony_ci%package devel 223b921b29Sopenharmony_ciSummary: Development files for the libjpeg-turbo library 233b921b29Sopenharmony_ciRequires: libjpeg-turbo = %{version}-%{release} 243b921b29Sopenharmony_ciProvides: libjpeg-turbo-static = 1.3.1 turbojpeg-devel = %{version}-%{release} 253b921b29Sopenharmony_ciObsoletes: libjpeg-turbo-static < 1.3.1 turbojpeg-devel < %{version}-%{release} 263b921b29Sopenharmony_ciProvides: libjpeg-devel = 6b-47 libjpeg-devel%{?_isa} = %{version}-%{release} 273b921b29Sopenharmony_ciObsoletes: libjpeg-devel < 6b-47 283b921b29Sopenharmony_ci 293b921b29Sopenharmony_ci 303b921b29Sopenharmony_ci%description devel 313b921b29Sopenharmony_ciDevelopment files for the libjpeg-turbo library. 323b921b29Sopenharmony_ci 333b921b29Sopenharmony_ci%package utils 343b921b29Sopenharmony_ciSummary: Utilities for manipulating JPEG images 353b921b29Sopenharmony_ciRequires: libjpeg-turbo%{?_isa} = %{version}-%{release} 363b921b29Sopenharmony_ci 373b921b29Sopenharmony_ci%description utils 383b921b29Sopenharmony_ciThe libjpeg-turbo-utils package contains simple client programs for accessing 393b921b29Sopenharmony_cithe libjpeg functions. It contains cjpeg, djpeg, jpegtran, rdjpgcom and 403b921b29Sopenharmony_ciwrjpgcom. Cjpeg compresses an image file into JPEG format. Djpeg decompresses a 413b921b29Sopenharmony_ciJPEG file into a regular image file. Jpegtran can perform various useful 423b921b29Sopenharmony_citransformations on JPEG files. Rdjpgcom displays any text comments included in a 433b921b29Sopenharmony_ciJPEG file. Wrjpgcom inserts text comments into a JPEG file. 443b921b29Sopenharmony_ci 453b921b29Sopenharmony_ci%package -n turbojpeg 463b921b29Sopenharmony_ciSummary: TurboJPEG library 473b921b29Sopenharmony_ci 483b921b29Sopenharmony_ci%description -n turbojpeg 493b921b29Sopenharmony_ciThe turbojpeg package contains the TurboJPEG shared library. 503b921b29Sopenharmony_ci 513b921b29Sopenharmony_ci%package -n turbojpeg-devel 523b921b29Sopenharmony_ciSummary: Headers for the TurboJPEG library 533b921b29Sopenharmony_ciRequires: turbojpeg%{?_isa} = %{version}-%{release} 543b921b29Sopenharmony_ci 553b921b29Sopenharmony_ci%description -n turbojpeg-devel 563b921b29Sopenharmony_ciThis package contains header files necessary for developing programs which will 573b921b29Sopenharmony_cimanipulate JPEG files using the TurboJPEG library. 583b921b29Sopenharmony_ci 593b921b29Sopenharmony_ci%package_help 603b921b29Sopenharmony_ci 613b921b29Sopenharmony_ci%prep 623b921b29Sopenharmony_ci%autosetup -n %{name}-%{version} -p1 633b921b29Sopenharmony_ci 643b921b29Sopenharmony_ci%build 653b921b29Sopenharmony_ci%{cmake} -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_SKIP_RPATH:BOOL=YES -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES -DENABLE_STATIC:BOOL=NO . 663b921b29Sopenharmony_ci 673b921b29Sopenharmony_ci%make_build V=1 683b921b29Sopenharmony_ci 693b921b29Sopenharmony_ci%install 703b921b29Sopenharmony_ci%make_install 713b921b29Sopenharmony_ci%delete_la 723b921b29Sopenharmony_ci 733b921b29Sopenharmony_cichmod -x README.md 743b921b29Sopenharmony_ci 753b921b29Sopenharmony_ci%ifarch x86_64 763b921b29Sopenharmony_ci %global wordsize "64" 773b921b29Sopenharmony_ci%else 783b921b29Sopenharmony_ci %global wordsize "" 793b921b29Sopenharmony_ci%endif 803b921b29Sopenharmony_ci 813b921b29Sopenharmony_ciif test -n "$wordsize" 823b921b29Sopenharmony_cithen 833b921b29Sopenharmony_ci pushd $RPM_BUILD_ROOT%{_includedir} 843b921b29Sopenharmony_ci mv jconfig.h jconfig-$wordsize.h 853b921b29Sopenharmony_ci cat > jconfig.h <<EOF 863b921b29Sopenharmony_ci#ifndef JCONFIG_H_MULTILIB 873b921b29Sopenharmony_ci#define JCONFIG_H_MULTILIB 883b921b29Sopenharmony_ci 893b921b29Sopenharmony_ci#include <bits/wordsize.h> 903b921b29Sopenharmony_ci 913b921b29Sopenharmony_ci#if __WORDSIZE == 32 923b921b29Sopenharmony_ci# include "jconfig-32.h" 933b921b29Sopenharmony_ci#elif __WORDSIZE == 64 943b921b29Sopenharmony_ci# include "jconfig-64.h" 953b921b29Sopenharmony_ci#else 963b921b29Sopenharmony_ci# error "unexpected value for __WORDSIZE macro" 973b921b29Sopenharmony_ci#endif 983b921b29Sopenharmony_ci 993b921b29Sopenharmony_ci#endif 1003b921b29Sopenharmony_ciEOF 1013b921b29Sopenharmony_cifi 1023b921b29Sopenharmony_ci 1033b921b29Sopenharmony_ci%check 1043b921b29Sopenharmony_ciLD_LIBRARY_PATH=%{buildroot}%{_libdir} make test %{?_smp_mflags} 1053b921b29Sopenharmony_ci 1063b921b29Sopenharmony_ci%ldconfig_scriptlets 1073b921b29Sopenharmony_ci 1083b921b29Sopenharmony_ci%files 1093b921b29Sopenharmony_ci%defattr(-,root,root) 1103b921b29Sopenharmony_ci%doc README.* 1113b921b29Sopenharmony_ci%license LICENSE.md 1123b921b29Sopenharmony_ci%{_libdir}/libjpeg.so.62* 1133b921b29Sopenharmony_ci%exclude /usr/share/doc/libjpeg-turbo/* 1143b921b29Sopenharmony_ci 1153b921b29Sopenharmony_ci%files devel 1163b921b29Sopenharmony_ci%doc coderules.txt jconfig.txt libjpeg.txt structure.txt example.txt 1173b921b29Sopenharmony_ci%exclude %{_includedir}/turbojpeg.h 1183b921b29Sopenharmony_ci%{_includedir}/*.h 1193b921b29Sopenharmony_ci%{_libdir}/libjpeg.so 1203b921b29Sopenharmony_ci%{_libdir}/pkgconfig/libjpeg.pc 1213b921b29Sopenharmony_ci%{_libdir}/cmake/%{name}/%{name}*.cmake 1223b921b29Sopenharmony_ci 1233b921b29Sopenharmony_ci%files utils 1243b921b29Sopenharmony_ci%doc usage.txt wizard.txt 1253b921b29Sopenharmony_ci%{_bindir}/cjpeg 1263b921b29Sopenharmony_ci%{_bindir}/djpeg 1273b921b29Sopenharmony_ci%{_bindir}/jpegtran 1283b921b29Sopenharmony_ci%{_bindir}/rdjpgcom 1293b921b29Sopenharmony_ci%{_bindir}/wrjpgcom 1303b921b29Sopenharmony_ci%{_bindir}/tjbench 1313b921b29Sopenharmony_ci 1323b921b29Sopenharmony_ci%files -n turbojpeg 1333b921b29Sopenharmony_ci%license LICENSE.md 1343b921b29Sopenharmony_ci%{_libdir}/libturbojpeg.so.0* 1353b921b29Sopenharmony_ci 1363b921b29Sopenharmony_ci%files -n turbojpeg-devel 1373b921b29Sopenharmony_ci%doc tjexample.c 1383b921b29Sopenharmony_ci%{_includedir}/turbojpeg.h 1393b921b29Sopenharmony_ci%{_libdir}/libturbojpeg.so 1403b921b29Sopenharmony_ci%{_libdir}/pkgconfig/libturbojpeg.pc 1413b921b29Sopenharmony_ci 1423b921b29Sopenharmony_ci%files help 1433b921b29Sopenharmony_ci%doc ChangeLog.md 1443b921b29Sopenharmony_ci%{_mandir}/man1/*.1* 1453b921b29Sopenharmony_ci 1463b921b29Sopenharmony_ci%changelog 1473b921b29Sopenharmony_ci* Mon Apr 24 2023 guoqinglan <guoqinglan@kylinsec.com.cn> - 2.1.1-5 1483b921b29Sopenharmony_ci- fix build error for sw_64 1493b921b29Sopenharmony_ci 1503b921b29Sopenharmony_ci* Thu Nov 17 2022 doupengda <doupengda@loongson.cn> - 2.1.1-4 1513b921b29Sopenharmony_ci- add loongarch64 support 1523b921b29Sopenharmony_ci 1533b921b29Sopenharmony_ci* Wed Jul 13 2022 wangkerong <wangkerong@h-partners.com> - 2.1.1-3 1543b921b29Sopenharmony_ci- utils provide by libjpeg-turbo-utils subpackage,the main package shouldn't provide it 1553b921b29Sopenharmony_ci 1563b921b29Sopenharmony_ci* Wed Mar 30 2022 liuyumeng <liuyumeng5@h-partners.com> - 2.1.1-2 1573b921b29Sopenharmony_ci- enable tests 1583b921b29Sopenharmony_ci 1593b921b29Sopenharmony_ci* Sat Nov 27 2021 wangkerong <wangkerong@huawei.com> - 2.1.1-1 1603b921b29Sopenharmony_ci- update to 2.1.1 1613b921b29Sopenharmony_ci- splite utils turbojpeg turbojpeg-devel subpackages 1623b921b29Sopenharmony_ci 1633b921b29Sopenharmony_ci* Wed Jan 27 2021 hanhui <hanhui15@huawei.com> - 2.0.6-1 1643b921b29Sopenharmony_ci- Type: enhancement 1653b921b29Sopenharmony_ci- ID: NA 1663b921b29Sopenharmony_ci- SUG: NA 1673b921b29Sopenharmony_ci- DESC: update to 2.0.6 1683b921b29Sopenharmony_ci 1693b921b29Sopenharmony_ci* Wed Jul 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.0.5-1 1703b921b29Sopenharmony_ci- Type:enhancement 1713b921b29Sopenharmony_ci- Id:NA 1723b921b29Sopenharmony_ci- SUG:NA 1733b921b29Sopenharmony_ci- DESC:upgrade to 2.0.5 1743b921b29Sopenharmony_ci 1753b921b29Sopenharmony_ci* Tue Jan 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.0.0-4 1763b921b29Sopenharmony_ci- Type:bugfix 1773b921b29Sopenharmony_ci- Id:NA 1783b921b29Sopenharmony_ci- SUG:NA 1793b921b29Sopenharmony_ci- DESC:remove the libjpeg-devel with arch in obsoletes 1803b921b29Sopenharmony_ci 1813b921b29Sopenharmony_ci* Fri Nov 1 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.0-3 1823b921b29Sopenharmony_ci- Type:bugfix 1833b921b29Sopenharmony_ci- Id:NA 1843b921b29Sopenharmony_ci- SUG:NA 1853b921b29Sopenharmony_ci- DESC:add the libjpeg-devel and jconfig.h 1863b921b29Sopenharmony_ci 1873b921b29Sopenharmony_ci* Sat Sep 21 2019 Lijin Yang <yanglijin@huawei.com> - 2.0.0-2 1883b921b29Sopenharmony_ci- Package init 189