%define revision 1 Summary: An open-source framework for proximity-based peer-to-peer applications Name: zyre Version: 2.0.0 Release: %{revision}%{?dist} License: LGPL v3+ Group: Libraries Source0: http://download.zeromq.org/%{name}-%{version}.tar.gz # Source0-md5: a83cbea8c2687813e1343d711589ec15 URL: http://zeromq.org/ BuildRequires: perl, asciidoc, xmlto BuildRequires: czmq-devel >= 3.0 Requires: czmq >= 3.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description An open-source framework for proximity-based peer-to-peer applications %package devel Summary: Header files for Zyre library Group: Development/Libraries Requires: %{name} = %{version}-%{release} #Requires: zeromq4-devel >= 4 Requires: czmq-devel >= 3.0 %description devel Header files for Zyre library. %package static Summary: Static Zyre library Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static Zyre library. %prep %setup -q -n %{name}-%{version} %build %configure %{__make} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT # obsoleted by pkg-config %{__rm} $RPM_BUILD_ROOT%{_libdir}/libzyre.la %{__rm} -rf $RPM_BUILD_ROOT%{_bindir}/*.gsl #%check #make check %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc AUTHORS NEWS %attr(755,root,root) %{_libdir}/libzyre.so.*.*.* %{_libdir}/libzyre.so.2 %attr(755,root,root) %{_bindir}/zpinger %{_mandir}/man1/*.1* %{_mandir}/man3/*.3* %{_mandir}/man7/*.7* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libzyre.so %{_includedir}/ %{_libdir}/pkgconfig/libzyre.pc %{_datarootdir}/zproject/%{name}/ %files static %defattr(644,root,root,755) %{_libdir}/libzyre.a