Initial package
OBS-URL: https://build.opensuse.org/package/show/home:javierllorente/restclient-cpp?expand=0&rev=1
This commit is contained in:
79
restclient-cpp.spec
Normal file
79
restclient-cpp.spec
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user