1 |
%define name zeromq |
2 |
%define version 2.0.10 |
3 |
%define release %mkrel 1 |
4 |
|
5 |
%define libname_orig lib%{name} |
6 |
%define major 0 |
7 |
%define libname %mklibname %{name} %{major} |
8 |
%define develname %mklibname %{name} -d |
9 |
|
10 |
Summary: Software library for fast, message-based applications |
11 |
Name: %{name} |
12 |
Version: %{version} |
13 |
Release: %{release} |
14 |
Source0: http://www.zeromq.org/local--files/area:download/%{name}-%{version}.tar.gz |
15 |
License: LGPLv3+ |
16 |
Group: Development/Other |
17 |
Url: http://www.zeromq.org |
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
19 |
BuildRequires: glib2-devel |
20 |
BuildRequires: libuuid-devel |
21 |
|
22 |
%description |
23 |
The 0MQ lightweight messaging kernel is a library which extends the |
24 |
standard socket interfaces with features traditionally provided by |
25 |
specialized messaging middle-ware products. 0MQ sockets provide an |
26 |
abstraction of asynchronous message queues, multiple messaging |
27 |
patterns, message filtering (subscriptions), seamless access to |
28 |
multiple transport protocols and more. |
29 |
|
30 |
%package -n %{libname} |
31 |
Summary: Software library for fast, message-based applications |
32 |
Group: System/Libraries |
33 |
Provides: %{libname_orig} = %{version}-%{release} |
34 |
|
35 |
%description -n %{libname} |
36 |
The 0MQ lightweight messaging kernel is a library which extends the |
37 |
standard socket interfaces with features traditionally provided by |
38 |
specialized messaging middle-ware products. 0MQ sockets provide an |
39 |
abstraction of asynchronous message queues, multiple messaging |
40 |
patterns, message filtering (subscriptions), seamless access to |
41 |
multiple transport protocols and more. |
42 |
|
43 |
This package contains the ${name} shared library. |
44 |
|
45 |
%package -n %{develname} |
46 |
Summary: Development files for %{name} |
47 |
Group: Development/C |
48 |
Requires: %{libname} = %{version}-%{release} |
49 |
Provides: %{name}-devel = %{version}-%{release} |
50 |
Provides: %{libname_orig}-devel = %{version}-%{release} |
51 |
|
52 |
%description -n %{develname} |
53 |
The 0MQ lightweight messaging kernel is a library which extends the |
54 |
standard socket interfaces with features traditionally provided by |
55 |
specialized messaging middle-ware products. 0MQ sockets provide an |
56 |
abstraction of asynchronous message queues, multiple messaging |
57 |
patterns, message filtering (subscriptions), seamless access to |
58 |
multiple transport protocols and more. |
59 |
|
60 |
This package contains the libraries and header files needed to develop |
61 |
applications that use %{name}. |
62 |
|
63 |
%package -n %{name}-utils |
64 |
Summary: Utilities for %{name} |
65 |
Group: Development/Other |
66 |
Requires: %{libname} = %{version}-%{release} |
67 |
|
68 |
%description -n %{name}-utils |
69 |
The 0MQ lightweight messaging kernel is a library which extends the |
70 |
standard socket interfaces with features traditionally provided by |
71 |
specialized messaging middle-ware products. 0MQ sockets provide an |
72 |
abstraction of asynchronous message queues, multiple messaging |
73 |
patterns, message filtering (subscriptions), seamless access to |
74 |
multiple transport protocols and more. |
75 |
|
76 |
This package contains %{name}-related utilities. |
77 |
|
78 |
%prep |
79 |
%setup -q |
80 |
|
81 |
%build |
82 |
%configure2_5x |
83 |
%make |
84 |
|
85 |
%install |
86 |
%__rm -rf %{buildroot} |
87 |
%makeinstall |
88 |
|
89 |
%clean |
90 |
%__rm -rf %{buildroot} |
91 |
|
92 |
%files -n %{libname} |
93 |
%defattr(-,root,root) |
94 |
%doc AUTHORS ChangeLog COPYING* NEWS README |
95 |
%{_libdir}/libzmq.so.* |
96 |
|
97 |
%files -n %{develname} |
98 |
%defattr(-,root,root) |
99 |
%{_libdir}/libzmq.a |
100 |
%{_libdir}/libzmq.la |
101 |
%{_libdir}/libzmq.so |
102 |
%{_libdir}/pkgconfig/libzmq.pc |
103 |
%{_includedir}/zmq* |
104 |
%{_mandir}/man3/zmq* |
105 |
%{_mandir}/man7/zmq* |
106 |
|
107 |
%files -n %{name}-utils |
108 |
%defattr(-,root,root) |
109 |
%{_bindir}/zmq* |
110 |
%{_mandir}/man1/zmq* |
111 |
|
112 |
|