3 %bcond_without static_libs # don't build static libraries
5 Summary: High-performance implementation of several "scalability protocols"
6 Summary(pl.UTF-8): Wydajna implementacja kilku "protokołów skalowalności"
12 #Source0Download: https://github.com/nanomsg/nanomsg/releases
13 Source0: https://github.com/nanomsg/nanomsg/archive/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: 272db464bac1339b6cea060dd63b22d4
15 Patch0: %{name}-nolibs.patch
16 URL: https://nanomsg.org/
17 BuildRequires: cmake >= 2.8.12
18 BuildRequires: ruby-asciidoctor
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 nanomsg library is a simple high-performance implementation of several
23 "scalability protocols". Scalability protocol's job is to define how
24 multiple applications communicate to form a single distributed
27 %description -l pl.UTF-8
28 Biblioteka nanomsg to prosta, wydajna implementacja kilku "protokołów
29 skalowalności". Zadaniem takiego protokołu jest określenie, jak wiele
30 aplikacji powinno się komunikować w celu stworzenia pojedynczej
31 aplikacji rozproszonej.
34 Summary: Header files for nanomsg library
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki nanomsg
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
40 Header files for nanomsg library.
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki nanomsg.
46 Summary: Static nanomsg library
47 Summary(pl.UTF-8): Statyczna biblioteka nanomsg
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
52 Static nanomsg library.
54 %description static -l pl.UTF-8
55 Statyczna biblioteka nanomsg.
62 %if %{with static_libs}
63 install -d build-static
67 -DCMAKE_INSTALL_LIDBIR=%{_lib}
76 -DCMAKE_INSTALL_LIDBIR=%{_lib}
81 rm -rf $RPM_BUILD_ROOT
83 %if %{with static_libs}
84 %{__make} -C build-static install \
85 DESTDIR=$RPM_BUILD_ROOT
88 %{__make} -C build install \
89 DESTDIR=$RPM_BUILD_ROOT
91 # HTML version of man pages (generated from the same asciidoc sources)
92 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/*.html
95 rm -rf $RPM_BUILD_ROOT
97 %post -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
101 %defattr(644,root,root,755)
102 %doc AUTHORS COPYING README.md SUPPORT
103 %attr(755,root,root) %{_bindir}/nanocat
104 %attr(755,root,root) %{_libdir}/libnanomsg.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/libnanomsg.so.5
106 %{_mandir}/man1/nanocat.1*
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libnanomsg.so
111 %{_includedir}/nanomsg
112 %{_pkgconfigdir}/nanomsg.pc
113 %{_libdir}/cmake/nanomsg-%{version}
114 %{_mandir}/man3/nn_*.3*
115 %{_mandir}/man7/nanomsg.7*
116 %{_mandir}/man7/nn_*.7*
118 %if %{with static_libs}
120 %defattr(644,root,root,755)
121 %{_libdir}/libnanomsg.a