commit e86d6cec9d25815bb4c85cc624f0d1cc3c0b485d
Author: Jakub Bogusz <[email protected]>
Date:   Mon Dec 25 14:38:05 2017 +0100

    - separated from zeromq.spec, now package has separate releases
    - added nostatic patch (don't fail to find zeromq if zeromq-static is not 
installed)
    - release 2 (4.2.2-1 was packaged from zeromq.spec)

 cppzmq-nostatic.patch | 10 ++++++++
 cppzmq.spec           | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)
---
diff --git a/cppzmq.spec b/cppzmq.spec
new file mode 100644
index 0000000..95de679
--- /dev/null
+++ b/cppzmq.spec
@@ -0,0 +1,65 @@
+Summary:       CPP-ZMQ library
+Summary(pl.UTF-8):     Biblioteka CPP-ZMQ
+Name:          cppzmq
+Version:       4.2.2
+Release:       2
+License:       MIT
+Group:         Development/Libraries
+#Source0Download: https://github.com/zeromq/cppzmq/releases
+Source0:       
https://github.com/zeromq/cppzmq/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: bd809b47296e77fe9f192bd9dafd5cc3
+Patch0:                %{name}-nostatic.patch
+URL:           https://github.com/zeromq/cppzmq
+BuildRequires: cmake >= 3.0.0
+BuildRequires: pkgconfig
+BuildRequires: zeromq-devel >= %{version}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+CPP-ZMQ is the C++ interface for 0MQ library.
+
+%description -l pl.UTF-8
+CPP-ZMQ to interfejs C++ do biblioteki ØMQ.
+
+%package devel
+Summary:       CPP-ZMQ header files
+Summary(pl.UTF-8):     Pliki nagłówkowe CPP-ZMQ
+Group:         Development/Libraries
+Requires:      zeromq-devel >= %{version}
+
+%description devel
+Header files which constitute CPP-ZMQ library.
+
+CPP-ZMQ is the C++ interface for 0MQ library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe stanowiące bibliotekę CPP-ZMQ.
+
+CPP-ZMQ to interfejs C++ do biblioteki ØMQ.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+install -d build
+cd build
+%cmake ..
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files devel
+%defattr(644,root,root,755)
+%doc LICENSE README
+%{_includedir}/zmq.hpp
+%{_includedir}/zmq_addon.hpp
+%{_datadir}/cmake/cppzmq
diff --git a/cppzmq-nostatic.patch b/cppzmq-nostatic.patch
new file mode 100644
index 0000000..0978562
--- /dev/null
+++ b/cppzmq-nostatic.patch
@@ -0,0 +1,10 @@
+--- cppzmq-4.2.2/libzmqPkgConfigFallback.cmake.orig    2017-07-31 
15:30:55.000000000 +0200
++++ cppzmq-4.2.2/libzmqPkgConfigFallback.cmake 2017-12-25 14:33:02.688755906 
+0100
+@@ -15,6 +15,6 @@
+ set_property(TARGET libzmq-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES 
${PC_LIBZMQ_INCLUDE_DIRS})
+ set_property(TARGET libzmq-static PROPERTY IMPORTED_LOCATION 
${ZeroMQ_STATIC_LIBRARY})
+ 
+-if(ZeroMQ_LIBRARY AND ZeroMQ_STATIC_LIBRARY)
++if(ZeroMQ_LIBRARY)
+     set(ZeroMQ_FOUND ON)
+ endif()
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cppzmq.git/commitdiff/e86d6cec9d25815bb4c85cc624f0d1cc3c0b485d

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to