Package cpprest: 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 | %def_enable snapshot %define _name cpprestsdk %define ver_major 2.10 %if_enabled snapshot #can't build on %ix86, see bottom of /usr/share/cmake/websocketpp-configVersion.cmake %def_without system_websocketpp %else # tarball doesn't contain websocketpp headers %def_with system_websocketpp %endif %def_disable check Name: cpprest Version: %ver_major.18 Release: alt1 Summary: C++ REST library Group: System/Libraries License: MIT Url: https://github.com/Microsoft/%_name %if_disabled snapshot Source: %url/archive/v%version/%_name-%version.tar.gz %else Source: %_name-%version.tar %endif BuildRequires: gcc-c++ cmake BuildRequires: boost-devel >= 1.55 boost-interprocess-devel boost-filesystem-devel BuildRequires: boost-asio-devel boost-locale-devel BuildRequires: pkgconfig(openssl) >= 1.0 %{?_with_system_websocketpp:BuildRequires: websocketpp-devel >= 0.4} BuildRequires: zlib-devel libbrotli-devel %description The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services. Also known as Casablanca. %package -n lib%name Summary: %summary Group: System/Libraries %description -n lib%name The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services. This package provides shared %name library. %package -n lib%name-devel Summary: Development files for %name Group: Development/C++ Provides: %name-devel = %version-%release Requires: lib%name = %version-%release Requires: libssl-devel %description -n lib%name-devel The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services. This package provides development files for %name library. %prep %setup -n %_name-%version # Remove bundled sources of websocketpp %{?_with_system_websocketpp:rm -r Release/libs} # Remove file ThirdPartyNotices.txt, which is associated to websocketpp rm -f ThirdPartyNotices.txt # fix libdir subst 's|\(DESTINATION \)lib|\1%_lib|' Release/src/CMakeLists.txt %build cd Release %add_optflags %optflags %(getconf LFS_CFLAGS) -Wl,--as-needed %cmake .. -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_DO_STRIP=OFF \ -DWERROR=OFF \ -DCPPREST_EXCLUDE_BROTLI=OFF \ -DCPPREST_EXPORT_DIR=cmake/%_name %cmake_build %install cd Release %cmakeinstall_std %check cd Release LD_LIBRARY_PATH=%buildroot/%_libdir %make -C BUILD test %files -n lib%name %_libdir/libcpprest.so.* %doc README.md license.txt %files -n lib%name-devel %_includedir/%name %_includedir/pplx %_libdir/libcpprest.so %_libdir/cmake/%_name/ %doc README.md %changelog * Fri Feb 05 2021 Yuri N. Sedunov <aris@altlinux.org> 2.10.18-alt1 - 2.10.18 * Tue Jan 12 2021 Yuri N. Sedunov <aris@altlinux.org> 2.10.17-alt1 - 2.10.17 * Thu May 07 2020 Yuri N. Sedunov <aris@altlinux.org> 2.10.16-alt1 - 2.10.16 * Tue Nov 12 2019 Aleksei Nikiforov <darktemplar@altlinux.org> 2.10.14-alt2 - Fixed build with boost-1.71.0. * Wed Jul 17 2019 Yuri N. Sedunov <aris@altlinux.org> 2.10.14-alt1 - 2.10.14 * Thu Apr 25 2019 Yuri N. Sedunov <aris@altlinux.org> 2.10.13-alt1 - 2.10.13 * Sun Mar 31 2019 Yuri N. Sedunov <aris@altlinux.org> 2.10.12-alt1 - updated to v2.10.12-2-g621f47a5 * Sun Feb 03 2019 Yuri N. Sedunov <aris@altlinux.org> 2.10.10-alt1 - 2.10.10 * Wed Jan 23 2019 Yuri N. Sedunov <aris@altlinux.org> 2.10.9-alt1 - 2.10.9 with bundled websocketpp * Mon Sep 17 2018 Yuri N. Sedunov <aris@altlinux.org> 2.10.6-alt1 - 2.10.6 * Thu Aug 30 2018 Yuri N. Sedunov <aris@altlinux.org> 2.10.5-alt2 - rebuilt with openssl-1.1 * Sun Aug 19 2018 Yuri N. Sedunov <aris@altlinux.org> 2.10.5-alt1 - 2.10.5 * Fri Aug 17 2018 Yuri N. Sedunov <aris@altlinux.org> 2.10.4-alt1 - 2.10.4 * Fri Aug 03 2018 Yuri N. Sedunov <aris@altlinux.org> 2.10.3-alt1 - 2.10.3 * Fri Jun 01 2018 Yuri N. Sedunov <aris@altlinux.org> 2.10.2-alt3 - rebuilt with boost-1.67 * Wed Apr 18 2018 Yuri N. Sedunov <aris@altlinux.org> 2.10.2-alt2 - rebuilt with boost-1.66 * Wed Feb 07 2018 Yuri N. Sedunov <aris@altlinux.org> 2.10.2-alt1 - 2.10.2 * Fri Jan 19 2018 Yuri N. Sedunov <aris@altlinux.org> 2.10.1-alt1 - first build for Sisyphus |