From 7afcabeb7b41e5ebe25308d53876e0f9fe53a767 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Thu, 14 Nov 2024 13:33:35 +0800 Subject: [PATCH] adopt to new cmake macro --- nng.spec | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/nng.spec b/nng.spec index 08ac242..3a6922b 100644 --- a/nng.spec +++ b/nng.spec @@ -1,6 +1,6 @@ Name: nng Version: 1.5.2 -Release: 1 +Release: 2 Summary: nanomsg next generation: light-weight brokerless messaging License: MIT URL: https://nanomsg.github.io/nng/ @@ -26,6 +26,7 @@ a socket library that provides several common communication patterns. %package utils Summary: Command line interface for communicating with nng +Requires: %{name}%{?_isa} = %{version}-%{release} %description utils Includes nngcat, a simple utility for reading and writing to nanomsg @@ -37,18 +38,15 @@ sockets and bindings, which can include local and remote connections. %build %cmake -DCMAKE_CXX_FLAGS="%optflags -fPIC" -DBUILD_SHARED_LIBS=ON \ -DNNG_SUPP_TLS=ON -DNNG_SUPP_WEBSOCKET=ON -DNNG_ENABLE_NNGCAT=ON \ - -DNNG_TESTS=ON -DNNG_ENABLE_DOC=ON . + -DNNG_TESTS=ON -DNNG_ENABLE_DOC=ON -%make_build +%cmake_build %install -%make_install +%cmake_install # No need to ship dev docs as both html and man format rm -rf %{buildroot}/%{_mandir}/man[3-7]* -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig - %files %license LICENSE.txt %{_libdir}/libnng.so.1* @@ -61,10 +59,12 @@ rm -rf %{buildroot}/%{_mandir}/man[3-7]* %files utils %{_bindir}/nngcat -%{_mandir}/man1/nngcat.1.gz - %{_libdir}/libnng.so.1 +%{_mandir}/man1/nngcat.1* %changelog +* Thu Nov 14 2024 Funda Wang - 1.5.2-2 +- adopt to new cmake macro + * Thu Dec 9 2021 StrongTiger_001 - 1.5.2-1 - Update the package to 1.5.2 -- Gitee