-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zhengyu li
committed
Apr 28, 2015
1 parent
3739391
commit 4b45d1e
Showing
25 changed files
with
250 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
Summary: High-level C binding for 0MQ | ||
Name: czmq | ||
Version: 2.2.0 | ||
Release: 3 | ||
License: LGPL v3+ | ||
Group: Libraries | ||
Source0: http://download.zeromq.org/%{name}-%{version}.tar.gz | ||
URL: http://zeromq.org/ | ||
BuildRequires: asciidoc | ||
BuildRequires: libsodium-devel | ||
BuildRequires: xmlto | ||
BuildRequires: zeromq4-devel | ||
BuildRequires: libuuid-devel | ||
Requires: zeromq4 | ||
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | ||
|
||
%description | ||
High-level C binding for 0MQ. | ||
|
||
%package devel | ||
Summary: Header files for CZMQ library | ||
Group: Development/Libraries | ||
Requires: %{name} = %{version}-%{release} | ||
Requires: zeromq4-devel | ||
|
||
%description devel | ||
Header files for CZMQ library. | ||
|
||
%prep | ||
%setup -q | ||
|
||
%build | ||
# use include subdir - file names could be too common (zfile.h etc.) | ||
%configure \ | ||
--includedir=%{_includedir}/czmq \ | ||
--disable-static | ||
%{__make} | ||
|
||
%install | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%{__make} install \ | ||
DESTDIR=$RPM_BUILD_ROOT | ||
|
||
# obsoleted by pkg-config | ||
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libczmq.la | ||
|
||
# too common name | ||
%{__mv} $RPM_BUILD_ROOT%{_bindir}/{makecert,czmq_makecert} | ||
|
||
# this looks like a Makefile.am problem -jg | ||
%{__rm} -f $RPM_BUILD_ROOT%{_bindir}/*.gsl | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%post -p /sbin/ldconfig | ||
|
||
|
||
%postun -p /sbin/ldconfig | ||
|
||
|
||
%files | ||
%defattr(644,root,root,755) | ||
%doc AUTHORS NEWS | ||
%attr(755,root,root) %{_bindir}/czmq_makecert | ||
%attr(755,root,root) %{_bindir}/czmq_selftest | ||
%attr(755,root,root) %{_libdir}/libczmq.so.*.*.* | ||
%attr(755,root,root) %ghost %{_libdir}/libczmq.so.1 | ||
|
||
%files devel | ||
%defattr(644,root,root,755) | ||
%attr(755,root,root) %{_libdir}/libczmq.so | ||
%{_includedir}/czmq | ||
%{_libdir}/pkgconfig/libczmq.pc | ||
%{_mandir}/man3/*.3* | ||
%{_mandir}/man7/*.7* | ||
|
||
%changelog | ||
* Thu May 08 2014 Jim Garlick <[email protected]> - 2.2.0-3 | ||
- buildrequire libuuid-devel | ||
- disable static subpackage | ||
- drop Polish (pl) descriptions that I can't keep up to date | ||
|
||
* Wed May 07 2014 Jim Garlick <[email protected]> - 2.2.0-2 | ||
- add ldconfig post/postun | ||
|
||
* Wed May 07 2014 Jim Garlick <[email protected]> - 2.2.0-1 | ||
- drop unpackaged *.gsl files from bindir | ||
- initial build for TOSS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
Name: zeromq4 | ||
Version: 4.0.4 | ||
Release: 1%{?dist} | ||
Summary: Software library for fast, message-based applications | ||
|
||
Group: System Environment/Libraries | ||
License: LGPLv3+ with exceptions | ||
URL: http://www.zeromq.org/ | ||
Source0: http://download.zeromq.org/zeromq-%{version}.tar.gz | ||
BuildRequires: glib2-devel | ||
BuildRequires: libuuid-devel | ||
BuildRequires: libsodium-devel | ||
BuildRequires: openpgm-devel | ||
BuildRequires: chrpath | ||
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | ||
|
||
%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 for versions 4.x. | ||
|
||
|
||
%package devel | ||
Summary: Development files for %{name} | ||
Group: Development/Libraries | ||
Requires: %{name}%{?_isa} = %{version}-%{release} | ||
Conflicts: zeromq-devel%{?_isa} | ||
|
||
%description devel | ||
The %{name}-devel package contains libraries and header files for | ||
developing applications that use %{name} 4.x. | ||
|
||
|
||
%prep | ||
%setup -qn zeromq-%{version} | ||
chmod -x src/tcp.cpp | ||
chmod -x src/dist.cpp | ||
|
||
# fix ChangeLog enconding | ||
/usr/bin/iconv -f iso8859-1 -t utf-8 ChangeLog > _ChangeLog && \ | ||
%{__mv} -f _ChangeLog ChangeLog | ||
|
||
# remove all files in foreign except Makefiles | ||
rm -v $(find foreign -type f | grep -v Makefile) | ||
|
||
# Don't turn warnings into errors | ||
sed -i "s/libzmq_werror=\"yes\"/libzmq_werror=\"no\"/g" \ | ||
configure | ||
|
||
|
||
%build | ||
%configure \ | ||
%if %{with pgm} | ||
--with-system-pgm \ | ||
%endif | ||
--disable-static \ | ||
--disable-silent-rules | ||
make %{?_smp_mflags} | ||
|
||
|
||
%install | ||
make install DESTDIR=%{buildroot} INSTALL="install -p" | ||
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/curve_keygen | ||
|
||
# remove *.la | ||
rm %{buildroot}%{_libdir}/libzmq.la | ||
|
||
|
||
%check | ||
make check | ||
|
||
|
||
%post -p /sbin/ldconfig | ||
|
||
|
||
%postun -p /sbin/ldconfig | ||
|
||
|
||
%files | ||
%doc AUTHORS ChangeLog COPYING COPYING.LESSER NEWS | ||
%{_bindir}/curve_keygen | ||
%{_libdir}/libzmq.so.* | ||
|
||
%files devel | ||
%{_libdir}/libzmq.so | ||
%{_libdir}/pkgconfig/libzmq.pc | ||
%{_includedir}/zmq* | ||
%{_mandir}/man3/zmq*.3* | ||
%{_mandir}/man7/zmq*.7* | ||
|
||
|
||
%changelog | ||
* Thu Apr 17 2014 Thomas Spura <[email protected]> - 4.0.4-1 | ||
- update to 4.0.4 | ||
|
||
* Tue Feb 25 2014 Thomas Spura <[email protected]> - 4.0.3-2 | ||
- fix spurious-executable-perm | ||
- also provide/obsolete zeromq3-devel | ||
|
||
* Tue Feb 4 2014 Thomas Spura <[email protected]> - 4.0.3-1 | ||
- disable silent rules in configure | ||
- delete rpath with chrpath | ||
- provide zeromq3 with the version from zeromq4 | ||
|
||
* Thu Dec 12 2013 Jose Pedro Oliveira <jpo at di.uminho.pt> - 4.0.3-0.1 | ||
- initial zeromq v4 package (based on zeromq3's specfile) | ||
|
||
# vim:set ai ts=4 sw=4 sts=4 et: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include <czmq.h> | ||
#include <czmq/czmq.h> | ||
#include <jansson.h> | ||
#include "list.h" | ||
#include "log.h" | ||
|
Oops, something went wrong.