From 63f5ed99cb5d0542cd0dd57ecf3cf032367c2d7e Mon Sep 17 00:00:00 2001 From: tigro Date: Wed, 26 Jul 2023 16:37:47 +0300 Subject: [PATCH] import mingw-libjpeg-turbo-2.1.3-2.el9 --- .gitignore | 1 + .mingw-libjpeg-turbo.metadata | 1 + SPECS/mingw-libjpeg-turbo.spec | 384 +++++++++++++++++++++++++++++++++ 3 files changed, 386 insertions(+) create mode 100644 .gitignore create mode 100644 .mingw-libjpeg-turbo.metadata create mode 100644 SPECS/mingw-libjpeg-turbo.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..079edc1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libjpeg-turbo-2.1.3.tar.gz diff --git a/.mingw-libjpeg-turbo.metadata b/.mingw-libjpeg-turbo.metadata new file mode 100644 index 0000000..1ff3ef3 --- /dev/null +++ b/.mingw-libjpeg-turbo.metadata @@ -0,0 +1 @@ +6dec48193bb27e1c07abae8230031ce9ecb1cfec SOURCES/libjpeg-turbo-2.1.3.tar.gz diff --git a/SPECS/mingw-libjpeg-turbo.spec b/SPECS/mingw-libjpeg-turbo.spec new file mode 100644 index 0000000..f67fe9e --- /dev/null +++ b/SPECS/mingw-libjpeg-turbo.spec @@ -0,0 +1,384 @@ +%{?mingw_package_header} + +# Build the programs like cjpeg, etc. +# https://bugzilla.redhat.com/show_bug.cgi?id=467401#c7 +%global build_programs 0 + +Name: mingw-libjpeg-turbo +Version: 2.1.3 +Release: 2%{?dist} +Summary: MinGW Windows Libjpeg-turbo library + +License: wxWidgets +URL: http://libjpeg-turbo.virtualgl.org/ +Source0: http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: mingw32-filesystem >= 95 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-gcc-c++ +BuildRequires: mingw32-binutils + +BuildRequires: mingw64-filesystem >= 95 +BuildRequires: mingw64-gcc +BuildRequires: mingw64-gcc-c++ +BuildRequires: mingw64-binutils + +BuildRequires: nasm +BuildRequires: cmake +BuildRequires: make + + +%description +MinGW Windows cross compiled Libjpeg-turbo library. + + +# Win32 +%package -n mingw32-libjpeg-turbo +Summary: MinGW Windows Libjpeg-turbo library +Obsoletes: mingw32-libjpeg < 7-4 +Provides: mingw32-libjpeg = 7-4 + +%description -n mingw32-libjpeg-turbo +MinGW Windows cross compiled Libjpeg-turbo library. + + +%package -n mingw32-libjpeg-turbo-static +Summary: Static version of the MinGW Windows Libjpeg-turbo library +Requires: mingw32-libjpeg-turbo = %{version}-%{release} +Obsoletes: mingw32-libjpeg-static < 7-4 +Provides: mingw32-libjpeg-static = 7-4 + +%description -n mingw32-libjpeg-turbo-static +Static version of the MinGW Windows cross compiled Libjpeg-turbo library. + + +%package -n mingw32-turbojpeg +Summary: MinGW Windows turbojpeg library + +%description -n mingw32-turbojpeg +MinGW Windows cross compiled turbojpeg library. + + +%package -n mingw32-turbojpeg-static +Summary: Static version of the MinGW Windows turbojpeg library +Requires: mingw32-turbojpeg = %{version}-%{release} + +%description -n mingw32-turbojpeg-static +Static version of the MinGW Windows turbojpeg library. + + +# Win64 +%package -n mingw64-libjpeg-turbo +Summary: MinGW Windows Libjpeg-turbo library +Obsoletes: mingw64-libjpeg < 8a-2%{?dist} +Provides: mingw64-libjpeg = 8a-2%{?dist} + +%description -n mingw64-libjpeg-turbo +MinGW Windows cross compiled Libjpeg-turbo library. + + +%package -n mingw64-libjpeg-turbo-static +Summary: Static version of the MinGW Windows Libjpeg-turbo library +Requires: mingw64-libjpeg-turbo = %{version}-%{release} +Obsoletes: mingw64-libjpeg-static < 8a-2%{?dist} +Provides: mingw64-libjpeg-static = 8a-2%{?dist} + +%description -n mingw64-libjpeg-turbo-static +Static version of the MinGW Windows cross compiled Libjpeg-turbo library. + + +%package -n mingw64-turbojpeg +Summary: MinGW Windows turbojpeg library + +%description -n mingw64-turbojpeg +MinGW Windows cross compiled turbojpeg library. + + +%package -n mingw64-turbojpeg-static +Summary: Static version of the MinGW Windows turbojpeg library +Requires: mingw64-turbojpeg = %{version}-%{release} + +%description -n mingw64-turbojpeg-static +Static version of the MinGW Windows turbojpeg library. + + +%{?mingw_debug_package} + + +%prep +%autosetup -n libjpeg-turbo-%{version} -p1 + + +%build +%mingw_cmake +%mingw_make_build + + +%install +%mingw_make_install + +# Remove manual pages and docs which duplicate Fedora native. +rm -rf %{buildroot}%{mingw32_mandir} +rm -rf %{buildroot}%{mingw64_mandir} +rm -rf %{buildroot}%{mingw32_docdir} +rm -rf %{buildroot}%{mingw64_docdir} + +# The CMake build system also installed some docs +rm -rf %{buildroot}%{mingw32_prefix}/doc +rm -rf %{buildroot}%{mingw64_prefix}/doc + +# Remove win32 native binaries if wanted +%if %build_programs == 0 +rm -f %{buildroot}%{mingw32_bindir}/*.exe +rm -f %{buildroot}%{mingw64_bindir}/*.exe +%endif + +# Fix perms +chmod -x README.md + + +# Win32 +%files -n mingw32-libjpeg-turbo +%license LICENSE.md +%doc README.* ChangeLog.md +%if %build_programs +%{mingw32_bindir}/*.exe +%endif +%{mingw32_bindir}/libjpeg-62.dll +%{mingw32_includedir}/jconfig.h +%{mingw32_includedir}/jerror.h +%{mingw32_includedir}/jmorecfg.h +%{mingw32_includedir}/jpeglib.h +%{mingw32_libdir}/cmake/libjpeg-turbo/ +%{mingw32_libdir}/libjpeg.dll.a +%{mingw32_libdir}/pkgconfig/libjpeg.pc + +%files -n mingw32-libjpeg-turbo-static +%{mingw32_libdir}/libjpeg.a + +%files -n mingw32-turbojpeg +%{mingw32_bindir}/libturbojpeg.dll +%{mingw32_includedir}/turbojpeg.h +%{mingw32_libdir}/libturbojpeg.dll.a +%{mingw32_libdir}/pkgconfig/libturbojpeg.pc + +%files -n mingw32-turbojpeg-static +%{mingw32_libdir}/libturbojpeg.a + +# Win64 +%files -n mingw64-libjpeg-turbo +%license LICENSE.md +%doc README.* ChangeLog.md +%if %build_programs +%{mingw64_bindir}/*.exe +%endif +%{mingw64_bindir}/libjpeg-62.dll +%{mingw64_includedir}/jconfig.h +%{mingw64_includedir}/jerror.h +%{mingw64_includedir}/jmorecfg.h +%{mingw64_includedir}/jpeglib.h +%{mingw64_libdir}/cmake/libjpeg-turbo/ +%{mingw64_libdir}/libjpeg.dll.a +%{mingw64_libdir}/pkgconfig/libjpeg.pc + +%files -n mingw64-libjpeg-turbo-static +%{mingw64_libdir}/libjpeg.a + +%files -n mingw64-turbojpeg +%{mingw64_bindir}/libturbojpeg.dll +%{mingw64_includedir}/turbojpeg.h +%{mingw64_libdir}/libturbojpeg.dll.a +%{mingw64_libdir}/pkgconfig/libturbojpeg.pc + +%files -n mingw64-turbojpeg-static +%{mingw64_libdir}/libturbojpeg.a + + +%changelog +* Wed Jul 26 2023 Arkady L. Shane - 2.1.3-2 +- Rebuilt for MSVSphere 9.2 + +* Fri Mar 25 2022 Sandro Mani - 2.1.3-2 +- Rebuild with mingw-gcc-12 + +* Mon Feb 28 2022 Sandro Mani - 2.1.3-1 +- Update to 2.1.3 + +* Thu Jan 20 2022 Fedora Release Engineering - 2.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Nov 23 2021 Sandro Mani - 2.1.2-1 +- Update to 2.1.2 + +* Wed Aug 11 2021 Sandro Mani - 2.1.1-1 +- Update to 2.1.1 + +* Thu Jul 22 2021 Fedora Release Engineering - 2.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 10 2021 Sandro Mani - 2.1.0-3 +- Fix files packaged twice + +* Mon May 10 2021 Sandro Mani - 2.1.0-2 +- Split off turbojpeg library + +* Mon Apr 26 2021 Sandro Mani - 2.1.0-1 +- Update to 2.1.0 + +* Mon Apr 12 2021 Sandro Mani - 2.0.90-2 +- Backport patch for CVE-2021-20205 + +* Thu Jan 28 2021 Sandro Mani - 2.0.90-1 +- Update to 2.0.90 + +* Tue Jan 26 2021 Fedora Release Engineering - 2.0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 2.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat Jul 04 2020 Sandro Mani - 2.0.5-1 +- Update to 2.0.5 + +* Tue Jun 16 2020 Kalev Lember - 2.0.4-3 +- Fix CVE-2020-13790 (#1847160) + +* Wed Jan 29 2020 Fedora Release Engineering - 2.0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jan 09 2020 Sandro Mani - 2.0.4-1 +- Update to 2.0.4 + +* Mon Sep 16 2019 Sandro Mani - 2.0.3-1 +- Update to 2.0.3 + +* Thu Jul 25 2019 Fedora Release Engineering - 2.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Feb 27 2019 Kalev Lember - 2.0.2-1 +- Update to 2.0.2 + +* Fri Feb 01 2019 Fedora Release Engineering - 2.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jan 11 2019 Kalev Lember - 2.0.0-2 +- Fix CVE-2018-19664 and CVE-2018-20330 + +* Wed Aug 01 2018 Sandro Mani - 2.0.0-1 +- Update to 2.0.0 + +* Fri Jul 13 2018 Fedora Release Engineering - 1.5.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 1.5.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.5.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Oct 13 2016 Kalev Lember - 1.5.1-1 +- Update to 1.5.1 + +* Fri Sep 16 2016 Kalev Lember - 1.5.0-1 +- Update to 1.5.0 +- Include license files +- Don't set group tags + +* Tue May 10 2016 Kalev Lember - 1.4.2-1 +- Update to 1.4.2 + +* Thu Feb 04 2016 Fedora Release Engineering - 1.3.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.3.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Dec 22 2014 Erik van Pienbroek - 1.3.1-4 +- Fix CVE-2014-9092 (RHBZ #1169851 #1169853) + +* Sat Jun 07 2014 Fedora Release Engineering - 1.3.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu May 29 2014 Erik van Pienbroek - 1.3.1-2 +- Fix compatibility with older CMake versions (as used on RHEL7) + +* Thu May 29 2014 Erik van Pienbroek - 1.3.1-1 +- Update to 1.3.1 +- Fixes CVE-2013-6629 and CVE-2013-6630 (RHBZ #1031740) + +* Sat Aug 3 2013 Erik van Pienbroek - 1.3.0-1 +- Update to 1.3.0 +- Make jconfig.h more autoconf friendly (RHBZ #843193) + +* Sat Aug 03 2013 Fedora Release Engineering - 1.2.90-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sun Mar 24 2013 Erik van Pienbroek - 1.2.90-1 +- Update to 1.2.90 + +* Thu Feb 14 2013 Fedora Release Engineering - 1.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Oct 14 2012 Nicola Fontana - 1.2.1-2 +- Dropped phantom dependency on libpng and zlib (RHBZ #866185) + +* Sun Oct 07 2012 Kalev Lember - 1.2.1-1 +- Update to 1.2.1 +- Dropped upstreamed int32 patch + +* Fri Jul 20 2012 Fedora Release Engineering - 1.1.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Mar 10 2012 Erik van Pienbroek - 1.1.1-8 +- Added win64 support +- Use mingw macros without leading underscore + +* Mon Feb 27 2012 Erik van Pienbroek - 1.1.1-7 +- Rebuild against the mingw-w64 toolchain + +* Fri Jan 13 2012 Fedora Release Engineering - 1.1.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Jun 3 2011 Erik van Pienbroek - 1.1.1-5 +- Updated the INT32 patch so that both the mingw.org and the mingw-w64 + toolchains are supported + +* Fri Jun 3 2011 Erik van Pienbroek - 1.1.1-4 +- Fix a conflict between w32api's basetsd.h and jmorecfg.h (conflicting + declarations for INT32) + +* Thu Jun 2 2011 Erik van Pienbroek - 1.1.1-3 +- Moved the obsoletes/provides to the right location +- Bundle the licence and other %%doc's +- Fixed a small rpmlint warning + +* Thu Jun 2 2011 Erik van Pienbroek - 1.1.1-2 +- Use CMake to build this package as it creates a more mingw-friendly + version of the library + +* Thu Jun 2 2011 Erik van Pienbroek - 1.1.1-1 +- Update to 1.1.1 +- Temporary made the package compliant to the old guidelines as the new + mingw-w64 based toolchain isn't approved for inclusion in Fedora yet + +* Fri Apr 15 2011 Erik van Pienbroek - 1.1.0-1 +- Update to 1.1.0 +- Made the package compliant with the new approved packaging guidelines + +* Tue Feb 15 2011 Erik van Pienbroek - 1.0.1-3 +- Bumped the obsoletes mingw32-libjpeg + +* Wed Jan 19 2011 Erik van Pienbroek - 1.0.1-2 +- Generate per-target RPMs + +* Sun Oct 3 2010 Erik van Pienbroek - 1.0.1-1 +- Initial release (based on mingw32-libjpeg) +- Dropped the BR: mingw32-dlfcn +- Obsoletes/provides mingw32-libjpeg and mingw32-libjpeg-static +- Disable SIMD support for now because libtool doesn't recognize nasm +