]>
Commit | Line | Data |
---|---|---|
a86c1f4a ER |
1 | # |
2 | # Conditional build: | |
de74f45f JB |
3 | %bcond_with kerberos5 # GSSAPI client support [expects MIT Kerberos] |
4 | %bcond_with norm # NORM extension | |
8c29375b | 5 | %bcond_without pgm # PGM extension (using OpenPGM library) |
a86c1f4a ER |
6 | %bcond_without tests # build without tests |
7 | ||
970e18a4 | 8 | Summary: 0MQ - Zero Message Queue |
a86c1f4a | 9 | Summary(en.UTF-8): ØMQ - Zero Message Queue |
970e18a4 | 10 | Summary(pl.UTF-8): ØMQ (Zero Message Queue) - kolejka komunikatów |
ee66aa70 | 11 | Name: zeromq |
9b67e65f | 12 | Version: 4.1.6 |
56fc2e1b | 13 | Release: 1 |
de74f45f | 14 | License: LGPL v3+ with linking exception |
ee66aa70 | 15 | Group: Libraries |
0ed0f96d | 16 | Source0: https://github.com/zeromq/zeromq4-1/releases/download/v%{version}/%{name}-%{version}.tar.gz |
9b67e65f AM |
17 | # Source0-md5: c89db4dbc0b90c34c9f4983cbff6d321 |
18 | Source1: https://raw.githubusercontent.com/zeromq/cppzmq/master/zmq.hpp | |
19 | # Source1-md5: c732ee5409f8419323185d8aa44bc54c | |
ee66aa70 | 20 | URL: http://www.zeromq.org/ |
970e18a4 JB |
21 | BuildRequires: asciidoc |
22 | BuildRequires: autoconf >= 2.61 | |
ee66aa70 | 23 | BuildRequires: automake |
de74f45f | 24 | %{?with_krb5:BuildRequires: krb5-devel} |
2bed0049 | 25 | BuildRequires: libsodium-devel |
e5356c10 | 26 | BuildRequires: libstdc++-devel |
27 | BuildRequires: libtool | |
28 | BuildRequires: libuuid-devel | |
2bed0049 | 29 | %{?with_pgm:BuildRequires: libpgm-devel >= 5.1} |
de74f45f | 30 | %{?with_norm:BuildRequires: norm-devel} |
e5356c10 | 31 | BuildRequires: pkgconfig |
8c29375b | 32 | BuildRequires: sed >= 4.0 |
970e18a4 | 33 | BuildRequires: xmlto |
ee66aa70 | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
970e18a4 | 37 | The 0MQ lightweight messaging kernel is a library which extends the |
a86c1f4a | 38 | standard socket interfaces with features traditionally provided by |
970e18a4 | 39 | specialised messaging middleware products. 0MQ sockets provide an |
a86c1f4a ER |
40 | abstraction of asynchronous message queues, multiple messaging |
41 | patterns, message filtering (subscriptions), seamless access to | |
42 | multiple transport protocols and more. | |
43 | ||
44 | %description -l en.UTF-8 | |
e24289c9 KK |
45 | The ØMQ lightweight messaging kernel is a library which extends the |
46 | standard socket interfaces with features traditionally provided by | |
47 | specialised messaging middleware products. ØMQ sockets provide an | |
48 | abstraction of asynchronous message queues, multiple messaging | |
49 | patterns, message filtering (subscriptions), seamless access to | |
50 | multiple transport protocols and more. | |
ee66aa70 | 51 | |
970e18a4 JB |
52 | %description -l pl.UTF-8 |
53 | Lekkie jądro przekazywania komunikatów ØMQ to biblioteka rozszerzająca | |
54 | standardowe interfejsy gniazd o możliwości zwykle udostępniane przez | |
55 | specjalizowane produkty warstwy pośredniej do przekazywania | |
56 | komunikatów. Gniazda ØMQ udostępniają abstrakcję asynchronicznych | |
57 | kolejek komunikatów, wiele wzorców przekazywania komunikatów, | |
58 | filtrowanie komunikatów (subskrypce), przezroczysty dostęp do wielu | |
59 | protokołów transportowych i wiele innych możliwości. | |
60 | ||
ee66aa70 | 61 | %package devel |
970e18a4 | 62 | Summary: 0MQ library header files for development |
a86c1f4a | 63 | Summary(en.UTF-8): ØMQ library header files for development |
e24289c9 | 64 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ØMQ |
ee66aa70 | 65 | Group: Development/Libraries |
a86c1f4a | 66 | Requires: %{name} = %{version}-%{release} |
8c29375b | 67 | Requires: libstdc++-devel |
ee66aa70 | 68 | Obsoletes: zeromq-pthreads-devel |
69 | ||
70 | %description devel | |
970e18a4 | 71 | 0MQ library header files for development. |
ee66aa70 | 72 | |
a86c1f4a ER |
73 | %description devel -l en.UTF-8 |
74 | ØMQ library header files for development. | |
75 | ||
ee66aa70 | 76 | %description devel -l pl.UTF-8 |
e24289c9 | 77 | Pliki nagłówkowe biblioteki ØMQ. |
ee66aa70 | 78 | |
79 | %package static | |
970e18a4 | 80 | Summary: Static 0MQ library |
a86c1f4a | 81 | Summary(en.UTF-8): Static ØMQ library |
e24289c9 | 82 | Summary(pl.UTF-8): Statyczna biblioteka ØMQ |
ee66aa70 | 83 | Group: Development/Libraries |
a86c1f4a | 84 | Requires: %{name}-devel = %{version}-%{release} |
ee66aa70 | 85 | Obsoletes: zeromq-pthreads-static |
86 | ||
87 | %description static | |
970e18a4 | 88 | Static 0MQ library. |
a86c1f4a ER |
89 | |
90 | %description static -l en.UTF-8 | |
e24289c9 | 91 | Static ØMQ library. |
ee66aa70 | 92 | |
93 | %description static -l pl.UTF-8 | |
e24289c9 | 94 | Statyczna biblioteka ØMQ. |
ee66aa70 | 95 | |
9b67e65f AM |
96 | %package -n cppzmq-devel |
97 | Summary: Development files for cppzmq | |
c2b00f6d | 98 | Summary(pl.UTF-8): Pliki programistyczne cppzmq |
9b67e65f AM |
99 | Group: Development/Libraries |
100 | License: MIT | |
101 | Requires: %{name}-devel = %{version}-%{release} | |
102 | ||
103 | %description -n cppzmq-devel | |
c2b00f6d JB |
104 | The cppzmq-devel package contains the header file for developing |
105 | applications that use the C++ interface for 0MQ. | |
106 | ||
107 | %description -n cppzmq-devel -l pl.UTF-8 | |
108 | Ten pakiet zawiera plik nagłówkowy do tworzenia aplikacji | |
109 | wykorzystujących interfejs C++ do ØMQ. | |
9b67e65f | 110 | |
ee66aa70 | 111 | %prep |
112 | %setup -q | |
113 | ||
de74f45f JB |
114 | %{__sed} -ne '/SPECIAL EXCEPTION GRANTED/,$p' COPYING.LESSER > COPYING.exception |
115 | ||
ee66aa70 | 116 | %build |
1b0270ac | 117 | %{__libtoolize} |
6f214ed5 | 118 | %{__aclocal} |
ee66aa70 | 119 | %{__autoconf} |
1b0270ac | 120 | %{__automake} |
6f214ed5 | 121 | %{__autoheader} |
970e18a4 | 122 | %configure \ |
8c29375b | 123 | --disable-silent-rules \ |
de74f45f JB |
124 | %{?with_kerberos5:--with-libgssapi_krb5} \ |
125 | %{?with_norm:--with-norm} \ | |
126 | %{?with_pgm:--with-pgm} | |
ee66aa70 | 127 | %{__make} |
128 | ||
b70f87eb | 129 | %if %{with tests} |
74550f58 | 130 | %{__make} check -j1 |
b70f87eb AM |
131 | %endif |
132 | ||
ee66aa70 | 133 | %install |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %{__make} install \ | |
137 | DESTDIR=$RPM_BUILD_ROOT | |
138 | ||
9b67e65f AM |
139 | install %{SOURCE1} $RPM_BUILD_ROOT%{_includedir} |
140 | ||
970e18a4 JB |
141 | # obsoleted by pkg-config |
142 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
6f214ed5 | 143 | |
ee66aa70 | 144 | %clean |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %post -p /sbin/ldconfig | |
148 | %postun -p /sbin/ldconfig | |
149 | ||
150 | %files | |
151 | %defattr(644,root,root,755) | |
de74f45f | 152 | %doc AUTHORS COPYING.exception ChangeLog MAINTAINERS NEWS |
2bed0049 | 153 | %attr(755,root,root) %{_bindir}/curve_keygen |
ee66aa70 | 154 | %attr(755,root,root) %{_libdir}/libzmq.so.*.*.* |
de74f45f | 155 | %attr(755,root,root) %ghost %{_libdir}/libzmq.so.5 |
ee66aa70 | 156 | |
157 | %files devel | |
158 | %defattr(644,root,root,755) | |
970e18a4 | 159 | %attr(755,root,root) %{_libdir}/libzmq.so |
ee66aa70 | 160 | %{_includedir}/zmq.h |
1b0270ac | 161 | %{_includedir}/zmq_utils.h |
ee66aa70 | 162 | %{_pkgconfigdir}/libzmq.pc |
6f214ed5 ER |
163 | %{_mandir}/man3/zmq*.3* |
164 | %{_mandir}/man7/zmq*.7* | |
ee66aa70 | 165 | |
166 | %files static | |
167 | %defattr(644,root,root,755) | |
6f214ed5 | 168 | %{_libdir}/libzmq.a |
9b67e65f AM |
169 | |
170 | %files -n cppzmq-devel | |
171 | %defattr(644,root,root,755) | |
172 | %{_includedir}/zmq.hpp |