From 8261e79c366011d1c0112df83333d76c24e43a33 Mon Sep 17 00:00:00 2001 From: Abby Edwards Date: Tue, 12 Jun 2012 12:21:22 -0500 Subject: added rpm spec files for rhel / centos --- build/rhel/dependencies/czmq.spec | 107 +++++++++++++++++++++++++++ build/rhel/dependencies/zeromq.spec | 142 ++++++++++++++++++++++++++++++++++++ 2 files changed, 249 insertions(+) create mode 100644 build/rhel/dependencies/czmq.spec create mode 100644 build/rhel/dependencies/zeromq.spec (limited to 'build/rhel/dependencies') diff --git a/build/rhel/dependencies/czmq.spec b/build/rhel/dependencies/czmq.spec new file mode 100644 index 00000000..9f0ff908 --- /dev/null +++ b/build/rhel/dependencies/czmq.spec @@ -0,0 +1,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 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 - 1.1.0-1 +- initial package build + diff --git a/build/rhel/dependencies/zeromq.spec b/build/rhel/dependencies/zeromq.spec new file mode 100644 index 00000000..d1aa5f4c --- /dev/null +++ b/build/rhel/dependencies/zeromq.spec @@ -0,0 +1,142 @@ +Name: zeromq +Version: 2.2.0 +Release: 1%{?dist} +Summary: The ZeroMQ messaging library +Group: Applications/Internet +License: LGPLv3+ +URL: http://www.zeromq.org/ +Source: http://download.zeromq.org/%{name}-%{version}.tar.gz +Prefix: %{_prefix} +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: gcc, make, gcc-c++, libstdc++-devel +Requires: libstdc++ + +%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 + +# Build pgm only on supported archs +%ifarch pentium3 pentium4 athlon i386 i486 i586 i686 x86_64 +BuildRequires: glib2-devel +Requires: glib2 +%endif + +%description +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. + +%package devel +Summary: Development files and static library for the ZeroMQ library +Group: Development/Libraries +Requires: %{name} = %{version}-%{release}, pkgconfig + +%description devel +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 ZeroMQ related development libraries and header files. + +%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 +%{__make} check +%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 +%{_libdir}/libzmq.so.1 +%{_libdir}/libzmq.so.1.0.1 + +%{_mandir}/man7/zmq.7.gz + +%files devel +%defattr(-,root,root,-) +%{_includedir}/zmq.h +%{_includedir}/zmq.hpp +%{_includedir}/zmq_utils.h + +%{_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 +%{_mandir}/man3/zmq_errno.3.gz +%{_mandir}/man3/zmq_device.3.gz +%{_mandir}/man3/zmq_getsockopt.3.gz +%{_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 +%{_mandir}/man3/zmq_send.3.gz +%{_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_cpp.7.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 +* Tue Jun 12 2012 Abby Edwards 2.2.0-1 +- updated version + +* Sat Apr 10 2010 Mikko Koppanen 2.0.7-1 +- Initial packaging -- cgit