%global ldconfig /sbin/ldconfig %global ldconfig_post %{?ldconfig:%post -p %ldconfig} %global ldconfig_postun %{?ldconfig:%postun -p %ldconfig} %global ldconfig_scriptlets(n:) %{?ldconfig:\ %ldconfig_post %{?*} %{-n:-n %{-n*}}\ %end\ %ldconfig_postun %{?*} %{-n:-n %{-n*}}\ %end\ } %bcond_without pgm %global libtool %{_bindir}/libtool Name: zeromq Version: 4.3.1 Release: 0%{?dist}.1sunshine Summary: Software library for fast, message-based applications Group: System Environment/Libraries License: LGPLv3+ URL: http://www.zeromq.org # VCS: git:http://github.com/zeromq/zeromq2.git Source0: https://github.com/zeromq/libzmq/releases/download/v%{version}/zeromq-%{version}.tar.gz Source1: https://raw.githubusercontent.com/zeromq/cppzmq/master/zmq.hpp Source2: https://raw.githubusercontent.com/zeromq/cppzmq/master/LICENSE BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: libsodium-devel BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: glib2-devel %if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) BuildRequires: e2fsprogs-devel %else BuildRequires: libuuid-devel %endif %if %{with pgm} # actually pkgconfig(openpgm-5.2), but the hardcoded version is determined below BuildRequires: openpgm-devel BuildRequires: krb5-devel %endif %description The 0MQ lightweight messaging kernel is a library which extends the standard socket interfaces with features traditionally provided by specialized messaging middle-ware 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 for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package -n cppzmq-devel Summary: Development files for cppzmq Group: Development/Libraries License: MIT Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description -n cppzmq-devel The cppzmq-devel package contains libraries and header files for developing applications that use the C++ header files of %{name}. %prep %setup -q cp -a %{SOURCE2} . # zeromq.x86_64: W: file-not-utf8 /usr/share/doc/zeromq/ChangeLog iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog # Sed version number of openpgm into configure %global openpgm_pc $(basename %{_libdir}/pkgconfig/openpgm*.pc .pc) sed -i "s/openpgm-[0-9].[0-9]/%{openpgm_pc}/g" \ configure %build %configure \ %if %{with pgm} --with-pgm \ --with-libgssapi_krb5 \ %endif --disable-Werror \ --disable-static make %{?_smp_mflags} V=1 LIBTOOL="%{libtool}" %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} INSTALL="install -p" LIBTOOL="%{libtool}" install -m 644 -p %{SOURCE1} %{buildroot}%{_includedir}/ # remove *.la rm %{buildroot}%{_libdir}/libzmq.la # for some reason "--disable-static" isn't working rm %{buildroot}%{_libdir}/libzmq.a %check make check V=1 LIBTOOL="%{libtool}" %ldconfig_scriptlets %files %doc AUTHORS ChangeLog NEWS %{!?_licensedir:%global license %%doc} %license COPYING COPYING.LESSER %{_bindir}/curve_keygen %{_libdir}/libzmq.so.5* %files devel %{_libdir}/libzmq.so %{_libdir}/pkgconfig/libzmq.pc %{_includedir}/zmq*.h %{_mandir}/man3/zmq*.3* %{_mandir}/man7/zmq*.7* %files -n cppzmq-devel %license LICENSE %{_includedir}/zmq.hpp %changelog * Wed Feb 06 2019 Moritz Barsnick 4.3.1-0.1sunshine - update to 4.3.1 - adapt %%Source0 for latest (non-4.1) version - add BR pkgconfig - force use of system libtool (ver. 1) on F10 to avoid incompatibility - add a fallback for the %%license tag - avoid use of autoreconf (local changes need to apply only to configure, not configure.ac) - add a fallback for the %%ldconfig_scriptlets macro - remove the static library, "--disable-static" isn't behaving like it should - package man pages - package the library with its version number (.so.5) in the filename, to detect soname changes * Tue Aug 28 2018 Pavel Zhukov - 4.1.6-10 - Add gcc-c++ BR * Sat Jul 14 2018 Fedora Release Engineering - 4.1.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 4.1.6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Feb 03 2018 Igor Gnatenko - 4.1.6-7 - Switch to %%ldconfig_scriptlets * Mon Oct 02 2017 Remi Collet - 4.1.6-6 - rebuild for libsodium * Thu Aug 03 2017 Fedora Release Engineering - 4.1.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 4.1.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon May 15 2017 Fedora Release Engineering - 4.1.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 4.1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Nov 13 2016 Thomas Spura - 4.1.6-1 - update to 4.1.6 * Mon Mar 07 2016 Remi Collet - 4.1.4-5 - rebuild for new libsodium soname * Sun Feb 14 2016 Thomas Spura - 4.1.4-4 - Remove Werror from compile flags * Fri Feb 05 2016 Fedora Release Engineering - 4.1.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Jan 24 2016 Thomas Spura - 4.1.4-2 - Enable krb5 and fix building of pgm (#1301197) * Sat Dec 19 2015 Thomas Spura - 4.1.4-1 - update to 4.1.4 (#1292814) - refresh zmq.hpp * Mon Aug 24 2015 Thomas Spura - 4.1.3-1 - update to 4.1.3 (#1256209) - ipv6 patch included upstream - refresh zmq.hpp * Tue Jun 23 2015 Thomas Spura - 4.1.2-1 - update to 4.1.2 - add upstream patch to fix problem with ipv6 * Fri Jun 19 2015 Fedora Release Engineering - 4.0.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jun 08 2015 Thomas Spura - 4.0.5-4 - Add zmq.hpp, which originally belonged to zeromq: https://github.com/zeromq/cppzmq/issues/48 * Tue May 19 2015 Thomas Spura - 4.0.5-3 - Cherry-pick patch for protocol downgrade attack (#1221666, CVE-2014-9721) - Remove Obsoletes:zeromq-utils - Remove %%defattr * Sat May 02 2015 Kalev Lember - 4.0.5-2 - Rebuilt for GCC 5 C++11 ABI change * Mon Nov 17 2014 Thomas Spura - 4.0.5-1 - update to 4.0.5 * Mon Aug 18 2014 Fedora Release Engineering - 2.2.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2.2.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 2.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri May 17 2013 Thomas Spura - 2.2.0-7 - Rebuilt for openpm-5.2 and sed correct version into configure (#963894) * Wed Mar 27 2013 Thomas Spura - 2.2.0-6 - run autoreconf before configure so aarch64 is supported (#926859) * Fri Feb 15 2013 Fedora Release Engineering - 2.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Jan 14 2013 Thomas Spura - 2.2.0-4 - delete foreign files with dubious license in %%prep (#892111) * Mon Dec 24 2012 Thomas Spura - 2.2.0-3 - add bcond_without pgm macro (Jose Pedro Oliveira, #867182) - remove bundled pgm - build against openpgm * Sun Jul 22 2012 Fedora Release Engineering - 2.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Apr 26 2012 Thomas Spura - 2.2.0-1 - update to 2.2.0 * Sat Jan 7 2012 Thomas Spura - 2.1.11-1 - update to 2.1.11 (as part of rebuilding with gcc-4.7) * Tue Sep 20 2011 Thomas Spura - 2.1.9-1 - update to 2.1.9 - add check section * Wed Apr 6 2011 Thomas Spura - 2.1.4-1 - update to new version (#690199) * Wed Mar 23 2011 Thomas Spura - 2.1.3-1 - update to new version (#690199) - utils subpackage was removed upstream (obsolete it) * Tue Feb 08 2011 Fedora Release Engineering - 2.0.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Jan 13 2011 Pavel Zhukov - 2.0.10-1 - update version - add rpath delete - change includedir filelist * Fri Aug 27 2010 Thomas Spura - 2.0.8-1 - update to new version * Fri Jul 23 2010 Thomas Spura - 2.0.7-4 - upstream VCS changed - remove buildroot / %%clean - change descriptions * Tue Jul 20 2010 Thomas Spura - 2.0.7-3 - move binaries to seperate utils package * Sat Jun 12 2010 Thomas Spura - 2.0.7-2 - remove BR: libstdc++-devel - move man3 to the devel package - change group to System Environment/Libraries * Sat Jun 12 2010 Thomas Spura - 2.0.7-1 - initial package (based on upstreams example one)