Package flatbuffers: 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 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | %define desc FlatBuffers is a cross platform serialization library architected \ for maximum memory efficiency. It allows you to directly access serialized data \ without parsing/unpacking it first, while still having great forwards/backwards \ compatibility. Name: flatbuffers Version: 24.3.7 Release: alt1 Summary: Memory Efficient Serialization Library License: APL Group: System/Libraries Url: https://google.github.io/%name/ # https://github.com/google/%name/archive/v%version/%name-%version.tar.gz Source: %name-%version.tar BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel BuildRequires: python3-module-setuptools BuildRequires: cmake ctest gcc-c++ %description %desc %package -n lib%name Summary: Memory Efficient Serialization Library Group: System/Libraries %description -n lib%name %desc %package -n lib%name-devel Summary: Memory Efficient Serialization Library Group: Development/C++ %description -n lib%name-devel %desc This package contains development part of FlatBuffers. %package -n python3-module-%name Summary: Python3 files for %name Group: Development/Python3 Requires: lib%name = %EVR %description -n python3-module-%name This package contains python files for %name. %prep %setup %add_optflags -Wno-class-memaccess -Wno-stringop-overflow %ifarch %e2k sed -i 's,-Werror -Wextra -Werror=shadow,,' CMakeLists.txt # get rid of abstractions that break the compiler sed -i 's/int &...ExplicitArgumentBarrier,//;s/int &...,//' \ include/flatbuffers/flatbuffer_builder.h %endif %build cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS:STRING='%optflags' \ -DCMAKE_INSTALL_PREFIX=%prefix \ -DFLATBUFFERS_BUILD_FLATC=ON \ -DFLATBUFFERS_BUILD_FLATLIB=OFF \ -DFLATBUFFERS_BUILD_SHAREDLIB=ON \ -DFLATBUFFERS_BUILD_TESTS=ON \ . %make_build pushd python %python3_build popd %ifnarch %ix86 %arm %check make test %endif %install %makeinstall_std pushd python %python3_install popd [ %python3_sitelibdir = %python3_sitelibdir_noarch ] || ( mkdir -p %buildroot%python3_sitelibdir mv %buildroot%python3_sitelibdir_noarch/* %buildroot%python3_sitelibdir ) %files -n lib%name %_libdir/lib%name.so.* %files -n lib%name-devel %_bindir/flatc %_includedir/%name %_libdir/cmake/%name %_libdir/lib%name.so %_pkgconfigdir/%name.pc %files -n python3-module-%name %python3_sitelibdir/* %changelog * Sat Mar 09 2024 Nazarov Denis <nenderus@altlinux.org> 24.3.7-alt1 - New version 24.3.7. * Fri May 26 2023 Nazarov Denis <nenderus@altlinux.org> 23.5.26-alt1 - 23.5.26 released * Mon May 15 2023 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 23.5.9-alt1.1 - Fixed build for Elbrus * Sun May 14 2023 Nazarov Denis <nenderus@altlinux.org> 23.5.9-alt1 - 23.5.9 released * Sat Mar 04 2023 Nazarov Denis <nenderus@altlinux.org> 23.3.3-alt1 - 23.3.3 released * Sun Jan 22 2023 Nazarov Denis <nenderus@altlinux.org> 23.1.21-alt1 - 23.1.21 released. * Thu Jan 05 2023 Nazarov Denis <nenderus@altlinux.org> 23.1.4-alt1 - 23.1.4 released * Wed Dec 07 2022 Nazarov Denis <nenderus@altlinux.org> 22.12.06-alt1 - 22.12.06 released * Thu Nov 24 2022 Nazarov Denis <nenderus@altlinux.org> 22.11.23-alt1 - 22.11.23 released * Thu Oct 27 2022 Nazarov Denis <nenderus@altlinux.org> 22.10.26-alt1 - 22.10.26 released * Wed Oct 26 2022 Nazarov Denis <nenderus@altlinux.org> 22.10.25-alt1 - 22.10.25 released * Tue Aug 30 2022 Nazarov Denis <nenderus@altlinux.org> 2.0.8-alt1 - 2.0.8 released * Sun Apr 24 2022 Nazarov Denis <nenderus@altlinux.org> 2.0.6-alt1 - 2.0.6 released * Wed Jul 07 2021 Nazarov Denis <nenderus@altlinux.org> 2.0.0-alt1 - 2.0.0 released * Thu May 20 2021 Anton Midyukov <antohami@altlinux.org> 1.12.0-alt3 - build python3-module-flatbuffers * Sat Apr 17 2021 Michael Shigorin <mike@altlinux.org> 1.12.0-alt2 - E2K: workaround ftbfs with (stricter) lcc * Tue Jan 26 2021 Sergey Bolshakov <sbolshakov@altlinux.ru> 1.12.0-alt1 - 1.12.0 released * Tue Dec 03 2019 Sergey Bolshakov <sbolshakov@altlinux.ru> 1.11.0-alt1 - 1.11.0 released * Fri Jun 07 2019 Michael Shigorin <mike@altlinux.org> 1.10.0-alt1.1 - E2K: explicit -std=c++11; avoid -Werror for now * Wed Jan 30 2019 Sergey Bolshakov <sbolshakov@altlinux.ru> 1.10.0-alt1 - initial |