|
| 1 | +# Force out of source build |
| 2 | +%undefine __cmake_in_source_build |
| 3 | + |
| 4 | +%global modulename %{name}-c++ |
| 5 | + |
| 6 | +Name: capnproto |
| 7 | +Version: 1.0.1 |
| 8 | +Release: 4%{?dist} |
| 9 | +Summary: A data interchange format and capability-based RPC system |
| 10 | + |
| 11 | +License: MIT |
| 12 | +Vendor: Microsoft Corporation |
| 13 | +Distribution: Azure Linux |
| 14 | +URL: https://capnproto.org |
| 15 | + |
| 16 | +Source0: https://capnproto.org/%{modulename}-%{version}.tar.gz |
| 17 | + |
| 18 | +# We need C++ |
| 19 | +BuildRequires: gcc-c++ |
| 20 | +BuildRequires: cmake >= 3.1 |
| 21 | + |
| 22 | +# Ensure that we use matching version of libraries |
| 23 | +Requires: %{name}-libs%{?_isa} = %{version}-%{release} |
| 24 | + |
| 25 | +%description |
| 26 | +Cap’n Proto is an insanely fast data interchange format |
| 27 | +and capability-based RPC system. Think JSON, except binary. |
| 28 | +Or think Protocol Buffers, except faster. In fact, in benchmarks, |
| 29 | +Cap’n Proto is INFINITY TIMES faster than Protocol Buffers. |
| 30 | + |
| 31 | +This package contains the schema compiler and command-line |
| 32 | +encoder/decoder tools. |
| 33 | + |
| 34 | +%package libs |
| 35 | +Summary: Libraries for %{name} |
| 36 | + |
| 37 | +%description libs |
| 38 | +The %{name}-libs package contains the libraries for using %{name} |
| 39 | +in applications. |
| 40 | + |
| 41 | +%package devel |
| 42 | +Summary: Development files for %{name} |
| 43 | +Requires: %{name}-libs%{?_isa} = %{version}-%{release} |
| 44 | + |
| 45 | +%description devel |
| 46 | +The %{name}-devel package contains libraries and header files for |
| 47 | +developing applications that use %{name}. |
| 48 | + |
| 49 | + |
| 50 | +%prep |
| 51 | +%autosetup -n %{modulename}-%{version} -p2 |
| 52 | + |
| 53 | +# Disable broken test |
| 54 | +## Cf. https://github.com/capnproto/capnproto/issues/1349 |
| 55 | +## Cf. https://github.com/capnproto/capnproto/issues/1398 |
| 56 | +sed -e '/TEST(AsyncIo, AncillaryMessageHandler)/,/^}/s/^/\/\//' -i src/kj/async-io-test.c++ |
| 57 | + |
| 58 | + |
| 59 | +%build |
| 60 | +# The tests are randomly failing due to poor sparsing support in the build system |
| 61 | +export CFLAGS="%{build_cflags} -DHOLES_NOT_SUPPORTED=1" |
| 62 | +export CXXFLAGS="%{build_cxxflags} -DHOLES_NOT_SUPPORTED=1" |
| 63 | + |
| 64 | +%cmake -DBUILD_TESTING=ON |
| 65 | +%cmake_build |
| 66 | + |
| 67 | + |
| 68 | +%check |
| 69 | +%ctest |
| 70 | + |
| 71 | + |
| 72 | +%install |
| 73 | +%cmake_install |
| 74 | +find %{buildroot} -name '*.la' -delete |
| 75 | + |
| 76 | + |
| 77 | +%files |
| 78 | +%{_bindir}/capnp |
| 79 | +%{_bindir}/capnpc |
| 80 | +%{_bindir}/capnpc-c++ |
| 81 | +%{_bindir}/capnpc-capnp |
| 82 | + |
| 83 | +%files libs |
| 84 | +%license LICENSE.txt |
| 85 | +%{_libdir}/*.so.* |
| 86 | + |
| 87 | +%files devel |
| 88 | +%{_includedir}/* |
| 89 | +%{_libdir}/*.so |
| 90 | +%{_libdir}/pkgconfig/*.pc |
| 91 | +%{_libdir}/cmake/CapnProto/ |
| 92 | + |
| 93 | +%changelog |
| 94 | +* Fri Jun 14 2024 Henry Beberman <[email protected]> - 1.0.1-4 |
| 95 | +- Initial Azure Linux import from Fedora 41 (license: MIT). |
| 96 | +- License verified. |
| 97 | + |
| 98 | +* Tue Jan 23 2024 Fedora Release Engineering <[email protected]> - 1.0.1-3 |
| 99 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 100 | + |
| 101 | +* Fri Jan 19 2024 Fedora Release Engineering <[email protected]> - 1.0.1-2 |
| 102 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 103 | + |
| 104 | +* Fri Sep 08 2023 Neal Gompa <[email protected]> - 1.0.1-1 |
| 105 | +- Rebase to 1.0.1 |
| 106 | + |
| 107 | +* Wed Jul 19 2023 Fedora Release Engineering <[email protected]> - 0.10.3-4 |
| 108 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild |
| 109 | + |
| 110 | +* Tue Feb 28 2023 Mamoru TASAKA <[email protected]> - 0.10.3-3 |
| 111 | +- Backport upstream fix for missing headers for g++13 |
| 112 | +- Backport upstream fix for operator!= removal for C++20 |
| 113 | + |
| 114 | +* Wed Jan 18 2023 Fedora Release Engineering <[email protected]> - 0.10.3-2 |
| 115 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild |
| 116 | + |
| 117 | +* Fri Dec 02 2022 Fabio Valentini <[email protected]> - 0.10.3-1 |
| 118 | +- Update to version 0.10.3 |
| 119 | +- Fixes RHBZ#2149787 |
| 120 | +- Addresses CVE-2022-46149 |
| 121 | + |
| 122 | +* Tue Nov 29 2022 Neal Gompa <[email protected]> - 0.10.2-1 |
| 123 | +- Rebase to 0.10.2 |
| 124 | +- Drop backported patch |
| 125 | + |
| 126 | +* Wed Jul 20 2022 Fedora Release Engineering <[email protected]> - 0.9.1-3 |
| 127 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild |
| 128 | + |
| 129 | +* Wed Jan 19 2022 Fedora Release Engineering <[email protected]> - 0.9.1-2 |
| 130 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild |
| 131 | + |
| 132 | +* Tue Dec 21 2021 Neal Gompa <[email protected]> - 0.9.1-1 |
| 133 | +- Rebase to 0.9.1 |
| 134 | +- Add patch to fix running tests |
| 135 | +- Disable flaky/broken test per upstream guidance |
| 136 | + |
| 137 | +* Wed Jul 21 2021 Fedora Release Engineering <[email protected]> - 0.8.0-4 |
| 138 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild |
| 139 | + |
| 140 | +* Tue Jan 26 2021 Fedora Release Engineering <[email protected]> - 0.8.0-3 |
| 141 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild |
| 142 | + |
| 143 | +* Mon Jul 27 2020 Fedora Release Engineering <[email protected]> - 0.8.0-2 |
| 144 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
| 145 | + |
| 146 | +* Sat Jul 18 2020 Neal Gompa <[email protected]> - 0.8.0-1 |
| 147 | +- Update to 0.8.0 (#1827443) |
| 148 | +- Drop backported patches |
| 149 | + |
| 150 | +* Thu Mar 12 2020 Neal Gompa <[email protected]> - 0.7.0-6 |
| 151 | +- Backport patch to fix aliasing violation breaking builds on GCC 10 on ARM (#1807872) |
| 152 | +- Disable "DiskFile holes" test to stop build failures |
| 153 | + |
| 154 | +* Tue Jan 28 2020 Fedora Release Engineering <[email protected]> - 0.7.0-5 |
| 155 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild |
| 156 | + |
| 157 | +* Wed Jul 24 2019 Fedora Release Engineering <[email protected]> - 0.7.0-4 |
| 158 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild |
| 159 | + |
| 160 | +* Thu Jan 31 2019 Fedora Release Engineering <[email protected]> - 0.7.0-3 |
| 161 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
| 162 | + |
| 163 | +* Wed Jan 23 2019 Björn Esser <[email protected]> - 0.7.0-2 |
| 164 | +- Append curdir to CMake invokation. (#1668512) |
| 165 | + |
| 166 | +* Sun Sep 23 2018 Neal Gompa <[email protected]> - 0.7.0-1 |
| 167 | +- Update to 0.7.0 |
| 168 | +- Drop upstreamed patches |
| 169 | +- Drop obsolete ldconfig scriptlets |
| 170 | + |
| 171 | +* Thu Jul 12 2018 Fedora Release Engineering <[email protected]> - 0.6.1-8 |
| 172 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
| 173 | + |
| 174 | +* Wed Feb 07 2018 Fedora Release Engineering <[email protected]> - 0.6.1-7 |
| 175 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
| 176 | + |
| 177 | +* Sun Aug 06 2017 Björn Esser <[email protected]> - 0.6.1-6 |
| 178 | +- Rebuilt for AutoReq cmake-filesystem |
| 179 | + |
| 180 | +* Wed Aug 02 2017 Fedora Release Engineering <[email protected]> - 0.6.1-5 |
| 181 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild |
| 182 | + |
| 183 | +* Wed Jul 26 2017 Fedora Release Engineering <[email protected]> - 0.6.1-4 |
| 184 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
| 185 | + |
| 186 | +* Fri Jun 09 2017 Neal Gompa <[email protected]> - 0.6.1-3 |
| 187 | +- Update patch based on upstream feedback |
| 188 | + |
| 189 | +* Fri Jun 09 2017 Neal Gompa <[email protected]> - 0.6.1-2 |
| 190 | +- Adjust soversion patch to maintain binary compat across patch versions |
| 191 | + |
| 192 | +* Fri Jun 09 2017 Neal Gompa <[email protected]> - 0.6.1-1 |
| 193 | +- Update to 0.6.1 |
| 194 | + |
| 195 | +* Mon Feb 27 2017 Neal Gompa <[email protected]> - 0.5.3-4 |
| 196 | +- Add patch to fix FTBFS with GCC 7 (#1423291) |
| 197 | + |
| 198 | +* Fri Feb 10 2017 Fedora Release Engineering <[email protected]> - 0.5.3-3 |
| 199 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
| 200 | + |
| 201 | +* Thu Apr 28 2016 Neal Gompa <[email protected]> - 0.5.3-2 |
| 202 | +- Add patches to fix ppc builds |
| 203 | + |
| 204 | +* Tue Apr 26 2016 Neal Gompa <[email protected]> - 0.5.3-1 |
| 205 | +- Initial packaging |
0 commit comments