3 %bcond_with tests # build without tests
5 Summary: The C++ Network Library Project
9 License: Boost Software License
11 Source0: https://github.com/cpp-netlib/cpp-netlib/archive/%{name}-%{version}-final.tar.gz
12 # Source0-md5: 72f3653254935038876b867417de8c74
13 URL: http://cpp-netlib.org/
14 BuildRequires: boost-devel
16 BuildRequires: libstdc++-devel
17 BuildRequires: openssl-devel
18 BuildRequires: rpmbuild(macros) >= 1.583
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 # Unresolved symbols boost::system::system_category(), boost::system::generic_category()
22 %define skip_post_check_so libcppnetlib-client-connections.so.0.11.0
25 The project aims to build upon the latest C++ standard (currently
26 C++11) to provide easy to use libraries for network programming. We
27 use the latest compiler versions and features with an eye on pushing
28 the boundaries on leveraging what's available in C++.
30 Currently the library contains an HTTP client and server
31 implementation, a stand-alone URI library, a network message
32 framework, and some concurrency tools.
35 Summary: Header files for %{name} library
36 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
42 Header files for %{name} library.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki %{name}.
49 mv cpp-netlib-cpp-netlib-%{version}-final/* .
55 -DINSTALL_CMAKE_DIR=%{_datadir}/cmake/Modules \
58 %{?with_tests:%{__make} test}
61 rm -rf $RPM_BUILD_ROOT
62 %{__make} -C build install \
63 DESTDIR=$RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
68 %post -p /sbin/ldconfig
69 %postun -p /sbin/ldconfig
72 %defattr(644,root,root,755)
73 %doc README.rst RATIONALE.txt LICENSE_1_0.txt
74 %attr(755,root,root) %{_libdir}/libcppnetlib-client-connections.so.*.*.*
75 %ghost %{_libdir}/libcppnetlib-client-connections.so.0
76 %attr(755,root,root) %{_libdir}/libcppnetlib-server-parsers.so.*.*.*
77 %ghost %{_libdir}/libcppnetlib-server-parsers.so.0
78 %attr(755,root,root) %{_libdir}/libcppnetlib-uri.so.*.*.*
79 %ghost %{_libdir}/libcppnetlib-uri.so.0
82 %defattr(644,root,root,755)
83 %{_libdir}/libcppnetlib-client-connections.so
84 %{_libdir}/libcppnetlib-server-parsers.so
85 %{_libdir}/libcppnetlib-uri.so
86 %{_includedir}/boost/*.hpp
87 %{_includedir}/boost/network
88 %{_datadir}/cmake/Modules/cppnetlibConfig.cmake
89 %{_datadir}/cmake/Modules/cppnetlibConfigVersion.cmake
90 %{_datadir}/cmake/Modules/cppnetlibTargets-pld.cmake
91 %{_datadir}/cmake/Modules/cppnetlibTargets.cmake