/
zeromq.spec
94 lines (79 loc) · 2.78 KB
/
zeromq.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
%define major 5
%define libname %mklibname zmq %{major}
%define devname %mklibname zmq -d
%define beta %nil
Summary: Software library for fast, message-based applications
Name: zeromq
Version: 4.3.2
%if "%{beta}" != ""
Release: 1
Source0: http://download.zeromq.org/%{name}-%{version}-%{beta}.tar.gz
%else
Release: 1
Source0: https://github.com/zeromq/libzmq/releases/download/v%{version}/zeromq-%{version}.tar.gz
%endif
License: LGPLv3+
Group: Development/Other
Url: http://www.zeromq.org
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(uuid)
BuildRequires: pkgconfig(openpgm-5.2)
BuildRequires: pkgconfig(libsodium)
BuildRequires: python
# For man page generation
BuildRequires: xmlto asciidoc
%description
The 0MQ lightweight messaging kernel is a library which extends the
standard socket interfaces with features traditionally provided by
specialized messaging middle-ware products. 0MQ sockets provide an
abstraction of asynchronous message queues, multiple messaging
patterns, message filtering (subscriptions), seamless access to
multiple transport protocols and more.
%package -n %{libname}
Summary: Software library for fast, message-based applications
Group: System/Libraries
Obsoletes: %{name}-utils
%description -n %{libname}
The 0MQ lightweight messaging kernel is a library which extends the
standard socket interfaces with features traditionally provided by
specialized messaging middle-ware products. 0MQ sockets provide an
abstraction of asynchronous message queues, multiple messaging
patterns, message filtering (subscriptions), seamless access to
multiple transport protocols and more.
This package contains the %{name} shared library.
%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname} = %{EVRD}
Provides: %{name}-devel = %{EVRD}
%rename %{_lib}zeromq-devel
%description -n %{devname}
The 0MQ lightweight messaging kernel is a library which extends the
standard socket interfaces with features traditionally provided by
specialized messaging middle-ware products. 0MQ sockets provide an
abstraction of asynchronous message queues, multiple messaging
patterns, message filtering (subscriptions), seamless access to
multiple transport protocols and more.
This package contains the libraries and header files needed to develop
applications that use %{name}.
%prep
%setup -q
autoreconf -fiv
%build
# Forcing gcc because of __attribute__(alloc_size)
CXXFLAGS="%{optflags} -Wno-error=gnu-statement-expression" %configure \
--with-system-pgm \
--with-libsodium
%make
%install
%makeinstall_std
%files -n %{libname}
%{_libdir}/libzmq.so.%{major}*
%files -n %{devname}
%doc AUTHORS ChangeLog COPYING* NEWS
%{_bindir}/curve_keygen
%{_libdir}/libzmq.so
%{_libdir}/pkgconfig/libzmq.pc
%{_includedir}/zmq*
%{_mandir}/man3/zmq*
%{_mandir}/man7/zmq*