2023-09-29 16:14:46 +00:00
committed by Git OBS Bridge
commit 613a39f91e
5 changed files with 110 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d62ba618f9a938652fd53b483289e8662a99451839e59058c8beb286dfbc65ec
size 920664

4
restclient-cpp.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri Sep 29 16:12:18 UTC 2023 - Javier Llorente <javier@opensuse.org> 0.5.2
- Initial package

79
restclient-cpp.spec Normal file
View File

@@ -0,0 +1,79 @@
#
# spec file for package restclient-cpp
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: restclient-cpp
Version: 0.5.2
Release: 0
%define libversion 2.1.1
%define _libversion 2_1_1
Summary: C++ client for making HTTP/REST requests
License: MIT
Group: Development/Libraries/C and C++
URL: https://github.com/mrtazz/restclient-cpp
Source: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libcurl-devel
%define libname lib%{name}%{_libversion}
%description
This is a simple REST client for C++. It wraps libcurl for HTTP requests
%package -n %{libname}
Summary: C++ client for making HTTP/REST requests
%description -n %{libname}
This is a simple REST client for C++. It wraps libcurl for HTTP requests
%package -n lib%{name}-devel
Summary: Development files for REST client C++
Requires: %{libname} = %{version}
%description -n lib%{name}-devel
This is a simple REST client for C++. It wraps libcurl for HTTP requests
%prep
%autosetup
%build
%cmake
%install
%cmake_install
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%post -n lib%{name}-devel -p /sbin/ldconfig
%postun -n lib%{name}-devel -p /sbin/ldconfig
%files -n %{libname}
%{_libdir}/lib%{name}.so.%{libversion}
%files -n lib%{name}-devel
%license LICENSE
%doc CHANGELOG.md README.md
%{_includedir}/%{name}
%{_libdir}/cmake/%{name}
%{_libdir}/lib%{name}.so
%changelog