## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global real_name OpenJPH %bcond mingw 1 Name: openjph Version: 0.25.3 Release: %autorelease Summary: Open-source implementation of JPEG2000 Part-15 (or JPH or HTJ2K) License: BSD-2-Clause URL: https://openjph.org/ Source: https://github.com/aous72/%{real_name}/archive/refs/tags/%{version}/%{real_name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig(libtiff-4) %if %{with mingw} BuildRequires: mingw32-filesystem BuildRequires: mingw32-gcc-c++ BuildRequires: mingw32-libtiff BuildRequires: mingw64-filesystem BuildRequires: mingw64-gcc-c++ BuildRequires: mingw64-libtiff %endif %description Open source implementation of High-throughput JPEG2000 (HTJ2K), also known as JPH, JPEG2000 Part 15, ISO/IEC 15444-15, and ITU-T T.814. Here, we are interested in implementing the HTJ2K only, supporting features that are defined in JPEG2000 Part 1. For example, for wavelet transform, only reversible 5/3 and irreversible 9/7 are supported. %package -n lib%{name} Summary: JPEG-2000 Part-15 library %description -n lib%{name} This package contains libopenjph, a library implementing the JPEG-2000 standard Part 15. %package -n lib%{name}-devel Summary: Development files for libopenjph, a JPEG-2000 library Requires: pkgconfig(libjpeg) Requires: lib%{name}%{?_isa} = %{version}-%{release} %description -n lib%{name}-devel This package contains libopenjph, a library implementing the JPEG-2000 standard Part 15. %if %{with mingw} %package -n mingw32-lib%{name} Summary: MinGW Windows %{name} library BuildArch: noarch %description -n mingw32-lib%{name} %{summary}. %package -n mingw32-%{name} Summary: MinGW Windows %{name} tools Requires: mingw32-lib%{name} = %{version}-%{release} BuildArch: noarch %description -n mingw32-%{name} %{summary}. %package -n mingw64-lib%{name} Summary: MinGW Windows %{name} library BuildArch: noarch %description -n mingw64-lib%{name} %{summary}. %package -n mingw64-%{name} Summary: MinGW Windows %{name} tools Requires: mingw64-lib%{name} = %{version}-%{release} BuildArch: noarch %description -n mingw64-%{name} %{summary}. %{?mingw_debug_package} %endif %prep %autosetup -n %{real_name}-%{version} -p1 %build %cmake -DCMAKE_INSTALL_LIBDIR=%{_lib} %cmake_build %if %{with mingw} %mingw_cmake -DCMAKE_DLL_NAME_WITH_SOVERSION=ON %mingw_make_build %endif %install %cmake_install %if %{with mingw} # MinGW build %mingw_make_install %mingw_debug_install_post %endif %files %doc README.md %{_bindir}/ojph_compress %{_bindir}/ojph_expand %files -n lib%{name} %license LICENSE %{_libdir}/lib%{name}.so.0.25 %{_libdir}/lib%{name}.so.%{version} %files -n lib%{name}-devel %{_includedir}/%{name} %{_libdir}/cmake/%{name} %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc %if %{with mingw} %files -n mingw32-lib%{name} %license LICENSE %{mingw32_bindir}/lib%{name}-0.25.dll %{mingw32_libdir}/lib%{name}.dll.a %{mingw32_libdir}/cmake/%{name} %{mingw32_libdir}/pkgconfig/%{name}.pc %{mingw32_includedir}/%{name}/ %files -n mingw32-%{name} %{mingw32_bindir}/ojph_compress.exe %{mingw32_bindir}/ojph_expand.exe %files -n mingw64-lib%{name} %license LICENSE %{mingw64_bindir}/lib%{name}-0.25.dll %{mingw64_libdir}/lib%{name}.dll.a %{mingw64_libdir}/cmake/%{name} %{mingw64_libdir}/pkgconfig/%{name}.pc %{mingw64_includedir}/%{name}/ %files -n mingw64-%{name} %{mingw64_bindir}/ojph_compress.exe %{mingw64_bindir}/ojph_expand.exe %endif %changelog ## START: Generated by rpmautospec * Fri Jan 16 2026 Fedora Release Engineering - 0.25.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Sun Dec 28 2025 Sandro Mani - 0.25.3-2 - Add mingw packages * Thu Nov 27 2025 Simone Caronni - 0.25.3-1 - Update to 0.25.3 * Sat Sep 06 2025 Adam Williamson - 0.22.0-2 - Rebuild with no change on side tag to fix libheif loop * Sat Sep 06 2025 Simone Caronni - 0.22.0-1 - Update to 0.22.0 * Tue Aug 19 2025 Simone Caronni - 0.21.5-1 - Update to 0.21.5 * Thu Jul 24 2025 Fedora Release Engineering - 0.21.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Jun 19 2025 Simone Caronni - 0.21.3-1 - Update to 0.21.3 * Mon Apr 28 2025 Simone Caronni - 0.21.2-2 - Move LICENSE to main library package (#2362722). * Mon Mar 17 2025 Simone Caronni - 0.21.2-1 - Update to 0.21.2. - Package now builds on i386. * Fri Jan 17 2025 Fedora Release Engineering - 0.18.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Dec 12 2024 Simone Caronni - 0.18.2-1 - Update to 0.18.2. * Mon Nov 11 2024 Simone Caronni - 0.18.0-1 - Update to 0.18.0. * Mon Sep 16 2024 Simone Caronni - 0.16.0-1 - Update to 0.16.0. * Wed Sep 04 2024 Simone Caronni - 0.15.0-6 - Leave autodetection of hardware extensions as per developer's comment at https://bugzilla.redhat.com/show_bug.cgi?id=2307795#c16 * Wed Sep 04 2024 Simone Caronni - 0.15.0-5 - Adjust SIMD selection again. * Fri Aug 30 2024 Simone Caronni - 0.15.0-4 - Switch on SIMD and drop AVX for old processors. * Fri Aug 30 2024 Simone Caronni - 0.15.0-3 - Fix instructions set typo. * Sun Aug 25 2024 Simone Caronni - 0.15.0-2 - Do not build on i686 (#2307782). * Sat Aug 24 2024 Simone Caronni - 0.15.0-1 - First build. ## END: Generated by rpmautospec