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/
15 BuildRequires: libstdc++-devel
16 BuildRequires: rpmbuild(macros) >= 1.583
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 # Unresolved symbols boost::system::system_category(), boost::system::generic_category()
20 %define skip_post_check_so libcppnetlib-client-connections.so.0.11.0
23 The project aims to build upon the latest C++ standard (currently
24 C++11) to provide easy to use libraries for network programming. We
25 use the latest compiler versions and features with an eye on pushing
26 the boundaries on leveraging what's available in C++.
28 Currently the library contains an HTTP client and server
29 implementation, a stand-alone URI library, a network message
30 framework, and some concurrency tools.
33 Summary: Header files for %{name} library
34 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
40 Header files for %{name} library.
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki %{name}.
47 mv cpp-netlib-cpp-netlib-%{version}-final/* .
53 -DINSTALL_CMAKE_DIR=%{_datadir}/cmake/Modules \
56 %{?with_tests:%{__make} test}
59 rm -rf $RPM_BUILD_ROOT
60 %{__make} -C build install \
61 DESTDIR=$RPM_BUILD_ROOT
64 rm -rf $RPM_BUILD_ROOT
66 %post -p /sbin/ldconfig
67 %postun -p /sbin/ldconfig
70 %defattr(644,root,root,755)
71 %doc README.rst RATIONALE.txt LICENSE_1_0.txt
72 %attr(755,root,root) %{_libdir}/libcppnetlib-client-connections.so.*.*.*
73 %ghost %{_libdir}/libcppnetlib-client-connections.so.0
74 %attr(755,root,root) %{_libdir}/libcppnetlib-server-parsers.so.*.*.*
75 %ghost %{_libdir}/libcppnetlib-server-parsers.so.0
76 %attr(755,root,root) %{_libdir}/libcppnetlib-uri.so.*.*.*
77 %ghost %{_libdir}/libcppnetlib-uri.so.0
80 %defattr(644,root,root,755)
81 %{_libdir}/libcppnetlib-client-connections.so
82 %{_libdir}/libcppnetlib-server-parsers.so
83 %{_libdir}/libcppnetlib-uri.so
84 %{_includedir}/boost/*.hpp
85 %{_includedir}/boost/network
86 %{_datadir}/cmake/Modules/cppnetlibConfig.cmake
87 %{_datadir}/cmake/Modules/cppnetlibConfigVersion.cmake
88 %{_datadir}/cmake/Modules/cppnetlibTargets-pld.cmake
89 %{_datadir}/cmake/Modules/cppnetlibTargets.cmake