zeromq.spec.in 3.72 KB
Newer Older
Mikko Koppanen's avatar
Mikko Koppanen committed
1 2 3
Name:          zeromq
Version:       @PACKAGE_VERSION@
Release:       1%{?dist}
Martin Lucina's avatar
Martin Lucina committed
4
Summary:       The ZeroMQ messaging library
Mikko Koppanen's avatar
Mikko Koppanen committed
5 6 7
Group:         Applications/Internet
License:       LGPLv3+
URL:           http://www.zeromq.org/
8
Source:        http://download.zeromq.org/%{name}-%{version}.tar.gz
Mikko Koppanen's avatar
Mikko Koppanen committed
9 10
Prefix:        %{_prefix}
Buildroot:     %{_tmppath}/%{name}-%{version}-%{release}-root
11 12 13
BuildRequires: gcc, make, gcc-c++, libstdc++-devel
Requires:      libstdc++

14
%if %{?rhel}%{!?rhel:0} >= 6
15 16 17 18 19
BuildRequires: libuuid-devel
Requires:      libuuid
%elseif %{?rhel}%{!?rhel:0} >= 5
BuildRequires: e2fsprogs-devel
Requires:      e2fsprogs
20
%else
21 22
BuildRequires: uuid-devel
Requires:      uuid
23
%endif
Mikko Koppanen's avatar
Mikko Koppanen committed
24 25 26

# Build pgm only on supported archs
%ifarch pentium3 pentium4 athlon i386 i486 i586 i686 x86_64
27
BuildRequires: python, perl
Mikko Koppanen's avatar
Mikko Koppanen committed
28 29 30
%endif

%description
Martin Lucina's avatar
Martin Lucina committed
31 32 33 34 35 36 37 38
The 0MQ lightweight messaging kernel is a library which extends the
standard socket interfaces with features traditionally provided by
specialised messaging middleware 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 ZeroMQ shared library.
Mikko Koppanen's avatar
Mikko Koppanen committed
39 40

%package devel
Martin Lucina's avatar
Martin Lucina committed
41
Summary:  Development files and static library for the ZeroMQ library
Mikko Koppanen's avatar
Mikko Koppanen committed
42 43 44 45
Group:    Development/Libraries
Requires: %{name} = %{version}-%{release}, pkgconfig

%description devel
Martin Lucina's avatar
Martin Lucina committed
46 47 48 49 50 51
The 0MQ lightweight messaging kernel is a library which extends the
standard socket interfaces with features traditionally provided by
specialised messaging middleware products. 0MQ sockets provide an
abstraction of asynchronous message queues, multiple messaging
patterns, message filtering (subscriptions), seamless access to
multiple transport protocols and more.
Mikko Koppanen's avatar
Mikko Koppanen committed
52

Martin Lucina's avatar
Martin Lucina committed
53
This package contains ZeroMQ related development libraries and header files.
Mikko Koppanen's avatar
Mikko Koppanen committed
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70

%prep
%setup -q

%build
%ifarch pentium3 pentium4 athlon i386 i486 i586 i686 x86_64
  %configure --with-pgm
%else
  %configure
%endif

%{__make} %{?_smp_mflags}

%install
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}

# Install the package to build area
71
%{__make} check
Mikko Koppanen's avatar
Mikko Koppanen committed
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
%makeinstall

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)

# docs in the main package
%doc AUTHORS ChangeLog COPYING COPYING.LESSER NEWS README

# libraries
90 91
%{_libdir}/libzmq.so.1
%{_libdir}/libzmq.so.1.0.0
Mikko Koppanen's avatar
Mikko Koppanen committed
92 93 94 95 96 97

%{_mandir}/man7/zmq.7.gz

%files devel
%defattr(-,root,root,-)
%{_includedir}/zmq.h
98
%{_includedir}/zmq_utils.h
Mikko Koppanen's avatar
Mikko Koppanen committed
99 100 101 102 103 104 105 106 107

%{_libdir}/libzmq.la
%{_libdir}/libzmq.a
%{_libdir}/pkgconfig/libzmq.pc
%{_libdir}/libzmq.so

%{_mandir}/man3/zmq_bind.3.gz
%{_mandir}/man3/zmq_close.3.gz
%{_mandir}/man3/zmq_connect.3.gz
108 109
%{_mandir}/man3/zmq_errno.3.gz
%{_mandir}/man3/zmq_getsockopt.3.gz
Mikko Koppanen's avatar
Mikko Koppanen committed
110 111 112 113 114 115 116 117 118 119 120
%{_mandir}/man3/zmq_init.3.gz
%{_mandir}/man3/zmq_msg_close.3.gz
%{_mandir}/man3/zmq_msg_copy.3.gz
%{_mandir}/man3/zmq_msg_data.3.gz
%{_mandir}/man3/zmq_msg_init.3.gz
%{_mandir}/man3/zmq_msg_init_data.3.gz
%{_mandir}/man3/zmq_msg_init_size.3.gz
%{_mandir}/man3/zmq_msg_move.3.gz
%{_mandir}/man3/zmq_msg_size.3.gz
%{_mandir}/man3/zmq_poll.3.gz
%{_mandir}/man3/zmq_recv.3.gz
121
%{_mandir}/man3/zmq_recvmsg.3.gz
Mikko Koppanen's avatar
Mikko Koppanen committed
122
%{_mandir}/man3/zmq_send.3.gz
123
%{_mandir}/man3/zmq_sendmsg.3.gz
Mikko Koppanen's avatar
Mikko Koppanen committed
124 125 126 127 128 129 130 131 132 133 134 135
%{_mandir}/man3/zmq_setsockopt.3.gz
%{_mandir}/man3/zmq_socket.3.gz
%{_mandir}/man3/zmq_strerror.3.gz
%{_mandir}/man3/zmq_term.3.gz
%{_mandir}/man3/zmq_version.3.gz
%{_mandir}/man7/zmq_epgm.7.gz
%{_mandir}/man7/zmq_inproc.7.gz
%{_mandir}/man7/zmq_ipc.7.gz
%{_mandir}/man7/zmq_pgm.7.gz
%{_mandir}/man7/zmq_tcp.7.gz

%changelog
136 137 138
* Fri Apr 8 2011 Mikko Koppanen <mikko@kuut.io> 3.0.0-1
- Update dependencies and packaged files

Mikko Koppanen's avatar
Mikko Koppanen committed
139 140
* Sat Apr 10 2010 Mikko Koppanen <mkoppanen@php.net> 2.0.7-1
- Initial packaging