1Name:          zeromq
2Version:       @PACKAGE_VERSION@
3Release:       1%{?dist}
4Summary:       The ZeroMQ messaging library
5Group:         Applications/Internet
6License:       LGPLv3+
7URL:           http://www.zeromq.org/
8Source:        http://download.zeromq.org/%{name}-%{version}.tar.gz
9Prefix:        %{_prefix}
10Buildroot:     %{_tmppath}/%{name}-%{version}-%{release}-root
11BuildRequires: gcc, make, gcc-c++, libstdc++-devel
12Requires:      libstdc++
13
14%if %{?rhel}%{!?rhel:0} >= 6
15BuildRequires: libuuid-devel
16Requires:      libuuid
17%elseif %{?rhel}%{!?rhel:0} >= 5
18BuildRequires: e2fsprogs-devel
19Requires:      e2fsprogs
20%else
21BuildRequires: uuid-devel
22Requires:      uuid
23%endif
24
25# Build pgm only on supported archs
26%ifarch pentium3 pentium4 athlon i386 i486 i586 i686 x86_64
27BuildRequires: glib2-devel
28Requires: glib2
29%endif
30
31%description
32The 0MQ lightweight messaging kernel is a library which extends the
33standard socket interfaces with features traditionally provided by
34specialised messaging middleware products. 0MQ sockets provide an
35abstraction of asynchronous message queues, multiple messaging
36patterns, message filtering (subscriptions), seamless access to
37multiple transport protocols and more.
38
39This package contains the ZeroMQ shared library.
40
41%package devel
42Summary:  Development files and static library for the ZeroMQ library
43Group:    Development/Libraries
44Requires: %{name} = %{version}-%{release}, pkgconfig
45
46%description devel
47The 0MQ lightweight messaging kernel is a library which extends the
48standard socket interfaces with features traditionally provided by
49specialised messaging middleware products. 0MQ sockets provide an
50abstraction of asynchronous message queues, multiple messaging
51patterns, message filtering (subscriptions), seamless access to
52multiple transport protocols and more.
53
54This package contains ZeroMQ related development libraries and header files.
55
56%prep
57%setup -q
58
59%build
60%ifarch pentium3 pentium4 athlon i386 i486 i586 i686 x86_64
61  %configure --with-pgm
62%else
63  %configure
64%endif
65
66%{__make} %{?_smp_mflags}
67
68%install
69[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
70
71# Install the package to build area
72%{__make} check
73%makeinstall
74
75%post
76/sbin/ldconfig
77
78%postun
79/sbin/ldconfig
80
81%clean
82[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
83
84%files
85%defattr(-,root,root,-)
86
87# docs in the main package
88%doc AUTHORS ChangeLog COPYING COPYING.LESSER NEWS README
89
90# libraries
91%{_libdir}/libzmq.so.1
92%{_libdir}/libzmq.so.1.0.0
93
94%{_mandir}/man7/zmq.7.gz
95
96%files devel
97%defattr(-,root,root,-)
98%{_includedir}/zmq.h
99%{_includedir}/zmq.hpp
100%{_includedir}/zmq_utils.h
101
102%{_libdir}/libzmq.la
103%{_libdir}/libzmq.a
104%{_libdir}/pkgconfig/libzmq.pc
105%{_libdir}/libzmq.so
106
107%{_mandir}/man3/zmq_bind.3.gz
108%{_mandir}/man3/zmq_close.3.gz
109%{_mandir}/man3/zmq_connect.3.gz
110%{_mandir}/man3/zmq_errno.3.gz
111%{_mandir}/man3/zmq_device.3.gz
112%{_mandir}/man3/zmq_getsockopt.3.gz
113%{_mandir}/man3/zmq_init.3.gz
114%{_mandir}/man3/zmq_msg_close.3.gz
115%{_mandir}/man3/zmq_msg_copy.3.gz
116%{_mandir}/man3/zmq_msg_data.3.gz
117%{_mandir}/man3/zmq_msg_init.3.gz
118%{_mandir}/man3/zmq_msg_init_data.3.gz
119%{_mandir}/man3/zmq_msg_init_size.3.gz
120%{_mandir}/man3/zmq_msg_move.3.gz
121%{_mandir}/man3/zmq_msg_size.3.gz
122%{_mandir}/man3/zmq_poll.3.gz
123%{_mandir}/man3/zmq_recv.3.gz
124%{_mandir}/man3/zmq_send.3.gz
125%{_mandir}/man3/zmq_setsockopt.3.gz
126%{_mandir}/man3/zmq_socket.3.gz
127%{_mandir}/man3/zmq_strerror.3.gz
128%{_mandir}/man3/zmq_term.3.gz
129%{_mandir}/man3/zmq_version.3.gz
130%{_mandir}/man7/zmq_cpp.7.gz
131%{_mandir}/man7/zmq_epgm.7.gz
132%{_mandir}/man7/zmq_inproc.7.gz
133%{_mandir}/man7/zmq_ipc.7.gz
134%{_mandir}/man7/zmq_pgm.7.gz
135%{_mandir}/man7/zmq_tcp.7.gz
136
137%changelog
138* Sat Apr 10 2010 Mikko Koppanen <mkoppanen@php.net> 2.0.7-1
139- Initial packaging
140