Blame SPECS/capnproto.spec

c05808
# Force out of source build
c05808
%undefine __cmake_in_source_build
c05808
c05808
%global modulename %{name}-c++
c05808
c05808
Name:           capnproto
c05808
Version:        0.10.4
c05808
Release:        1%{?dist}
c05808
Summary:        A data interchange format and capability-based RPC system
c05808
c05808
License:        MIT
c05808
URL:            https://capnproto.org
c05808
Source0:        https://capnproto.org/%{modulename}-%{version}.tar.gz
c05808
c05808
# We need C++
c05808
BuildRequires:  gcc-c++
c05808
BuildRequires:  cmake >= 3.1
c05808
c05808
# Ensure that we use matching version of libraries
c05808
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
c05808
c05808
%description
c05808
Cap’n Proto is an insanely fast data interchange format
c05808
and capability-based RPC system. Think JSON, except binary.
c05808
Or think Protocol Buffers, except faster. In fact, in benchmarks,
c05808
Cap’n Proto is INFINITY TIMES faster than Protocol Buffers.
c05808
c05808
This package contains the schema compiler and command-line
c05808
encoder/decoder tools.
c05808
c05808
%package        libs
c05808
Summary:        Libraries for %{name}
c05808
c05808
%description    libs
c05808
The %{name}-libs package contains the libraries for using %{name}
c05808
in applications.
c05808
c05808
%package        devel
c05808
Summary:        Development files for %{name}
c05808
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
c05808
c05808
%description    devel
c05808
The %{name}-devel package contains libraries and header files for
c05808
developing applications that use %{name}.
c05808
c05808
c05808
%prep
c05808
%autosetup -n %{modulename}-%{version} -p2
c05808
c05808
# Disable broken test
c05808
## Cf. https://github.com/capnproto/capnproto/issues/1349
c05808
## Cf. https://github.com/capnproto/capnproto/issues/1398
c05808
sed -e '/TEST(AsyncIo, AncillaryMessageHandler)/,/^}/s/^/\/\//' -i src/kj/async-io-test.c++
c05808
c05808
c05808
%build
c05808
# The tests are randomly failing due to poor sparsing support in the build system
c05808
export CFLAGS="%{build_cflags} -DHOLES_NOT_SUPPORTED=1"
c05808
export CXXFLAGS="%{build_cxxflags} -DHOLES_NOT_SUPPORTED=1"
c05808
c05808
%cmake -DBUILD_TESTING=ON
c05808
%cmake_build
c05808
c05808
c05808
%check
c05808
%ctest
c05808
c05808
c05808
%install
c05808
%cmake_install
c05808
find %{buildroot} -name '*.la' -delete
c05808
c05808
c05808
%files
c05808
%{_bindir}/capnp
c05808
%{_bindir}/capnpc
c05808
%{_bindir}/capnpc-c++
c05808
%{_bindir}/capnpc-capnp
c05808
c05808
%files libs
c05808
%license LICENSE.txt
c05808
%{_libdir}/*.so.*
c05808
c05808
%files devel
c05808
%{_includedir}/*
c05808
%{_libdir}/*.so
c05808
%{_libdir}/pkgconfig/*.pc
c05808
%{_libdir}/cmake/CapnProto/
c05808
c05808
%changelog
c05808
* Thu May 25 2023 Christian Glombek <cglombek@redhat.com> - 0.10.4-1
c05808
- Update to version 0.10.4
c05808
- Drop backported patches
c05808
c05808
* Tue Feb 28 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.10.3-3
c05808
- Backport upstream fix for missing headers for g++13
c05808
- Backport upstream fix for operator!= removal for C++20
c05808
c05808
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.3-2
c05808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
c05808
c05808
* Fri Dec 02 2022 Fabio Valentini <decathorpe@gmail.com> - 0.10.3-1
c05808
- Update to version 0.10.3
c05808
- Fixes RHBZ#2149787
c05808
- Addresses CVE-2022-46149
c05808
c05808
* Tue Nov 29 2022 Neal Gompa <ngompa@fedoraproject.org> - 0.10.2-1
c05808
- Rebase to 0.10.2
c05808
- Drop backported patch
c05808
c05808
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-3
c05808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
c05808
c05808
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
c05808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
c05808
c05808
* Tue Dec 21 2021 Neal Gompa <ngompa@fedoraproject.org> - 0.9.1-1
c05808
- Rebase to 0.9.1
c05808
- Add patch to fix running tests
c05808
- Disable flaky/broken test per upstream guidance
c05808
c05808
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-4
c05808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
c05808
c05808
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-3
c05808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c05808
c05808
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
c05808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c05808
c05808
* Sat Jul 18 2020 Neal Gompa <ngompa13@gmail.com> - 0.8.0-1
c05808
- Update to 0.8.0 (#1827443)
c05808
- Drop backported patches
c05808
c05808
* Thu Mar 12 2020 Neal Gompa <ngompa13@gmail.com> - 0.7.0-6
c05808
- Backport patch to fix aliasing violation breaking builds on GCC 10 on ARM (#1807872)
c05808
- Disable "DiskFile holes" test to stop build failures
c05808
c05808
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-5
c05808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c05808
c05808
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-4
c05808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c05808
c05808
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-3
c05808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c05808
c05808
* Wed Jan 23 2019 Björn Esser <besser82@fedoraproject.org> - 0.7.0-2
c05808
- Append curdir to CMake invokation. (#1668512)
c05808
c05808
* Sun Sep 23 2018 Neal Gompa <ngompa13@gmail.com> - 0.7.0-1
c05808
- Update to 0.7.0
c05808
- Drop upstreamed patches
c05808
- Drop obsolete ldconfig scriptlets
c05808
c05808
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-8
c05808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c05808
c05808
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-7
c05808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c05808
c05808
* Sun Aug 06 2017 Björn Esser <besser82@fedoraproject.org> - 0.6.1-6
c05808
- Rebuilt for AutoReq cmake-filesystem
c05808
c05808
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-5
c05808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c05808
c05808
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-4
c05808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c05808
c05808
* Fri Jun 09 2017 Neal Gompa <ngompa13@gmail.com> - 0.6.1-3
c05808
- Update patch based on upstream feedback
c05808
c05808
* Fri Jun 09 2017 Neal Gompa <ngompa13@gmail.com> - 0.6.1-2
c05808
- Adjust soversion patch to maintain binary compat across patch versions
c05808
c05808
* Fri Jun 09 2017 Neal Gompa <ngompa13@gmail.com> - 0.6.1-1
c05808
- Update to 0.6.1
c05808
c05808
* Mon Feb 27 2017 Neal Gompa <ngompa13@gmail.com> - 0.5.3-4
c05808
- Add patch to fix FTBFS with GCC 7 (#1423291)
c05808
c05808
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-3
c05808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c05808
c05808
* Thu Apr 28 2016 Neal Gompa <ngompa13@gmail.com> - 0.5.3-2
c05808
- Add patches to fix ppc builds
c05808
c05808
* Tue Apr 26 2016 Neal Gompa <ngompa13@gmail.com> - 0.5.3-1
c05808
- Initial packaging