File mhogomchungu_NetworkAccessManager.spec of Package mhogomchungu_NetworkAccessManager
#
# spec file for package mhogomchungu_NetworkAccessManager
#
# Copyright (c) 2024 Asterios Dramis <asterios.dramis@gmail.com>
#
# 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.
%define so_ver 1_0_0
Name: mhogomchungu_NetworkAccessManager
Version: 1.0.0
Release: 0
Summary: QNetworkAccessManager Additional C++ features
License: BSD-2-Clause
Group: Development/Libraries/C and C++
URL: https://github.com/mhogomchungu/NetworkAccessManager/
Source0: https://github.com/mhogomchungu/NetworkAccessManager/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE fix_build.patch asterios.dramis@gmail.com -- Fix package compilation with Qt5Network
Patch0: fix_build.patch
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Network)
%description
This single header library "modernizes" QNetworkAccessManager by adding modern
C++ features to it.
%package devel
Summary: Development Files for mhogomchungu_NetworkAccessManager
Group: Development/Libraries/C and C++
Requires: libmhogomchungu_network%{so_ver} = %{version}
%description devel
This package includes development files for mhogomchungu_NetworkAccessManager.
%package -n libmhogomchungu_network%{so_ver}
Summary: QNetworkAccessManager Additional C++ features
Group: System/Libraries
%description -n libmhogomchungu_network%{so_ver}
This single header library "modernizes" QNetworkAccessManager by adding modern
C++ features to it.
%prep
%autosetup -p1 -n NetworkAccessManager-%{version}
%build
%cmake \
-DMHOGOMCHUNGU_NETWORK_INSTALL=TRUE
%cmake_build
%install
%cmake_install
%post -n libmhogomchungu_network%{so_ver} -p /sbin/ldconfig
%postun -n libmhogomchungu_network%{so_ver} -p /sbin/ldconfig
%files devel
%license LICENSE
%doc README.md
%{_includedir}/mhogomchungu/
%{_libdir}/*.so
%{_libdir}/pkgconfig/mhogomchungu_network.pc
%files -n libmhogomchungu_network%{so_ver}
%{_libdir}/libmhogomchungu_network.so.1.0.0*
%changelog