Skip to content

Commit

Permalink
Merge pull request #126 from perfsonar/issue-1421
Browse files Browse the repository at this point in the history
issue-1421 changes for oracle 8 support
  • Loading branch information
cs1867 authored Apr 10, 2024
2 parents 5be45f8 + bcedc98 commit a6b0d70
Showing 1 changed file with 29 additions and 7 deletions.
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)

0 comments on commit a6b0d70

Please sign in to comment.