Skip to content

Commit

Permalink
python3-pycurl spec refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Dec 11, 2023
1 parent cf87b9d commit f30062b
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions specs/python3-pycurl.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand All @@ -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
Expand All @@ -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}

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit f30062b

Please sign in to comment.