Files
zyre/zyre.spec
Ismail Dönmez 6bc561853a Accepting request 260203 from home:mvyskocil:branches:devel:libraries:c_c++
add zyre to d:l:c_c++

@reviewer: the reason I've used this project is
 1) it does provide devel package and shared library one
 2) it depends on czmq, which is there as well

OBS-URL: https://build.opensuse.org/request/show/260203
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zyre?expand=0&rev=1
2014-11-11 10:30:54 +00:00

106 lines
2.8 KiB
RPMSpec

#
# spec file for package
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: zyre
Version: 1.0.0
Release: 1
License: GPL-3.0+ or LGPL-3.0+
Summary: Open-source framework for proximity-based peer-to-peer applications
Url: https://github.com/zeromq/zyre
Group: Development/Libraries/C and C++
Source0: https://github.com/zeromq/zyre/archive/v1.0.0.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig(libczmq) >= 3.0.0
BuildRequires: pkg-config
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: libtool
# documentation
BuildRequires: asciidoc
BuildRequires: xmlto
%description
Zyre does local area discovery and clustering. A Zyre node broadcasts UDP
beacons, and connects to peers that it finds. This class wraps a Zyre node with
a message-based API.
All incoming events are zmsg_t messages delivered via the zyre_recv call. The
first frame defines the type of the message, and following frames provide
further values:
%package -n lib%{name}1
Summary: Shared library of %{name}
Group: Development/Languages/C and C++
%description -n lib%{name}1
This package contain shared library of %{name}.
%package devel
Summary: Devel files for %{name}
Group: Development/Languages/C and C++
Requires: lib%{name}1 = %{version}
Requires: pkgconfig(libczmq) >= 3.0
%description devel
Development files (headers, pkgconfig, cmake) for %{name}.
%prep
%setup -q
chmod 0644 COPYING.LESSER
%build
./autogen.sh
%configure
make %{?_smp_mflags}
%install
%make_install
rm -f %{buildroot}/%{_libdir}/libzyre.{a,la}
%post -n lib%{name}1 -p /sbin/ldconfig
%postun -n lib%{name}1 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING COPYING.LESSER
%{_bindir}/perf_local
%{_bindir}/perf_remote
%{_bindir}/zlogger
%{_bindir}/zpinger
%{_bindir}/ztester
%{_bindir}/zyre_selftest
%files -n lib%{name}1
%defattr(-,root,root)
%{_libdir}/libzyre.so.*
%files devel
%defattr(-,root,root)
%doc AUTHORS NEWS README.md
%{_includedir}/zre_log_msg.h
%{_includedir}/zre_msg.h
%{_includedir}/zyre.h
%{_includedir}/zyre_event.h
%{_includedir}/zyre_log.h
%{_libdir}/libzyre.so
%{_libdir}/pkgconfig/libzyre.pc
%changelog