Compare commits
81 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b568b0136 | ||
|
|
61dda03ad6 | ||
|
|
8c0a9a2744 | ||
|
|
5cdfb5dc7a | ||
|
|
2ba6425a00 | ||
|
|
cb016e7317 | ||
|
|
c8ae1309ae | ||
|
|
1bc5134706 | ||
|
|
1cb438733f | ||
|
|
d1f897dccf | ||
|
|
0502eb1960 | ||
|
|
04ba3e0b7e | ||
|
|
9e6802e3b7 | ||
|
|
3dd626ffa0 | ||
|
|
13c901b7af | ||
|
|
b80422b75f | ||
|
|
0a97bab77b | ||
|
|
e47d99b391 | ||
|
|
12b8a0bc12 | ||
|
|
de1a0c8e35 | ||
|
|
e1c1539e16 | ||
|
|
7a106ac239 | ||
|
|
0108fed20c | ||
|
|
6666ee1fbe | ||
| 4899b764e8 | |||
|
|
690b1cc3cf | ||
|
|
b06c92b895 | ||
|
|
0da91cc706 | ||
|
|
c2c0544f92 | ||
|
|
9958f38243 | ||
|
|
1cff1e4bfa | ||
|
|
5226e5546b | ||
|
|
b11c5a2199 | ||
|
|
f46381246b | ||
|
|
135a5bb23b | ||
|
|
deb7fbd467 | ||
|
|
29fbd797d1 | ||
|
|
4f322ac6af | ||
|
|
4f02baed80 | ||
|
|
862d0b3419 | ||
|
|
d99d0bd41b | ||
|
|
f3609faa1b | ||
|
|
a31484cb1d | ||
|
|
8b1b433149 | ||
|
|
3fa0303d29 | ||
|
|
9e5b263a81 | ||
|
|
5aea20bcd5 | ||
|
|
5652a7377f | ||
|
|
6a4c511715 | ||
|
|
689cc9f6d7 | ||
|
|
dc32612980 | ||
|
|
7a004a7f33 | ||
|
|
23d1f54267 | ||
|
|
2e18705528 | ||
| 3eaf98a78b | |||
|
|
1b73cea19e | ||
|
2cefe81957 |
|||
| 015e3956e4 | |||
|
|
85bad0539d | ||
|
|
ce3866b8d6 | ||
|
|
8f64d3da25 | ||
|
|
e69895fec7 | ||
|
|
be57c1acb7 | ||
|
|
2c2ab1232d | ||
| 6e875bede4 | |||
|
|
eff758a05c | ||
|
|
9466daf312 | ||
|
|
4010976809 | ||
|
|
eb3bd66bd0 | ||
|
|
729573e58e | ||
|
|
f003bc5816 | ||
|
|
d930586b91 | ||
|
|
d9734a9779 | ||
|
|
4c7a024ec3 | ||
|
|
f7093ac2e3 | ||
|
|
66b20ffa04 | ||
|
|
e6cddf9458 | ||
|
|
778f84a183 | ||
|
|
1f0ba93f7f | ||
|
|
a3f209629d | ||
|
|
1340e1cf54 |
4 changed files with 94 additions and 128 deletions
19
.gitignore
vendored
19
.gitignore
vendored
|
|
@ -1,8 +1,11 @@
|
|||
zeromq-2.0.7.tar.gz
|
||||
/zeromq-2.0.8.tar.gz
|
||||
/zeromq-2.0.10.tar.gz
|
||||
/zeromq-2.1.3.tar.gz
|
||||
/zeromq-2.1.4.tar.gz
|
||||
/zeromq-2.1.9.tar.gz
|
||||
/zeromq-2.1.11.tar.gz
|
||||
/zeromq-2.2.0.tar.gz
|
||||
/zeromq-*.tar.*
|
||||
/zeromq-*.src.rpm
|
||||
/zeromq-*.*.*/
|
||||
/libzmq-*.*.*/
|
||||
/clog
|
||||
.build-*.*.log
|
||||
/noarch/
|
||||
/x86_64/
|
||||
/i?86/
|
||||
/tarballs/
|
||||
/libzmq-*.*.*.tar.gz
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
1b11aae09b19d18276d0717b2ea288f6 zeromq-2.2.0.tar.gz
|
||||
SHA512 (zeromq-4.3.5.tar.gz) = a71d48aa977ad8941c1609947d8db2679fc7a951e4cd0c3a1127ae026d883c11bd4203cf315de87f95f5031aec459a731aec34e5ce5b667b8d0559b157952541
|
||||
|
|
|
|||
37
zeromq-configure-c99.patch
Normal file
37
zeromq-configure-c99.patch
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
Build with -D_DEFAULT_SOURCE along with -std=c11
|
||||
|
||||
On its own, -std=c11 hides POSIX and other extensions from C headers
|
||||
such as <stdlib.h> when building against glibc. This causes the
|
||||
posix_memalign probe to fail incorrectly with compilers that do not
|
||||
accept implicit function declarations. _DEFAULT_SOURCE is ignored by
|
||||
most non-GNU/Linux systems or not relevant in this context, so there
|
||||
is no separate check for adding it.
|
||||
|
||||
Submitted upstream: <https://github.com/zeromq/libzmq/pull/4635>
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 68fb7251..f956f3fd 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -122,7 +122,7 @@ if (NOT MSVC)
|
||||
if(NOT CMAKE_C_FLAGS MATCHES "-std=" AND NOT C_STANDARD AND NOT CMAKE_C_STANDARD)
|
||||
check_c_compiler_flag("-std=c11" COMPILER_SUPPORTS_C11)
|
||||
if(COMPILER_SUPPORTS_C11)
|
||||
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
|
||||
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_DEFAULT_SOURCE -std=c11")
|
||||
else()
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
|
||||
endif()
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index b9e13d4f..ffcc145b 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -66,7 +66,7 @@ ZMQ_ORIG_CXXFLAGS="${CXXFLAGS:-none}"
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
-AX_CHECK_COMPILE_FLAG([-std=c11], [CFLAGS+=" -std=c11"], [AC_PROG_CC_C99])
|
||||
+AX_CHECK_COMPILE_FLAG([-std=c11], [CFLAGS+=" -std=c11 -D_DEFAULT_SOURCE"], [AC_PROG_CC_C99])
|
||||
AC_PROG_CXX
|
||||
AX_CODE_COVERAGE
|
||||
AM_PROG_CC_C_O
|
||||
164
zeromq.spec
164
zeromq.spec
|
|
@ -1,35 +1,34 @@
|
|||
%bcond_without pgm
|
||||
%bcond_without unwind
|
||||
|
||||
Name: zeromq
|
||||
Version: 2.2.0
|
||||
Release: 10%{?dist}
|
||||
Version: 4.3.5
|
||||
Release: %autorelease
|
||||
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: http://download.zeromq.org/zeromq-%{version}.tar.gz
|
||||
License: MPL-2.0 AND BSD-3-Clause AND MIT
|
||||
URL: https://zeromq.org
|
||||
Source0: https://github.com/%{name}/libzmq/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Patch1: zeromq-configure-c99.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libtool
|
||||
BuildRequires: asciidoc
|
||||
BuildRequires: xmlto
|
||||
BuildRequires: libsodium-devel
|
||||
|
||||
BuildRequires: glib2-devel
|
||||
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
||||
BuildRequires: e2fsprogs-devel
|
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||
%else
|
||||
BuildRequires: libuuid-devel
|
||||
%if %{with unwind}
|
||||
BuildRequires: libunwind-devel
|
||||
%endif
|
||||
|
||||
%if %{with pgm}
|
||||
BuildRequires: openpgm-devel
|
||||
BuildRequires: krb5-devel
|
||||
%endif
|
||||
|
||||
# utils subpackage was removed in F-16
|
||||
# -> can be deleted in F-19
|
||||
Obsoletes: zeromq-utils < 2.1.3-1
|
||||
|
||||
%description
|
||||
The 0MQ lightweight messaging kernel is a library which extends the
|
||||
standard socket interfaces with features traditionally provided by
|
||||
|
|
@ -43,145 +42,72 @@ 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
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
|
||||
# Don't turn warnings into errors
|
||||
sed -i "s/libzmq_werror=\"yes\"/libzmq_werror=\"no\"/g" \
|
||||
configure
|
||||
# Remove bundled code.
|
||||
rm -rf external/wepoll
|
||||
|
||||
# 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*
|
||||
|
||||
|
||||
# remove all files in foreign except Makefiles
|
||||
rm -v $(find foreign -type f | grep -v Makefile)
|
||||
# Fix permissions.
|
||||
chmod -x src/xsub.hpp
|
||||
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
%configure \
|
||||
%if %{with pgm}
|
||||
--with-system-pgm \
|
||||
--with-pgm \
|
||||
--with-libgssapi_krb5 \
|
||||
%endif
|
||||
--with-libsodium \
|
||||
--enable-drafts \
|
||||
%if %{with unwind}
|
||||
--enable-libunwind \
|
||||
%endif
|
||||
--disable-Werror \
|
||||
--disable-static
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make install DESTDIR=%{buildroot} INSTALL="install -p"
|
||||
%make_install
|
||||
|
||||
# remove *.la
|
||||
rm %{buildroot}%{_libdir}/libzmq.la
|
||||
|
||||
|
||||
%check
|
||||
make check
|
||||
%ifarch s390x
|
||||
make check V=1 XFAIL_TESTS=tests/test_radio_dish || ( cat test-suite.log && exit 1 )
|
||||
%endif
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS ChangeLog COPYING COPYING.LESSER NEWS README
|
||||
%{_libdir}/libzmq.so.*
|
||||
%doc README.md AUTHORS NEWS
|
||||
%license LICENSE
|
||||
%{_bindir}/curve_keygen
|
||||
%{_libdir}/libzmq.so.5*
|
||||
%{_mandir}/man3/zmq_*
|
||||
%{_mandir}/man7/zmq_*
|
||||
%{_mandir}/man7/zmq.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libzmq.so
|
||||
%{_libdir}/pkgconfig/libzmq.pc
|
||||
%{_includedir}/zmq*
|
||||
%{_mandir}/man3/zmq*
|
||||
%{_mandir}/man7/zmq*
|
||||
%{_includedir}/zmq*.h
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
%autochangelog
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Fri May 17 2013 Thomas Spura <tomspur@fedoraproject.org> - 2.2.0-7
|
||||
- Rebuilt for openpm-5.2 and sed correct version into configure (#963894)
|
||||
|
||||
* Wed Mar 27 2013 Thomas Spura <tomspur@fedoraproject.org> - 2.2.0-6
|
||||
- run autoreconf before configure so aarch64 is supported (#926859)
|
||||
|
||||
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Mon Jan 14 2013 Thomas Spura <tomspur@fedoraproject.org> - 2.2.0-4
|
||||
- delete foreign files with dubious license in %%prep (#892111)
|
||||
|
||||
* Mon Dec 24 2012 Thomas Spura <tomspur@fedoraproject.org> - 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 <rel-eng@lists.fedoraproject.org> - 2.2.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Thu Apr 26 2012 Thomas Spura <tomspur@fedoraproject.org> - 2.2.0-1
|
||||
- update to 2.2.0
|
||||
|
||||
* Sat Jan 7 2012 Thomas Spura <tomspur@fedoraproject.org> - 2.1.11-1
|
||||
- update to 2.1.11 (as part of rebuilding with gcc-4.7)
|
||||
|
||||
* Tue Sep 20 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.9-1
|
||||
- update to 2.1.9
|
||||
- add check section
|
||||
|
||||
* Wed Apr 6 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.4-1
|
||||
- update to new version (#690199)
|
||||
|
||||
* Wed Mar 23 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.3-1
|
||||
- update to new version (#690199)
|
||||
- utils subpackage was removed upstream
|
||||
(obsolete it)
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Thu Jan 13 2011 Pavel Zhukov <pavel@zhukoff.net> - 2.0.10-1
|
||||
- update version
|
||||
- add rpath delete
|
||||
- change includedir filelist
|
||||
|
||||
* Fri Aug 27 2010 Thomas Spura <tomspur@fedoraproject.org> - 2.0.8-1
|
||||
- update to new version
|
||||
|
||||
* Fri Jul 23 2010 Thomas Spura <tomspur@fedoraproject.org> - 2.0.7-4
|
||||
- upstream VCS changed
|
||||
- remove buildroot / %%clean
|
||||
- change descriptions
|
||||
|
||||
* Tue Jul 20 2010 Thomas Spura <tomspur@fedoraproject.org> - 2.0.7-3
|
||||
- move binaries to seperate utils package
|
||||
|
||||
* Sat Jun 12 2010 Thomas Spura <tomspur@fedoraproject.org> - 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 <tomspur@fedoraproject.org> - 2.0.7-1
|
||||
- initial package (based on upstreams example one)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue