Sisyphus repository
Last update: 24 september 2022 | SRPMs: 17655 | Visits: 25029466
en ru br
ALT Linux repos
S:2.4.1-alt4.git20140508

Group :: System/Libraries
RPM: libsocket

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: libsocket
Version: 2.4.1
Release: alt3.git20140508

Summary: The ultimate socket library, supporting TCP, UDP and Unix sockets (DGRAM and STREAM)
License: BSD
Group: System/Libraries

Url: https://github.com/dermesser/libsocket
Source: %name-%version.tar

BuildRequires: gcc-c++ cmake
%ifnarch e2k
# TODO: is it reasonable on x86 either?
BuildRequires: clang-devel
%endif

%description
The ultimate socket library, supporting TCP, UDP and Unix sockets (DGRAM
and STREAM). C/C++ wrappers (fully object-oriented in C++). Recent
features: IPv4/IPv6 multicast support (C/C++) +++ Linux epoll wrapper
(C++).

%package devel
Summary: Development files of %name
Group: Development/C++
Requires: %name = %EVR
BuildArch: noarch

%description devel
The ultimate socket library, supporting TCP, UDP and Unix sockets (DGRAM
and STREAM). C/C++ wrappers (fully object-oriented in C++). Recent
features: IPv4/IPv6 multicast support (C/C++) +++ Linux epoll wrapper
(C++).

This package contains development files of %name.

%prep
%setup

%build
%ifnarch e2k
# Clang doesn't support these options
%remove_optflags -frecord-gcc-switches
%endif

cmake \
%if %_lib == lib64
-DLIB_SUFFIX=64 \
%endif
-DCMAKE_INSTALL_PREFIX:PATH=%prefix \
-DCMAKE_C_FLAGS:STRING="%optflags" \
-DCMAKE_CXX_FLAGS:STRING="%optflags" \
-DCMAKE_Fortran_FLAGS:STRING="%optflags" \
%ifnarch e2k
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
%endif
-DCMAKE_STRIP:FILEPATH="/bin/echo" \
.

%make_build VERBOSE=1

%install
%makeinstall_std

%files
%doc CONTRIBUTORS *.md doc/*
%_libdir/*.so

%files devel
%_includedir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin