Package libgrokj2k: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | # TODO: enable tests (they forget pack tests in the tarball) %define oname grok Name: libgrokj2k Version: 11.0.0 Release: alt1 Summary: World's Leading Open Source JPEG 2000 Codec License: AGPL-3.0 Group: System/Libraries Url: https://github.com/GrokImageCompression/grok Packager: Vitaly Lipatov <lav@altlinux.ru> # Source-url: https://github.com/GrokImageCompression/grok/archive/refs/tags/v%version.tar.gz Source: %name-%version.tar BuildRequires(pre): rpm-macros-cmake BuildRequires: perl-base perl-devel perl-Image-ExifTool BuildRequires: zlib-devel libpng-devel libtiff-devel liblcms2-devel libjpeg-devel BuildRequires: libwebp-devel libzstd-devel liblzma-devel libdeflate-devel BuildRequires: cmake gcc-c++ %description World's Leading Open Source JPEG 2000 Codec: support for new High Throughput JPEG 2000 (HTJ2K) standard fast random-access sub-image decoding using TLM and PLT markers full encode/decode support for ICC colour profiles full encode/decode support for XML,IPTC, XMP and EXIF meta-data full encode/decode support for monochrome, sRGB, palette, YCC, extended YCC, CIELab and CMYK colour spaces full encode/decode support for JPEG,PNG,BMP,TIFF,RAW,PNM and PAM image formats full encode/decode support for 1-16 bit precision images %package devel Summary: Header files for %name Group: Development/Other Requires: %name = %EVR %description devel Header files for %name. %package -n grokj2k-tools Summary: Tools for %name Group: File tools Requires: %name = %EVR %description -n grokj2k-tools Compress and decompress tools for grokj2k: * grk_compress * grk_decompress %prep %setup %ifarch %e2k sed -i 's|set(CMAKE_CXX_STANDARD 20)|string(APPEND CMAKE_CXX_FLAGS " -std=gnu++2a")|' CMakeLists.txt sed -i 's|CMAKE_CXX_COMPILER_VERSION|12.0|' CMakeLists.txt # spdlog uses a very old libfmt sed -i 's|defined(__cpp_nontype_template_args)|0|' src/include/spdlog/fmt/bundled/core.h %add_optflags -mno-sse %endif %ifarch ppc64le %add_optflags -DNO_WARN_X86_INTRINSICS %endif rm -rv thirdparty/liblcms2 rm -rf thirdparty/libpng rm -rf thirdparty/libtiff rm -rf thirdparty/libz %build %cmake_insource \ -DBUILD_STATIC_LIBS=OFF \ -DGRK_BUILD_LIBPNG=OFF \ -DGRK_BUILD_LIBTIFF=OFF \ -DGRK_BUILD_LCMS2=OFF \ -DGRK_BUILD_JPEG=OFF \ -DHWY_SYSTEM_GTEST=ON \ -DBUILD_TESTING=OFF \ %nil %make_build %install %makeinstall_std %files %doc README.md %_libdir/%name.so.1 %_libdir/%name.so.%version %_libdir/%{name}codec.so.1 %_libdir/%{name}codec.so.%version %files -n grokj2k-tools %_bindir/grk_compress %_bindir/grk_decompress %_bindir/grk_dump %files devel %_libdir/%name.so %_libdir/%{name}codec.so %_includedir/grok-*/ %_libdir/cmake/grok-*/ %_pkgconfigdir/libgrokj2k.pc %_pkgconfigdir/libgrokj2kcodec.pc %changelog * Tue Nov 07 2023 Vitaly Lipatov <lav@altlinux.ru> 11.0.0-alt1 - new version 11.0.0 (with rpmrb script) * Sun Aug 06 2023 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 10.0.8-alt1.1 - fixed build for Elbrus * Fri Aug 04 2023 Vitaly Lipatov <lav@altlinux.ru> 10.0.8-alt1 - new version 10.0.8 (with rpmrb script) - return to build with default gcc * Thu Jul 27 2023 Artyom Bystrov <arbars@altlinux.org> 9.5.0-alt2 - Add handle to fix build * Mon Dec 13 2021 Vitaly Lipatov <lav@altlinux.ru> 9.5.0-alt1 - new version 9.5.0 (with rpmrb script) - add BR: libdeflate-devel - add -DNO_WARN_X86_INTRINSICS for ppc64le * Tue Sep 28 2021 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 9.2.0-alt2 - fixed build for Elbrus * Sun Jul 04 2021 Vitaly Lipatov <lav@altlinux.ru> 9.2.0-alt1 - initial build for ALT Sisyphus |