summaryrefslogtreecommitdiffstats
path: root/build/rhel/dependencies/czmq.spec
blob: 9f0ff9084c334eb3c0838f39785dbc08454acf28 (plain)
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
95
96
97
98
99
100
101
102
103
104
105
106
107
Name:		czmq
Version:	1.2.0
Release:	1%{?dist}
Summary:	High-level C binding for 0MQ (ZeroMQ).

Group:		Development/Libraries
License:	LGPL
URL:		http://czmq.zeromq.org/
Source0:	%{name}-%{version}.tar.gz
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

BuildRequires: zeromq-devel
BuildRequires: xmlto, xmltoman
BuildRequires: asciidoc
Requires: zeromq
Requires(post): /sbin/ldconfig

%if %{?rhel}%{!?rhel:0} >= 6
BuildRequires: libuuid-devel
Requires:      libuuid
%elseif %{?rhel}%{!?rhel:0} >= 5
BuildRequires: e2fsprogs-devel
Requires:      e2fsprogs
%else
BuildRequires: uuid-devel
Requires:      uuid
%endif

%description
%{summary}

%package devel
Summary: Development bindings for 0MQ (ZeroMQ).
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig

%description devel
Development bindings for 0MQ (ZeroMQ).

%prep
%setup -q

%build
export CFLAGS="-Wno-unused-variable"
%configure
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%post
/sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(0644,root,root,0755)
%doc AUTHORS COPYING* INSTALL README NEWS

%{_mandir}/man7/zloop.7.gz
%{_mandir}/man7/zsockopt.7.gz
%{_mandir}/man7/zhash.7.gz
%{_mandir}/man7/zctx.7.gz
%{_mandir}/man7/zsocket.7.gz
%{_mandir}/man7/zframe.7.gz
%{_mandir}/man7/zfile.7.gz
%{_mandir}/man7/zthread.7.gz
%{_mandir}/man7/czmq.7.gz
%{_mandir}/man7/zstr.7.gz
%{_mandir}/man7/zclock.7.gz
%{_mandir}/man7/zmsg.7.gz
%{_mandir}/man7/zlist.7.gz
%{_libdir}/libczmq.so*
%attr(0755,root,root) %{_bindir}/czmq_selftest

%files devel
%defattr(0644,root,root,0755)
%{_libdir}/libczmq.la
%{_libdir}/pkgconfig/libczmq.pc
%{_libdir}/libczmq.a
%{_includedir}/zsocket.h
%{_includedir}/czmq.h
%{_includedir}/zstr.h
%{_includedir}/zlist.h
%{_includedir}/zsockopt.h
%{_includedir}/zmsg.h
%{_includedir}/zclock.h
%{_includedir}/zthread.h
%{_includedir}/zloop.h
%{_includedir}/zframe.h
%{_includedir}/czmq_prelude.h
%{_includedir}/zhash.h
%{_includedir}/zctx.h
%{_includedir}/zfile.h

%changelog

* Tue Jun 12 2012 Abby Edwards <abby.lina.edwards@gmail.com> 1.2.0-1
- updated to 1.2.0, split devel package out
- updated CFLAGS to be compatible with gcc 4+

* Thu Sep 29 2011 Lars Kellogg-Stedman <lars@seas.harvard.edu> - 1.1.0-1
- initial package build