Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37744516
en ru br
Репозитории ALT

Группа :: Разработка/Прочее
Пакет: libcoeurl

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

Name: libcoeurl
Version: 0.1.1
Release: alt2

Summary: A simple async wrapper around CURL for C++

Group: Development/Other
License: MIT
Url: https://nheko.im/nheko-reborn/coeurl.git

Source: %name-%version.tar
Patch0: %name-%version-add-pkgconfig.patch

BuildRequires: cmake gcc-c++ libspdlog-devel
BuildRequires: libevent-devel libcurl-devel

%description
Simple library to do http requests asynchronously via CURL in C++.

%package devel
Summary: Development files for %name
Group: Development/Other
Requires: %name = %version-%release

%description devel
Simple library to do http requests asynchronously via CURL in C++.

This package contains C++ header files for developing and the static
library.

%prep
%setup
%patch0 -p1

%build
# Undefined references from_json/to_json:
%define optflags_lto %nil

%cmake -DUSE_BUNDLED_SPDLOG=OFF   \
      -DUSE_BUNDLED_LIBEVENT=OFF \
      -DUSE_BUNDLED_LIBCURL=OFF  \
      -DBUILD_SHARED_LIBS=ON     \
      -DCMAKE_BUILD_TYPE=Release

%cmake_build

%install
%cmakeinstall_std

# Testing needs a local Synapse server instance

#%check
#%make_build test

%files
%doc README.md
%doc LICENSE
%_libdir/*.so

%files devel
%doc examples
%_includedir/coeurl
%_libdir/cmake/coeurl/*.cmake
%_libdir/pkgconfig/coeurl.pc

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin