-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,10 @@ | |
|
||
################################################################################ | ||
|
||
%global libcurl_ver %(rpm -q --quiet libcurl-devel && rpm -q --qf '%%{version}' libcurl-devel || echo "8") | ||
|
||
################################################################################ | ||
|
||
%global python_ver %(%{__python3} -c "import sys; print('{0}.{1}'.format(sys.version_info.major,sys.version_info.minor))" 2>/dev/null || echo 0.0) | ||
%{!?python3_sitearch: %global python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=True))" 2>/dev/null)} | ||
%{!?python3_sitelib: %global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" 2>/dev/null)} | ||
|
@@ -13,16 +17,12 @@ | |
%define package_name pycurl | ||
%define pypi_path a8/af/24d3acfa76b867dbd8f1166853c18eefc890fc5da03a48672b38ea77ddae | ||
|
||
# Used cURL version fo build | ||
# DO NOT FORGOT TO UPDATE IF NEWER VERSION IS USED! | ||
%define curl_version 7.86.0 | ||
|
||
################################################################################ | ||
|
||
Summary: A Python 3 interface to libcurl | ||
Name: python3-%{package_name} | ||
Version: 7.45.2 | ||
Release: 0%{?dist} | ||
Release: 1%{?dist} | ||
License: BSD | ||
Group: Development/Libraries | ||
URL: http://pycurl.io | ||
|
@@ -34,9 +34,9 @@ Source100: checksum.sha512 | |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} | ||
|
||
BuildRequires: python3-devel python3-setuptools | ||
BuildRequires: gcc openssl-devel curl-devel >= %{curl_version} | ||
BuildRequires: gcc openssl-devel libcurl-devel | ||
|
||
Requires: python3 python3-libs libcurl >= %{curl_version} | ||
Requires: python3 python3-libs libcurl >= %{libcurl_ver} | ||
|
||
Provides: %{name} = %{version}-%{release} | ||
|
||
|
@@ -80,6 +80,9 @@ rm -rf %{buildroot} | |
################################################################################ | ||
|
||
%changelog | ||
* Mon Dec 11 2023 Anton Novojilov <[email protected]> - 7.45.2-1 | ||
- Spec refactoring | ||
|
||
* Thu Feb 09 2023 Anton Novojilov <[email protected]> - 7.45.2-0 | ||
- https://github.com/pycurl/pycurl/compare/REL_7_43_0_4...REL_7_45_2 | ||
|
||
|