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