From 8bd3f743f50a61355b6cf18046d59c7d0289836b Mon Sep 17 00:00:00 2001
From: Mikko Koppanen <mkoppanen@gameboy.config>
Date: Fri, 16 Apr 2010 00:01:13 +0100
Subject: Import redhat packaging

---
 builds/redhat/zeromq.spec | 137 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 137 insertions(+)
 create mode 100644 builds/redhat/zeromq.spec

(limited to 'builds')

diff --git a/builds/redhat/zeromq.spec b/builds/redhat/zeromq.spec
new file mode 100644
index 0000000..756ba9d
--- /dev/null
+++ b/builds/redhat/zeromq.spec
@@ -0,0 +1,137 @@
+Name:          zeromq
+Version:       @PACKAGE_VERSION@
+Release:       1%{?dist}
+Summary:       Fastest. Messaging. Ever.
+Group:         Applications/Internet
+License:       LGPLv3+
+URL:           http://www.zeromq.org/
+Source:        http://www.zeromq.org/local--files/area:download/%{name}-%{version}.tar.gz
+Prefix:        %{_prefix}
+Buildroot:     %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: uuid-devel, gcc, make, gcc-c++, libstdc++-devel
+Requires:      uuid, libstdc++
+
+# Build pgm only on supported archs
+%ifarch pentium3 pentium4 athlon i386 i486 i586 i686 x86_64
+BuildRequires: glib2-devel
+Requires: glib2
+%endif
+
+%description
+Fast and lightweight messaging system designed with 
+speed and reliability in mind.
+
+%package devel
+Summary:  Development headers
+Group:    Development/Libraries
+Requires: %{name} = %{version}-%{release}, pkgconfig
+
+%description devel
+Files needed for building applications with zeromq.
+
+%package utils
+Summary:  zeromq utilities
+Group:    System Environment/Utilities
+Requires: %{name} = %{version}-%{release}
+
+%description utils
+Performance testing utilities for zeromq.
+
+%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
+%makeinstall
+
+# copy the utility binaries
+%{__cp} %{_builddir}/%{name}-%{version}/perf/local_lat %{buildroot}/%{_bindir}
+%{__cp} %{_builddir}/%{name}-%{version}/perf/local_thr %{buildroot}/%{_bindir}
+%{__cp} %{_builddir}/%{name}-%{version}/perf/remote_lat %{buildroot}/%{_bindir}
+%{__cp} %{_builddir}/%{name}-%{version}/perf/remote_thr %{buildroot}/%{_bindir}
+
+%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.0
+%{_libdir}/libzmq.so.0.0.0
+
+%attr(0755,root,root) %{_bindir}/zmq_forwarder
+%attr(0755,root,root) %{_bindir}/zmq_queue
+%attr(0755,root,root) %{_bindir}/zmq_streamer
+
+%{_mandir}/man7/zmq.7.gz
+%{_mandir}/man1/zmq_forwarder.1.gz
+%{_mandir}/man1/zmq_queue.1.gz
+%{_mandir}/man1/zmq_streamer.1.gz
+
+%files utils
+%attr(0755, root, root) %{_bindir}/local_lat
+%attr(0755, root, root) %{_bindir}/local_thr
+%attr(0755, root, root) %{_bindir}/remote_lat
+%attr(0755, root, root) %{_bindir}/remote_thr
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/zmq.h
+%{_includedir}/zmq.hpp
+
+%{_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_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
+* Sat Apr 10 2010 Mikko Koppanen <mkoppanen@php.net> 2.0.7-1
+- Initial packaging
-- 
cgit v1.2.3


From 74f1a4a579d3b09b3420092d9f076827be31c4e7 Mon Sep 17 00:00:00 2001
From: Martin Lucina <mato@kotelna.sk>
Date: Fri, 28 May 2010 00:55:04 +0200
Subject: RPM packaging cleanups

- ditch -utils package
- add descriptions from Debian packaging
---
 builds/redhat/zeromq.spec | 41 +++++++++++++++++------------------------
 1 file changed, 17 insertions(+), 24 deletions(-)

(limited to 'builds')

diff --git a/builds/redhat/zeromq.spec b/builds/redhat/zeromq.spec
index 756ba9d..781c65d 100644
--- a/builds/redhat/zeromq.spec
+++ b/builds/redhat/zeromq.spec
@@ -1,7 +1,7 @@
 Name:          zeromq
 Version:       @PACKAGE_VERSION@
 Release:       1%{?dist}
-Summary:       Fastest. Messaging. Ever.
+Summary:       The ZeroMQ messaging library
 Group:         Applications/Internet
 License:       LGPLv3+
 URL:           http://www.zeromq.org/
@@ -18,24 +18,29 @@ Requires: glib2
 %endif
 
 %description
-Fast and lightweight messaging system designed with 
-speed and reliability in mind.
+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 headers
+Summary:  Development files and static library for the ZeroMQ library
 Group:    Development/Libraries
 Requires: %{name} = %{version}-%{release}, pkgconfig
 
 %description devel
-Files needed for building applications with zeromq.
-
-%package utils
-Summary:  zeromq utilities
-Group:    System Environment/Utilities
-Requires: %{name} = %{version}-%{release}
+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.
 
-%description utils
-Performance testing utilities for zeromq.
+This package contains ZeroMQ related development libraries and header files.
 
 %prep
 %setup -q
@@ -55,12 +60,6 @@ Performance testing utilities for zeromq.
 # Install the package to build area
 %makeinstall
 
-# copy the utility binaries
-%{__cp} %{_builddir}/%{name}-%{version}/perf/local_lat %{buildroot}/%{_bindir}
-%{__cp} %{_builddir}/%{name}-%{version}/perf/local_thr %{buildroot}/%{_bindir}
-%{__cp} %{_builddir}/%{name}-%{version}/perf/remote_lat %{buildroot}/%{_bindir}
-%{__cp} %{_builddir}/%{name}-%{version}/perf/remote_thr %{buildroot}/%{_bindir}
-
 %post
 /sbin/ldconfig
 
@@ -89,12 +88,6 @@ Performance testing utilities for zeromq.
 %{_mandir}/man1/zmq_queue.1.gz
 %{_mandir}/man1/zmq_streamer.1.gz
 
-%files utils
-%attr(0755, root, root) %{_bindir}/local_lat
-%attr(0755, root, root) %{_bindir}/local_thr
-%attr(0755, root, root) %{_bindir}/remote_lat
-%attr(0755, root, root) %{_bindir}/remote_thr
-
 %files devel
 %defattr(-,root,root,-)
 %{_includedir}/zmq.h
-- 
cgit v1.2.3