Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue-1421 changes for oracle 8 support #126

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,31 @@
#
# RPM Spec for Python file-read-backwards Module
#
#
# Python
#

# This is the version we like.
%define _python_version_major 3

%if 0%{?el7}
%error EL7 is no longer supported. Try something newer.
%endif

%if 0%{?el8}%{?ol8}
# EL8 standardized on just the major version, as did EPEL.
%define _python python%{_python_version_major}

%else

# EL9+ has everyting as just plain python
%define _python python

%endif

%define short file-read-backwards

Name: python-%{short}
Name: %{_python}-%{short}
Version: 3.0.0
Release: 1%{?dist}
Summary: Memory efficient way of reading files line-by-line from the end of file
Expand All @@ -19,10 +40,11 @@ Url: https://github.com/RobinNil/file_read_backwards

Source: %{short}-%{version}.tar.gz

BuildRequires: python3
BuildRequires: python3-setuptools

Requires: python3
BuildRequires: %{_python}
BuildRequires: %{_python}-setuptools

Requires: %{_python}


%description
Expand All @@ -39,11 +61,11 @@ Memory efficient way of reading files line-by-line from the end of file


%build
%{python3} setup.py build
%{_python} setup.py build


%install
%{python3} setup.py install \
%{_python} setup.py install \
--root=$RPM_BUILD_ROOT \
--single-version-externally-managed -O1 \
--record=INSTALLED_FILES
Expand All @@ -54,4 +76,4 @@ rm -rf $RPM_BUILD_ROOT


%files -f INSTALLED_FILES
%defattr(-,root,root)
%defattr(-,root,root)
Loading