-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New RPM spec is based on RHEL RPM guide for Python packages [1] merged with results of `python3 setup.py bdist_rpm --spec-only`. Beware that RPM name is changed based on recommendations for all mainstream distributives (for example, see [2]). Binary RPM is named python3-tarantool and source RPM is named python-tarantool. Before the patch they both were called tarantool-python (even though there wasn't new RPM releases since 0.6.5). RPM is suitable for distributives with Python 3.7 or newer. See [3] about pre-Python 3.7 systems support. 1. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/installing_and_using_dynamic_programming_languages/assembly_packaging-python-3-rpms_installing-and-using-dynamic-programming-languages 2. https://fedoraproject.org/wiki/Packaging:Naming?rd=Packaging:NamingGuidelines#Python_source_package_naming 3. #257 Part of #164, #198
- Loading branch information
1 parent
2f8b46c
commit 2fb5448
Showing
6 changed files
with
150 additions
and
117 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Based on https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/installing_and_using_dynamic_programming_languages/assembly_packaging-python-3-rpms_installing-and-using-dynamic-programming-languages | ||
# merged with python3 setup.py bdist_rpm --spec-only result. | ||
|
||
%define srcname tarantool | ||
%define version %(python3 setup.py --version) | ||
|
||
Name: python-%{srcname} | ||
Version: %{version} | ||
Release: 1%{?dist} | ||
Summary: Python client library for Tarantool | ||
|
||
License: BSD | ||
Group: Development/Libraries | ||
URL: https://github.com/tarantool/tarantool-python | ||
|
||
BuildArch: noarch | ||
Source: %{srcname}-%{version}.tar.gz | ||
Vendor: tarantool-python AUTHORS <[email protected]> | ||
|
||
BuildRequires: python3-setuptools | ||
BuildRequires: python3-wheel | ||
|
||
%global _description %{expand: | ||
Python client library for Tarantool.} | ||
|
||
%description %_description | ||
|
||
|
||
%package -n python3-%{srcname} | ||
|
||
Requires: python3-msgpack | ||
Requires: python3-pandas | ||
Requires: python3-pytz | ||
|
||
Summary: %{summary} | ||
|
||
Obsoletes: tarantool-python <= 0.9.0 | ||
|
||
%description -n python3-%{srcname} %_description | ||
|
||
|
||
%prep | ||
%setup -n %{srcname}-%{version} | ||
|
||
|
||
%build | ||
python3 setup.py build | ||
|
||
|
||
%install | ||
python3 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES | ||
|
||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
|
||
%files -n python3-%{srcname} -f INSTALLED_FILES | ||
|
||
|
||
%defattr(-,root,root) |
This file was deleted.
Oops, something went wrong.