Skip to content

Commit

Permalink
Pull in some EPEL changes to fix python-websockify
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Apr 24, 2024
1 parent 1bde0a4 commit fd7baaa
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions packages/python-websockify/rpm/python-websockify.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
%{!?package_release: %define package_release 1}
%define __brp_mangle_shebangs /bin/true
%global pkgname websockify

Name: python3-websockify
Name: python3-%{pkgname}
Version: %{package_version}
Release: %{package_release}%{?dist}
Summary: WSGI based adapter for the Websockets protocol
Expand All @@ -11,6 +12,7 @@ URL: https://github.com/novnc/websockify
Source0: https://github.com/novnc/websockify/archive/refs/tags/v%{package_version}.tar.gz
BuildArch: noarch
BuildRequires: python3-rpm-macros
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3-setuptools
Obsoletes: python-websockify
Expand All @@ -19,25 +21,21 @@ Obsoletes: python-websockify
Python WSGI based adapter for the Websockets protocol

%prep
%setup -q -n websockify-%{version}

# TODO: Have the following handle multi line entries
sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py
%autosetup -n %{pkgname}-%{version}

%build
%{__python3} setup.py build

%py3_build

%install
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
%py3_install

rm -Rf %{buildroot}/usr/share/websockify
mkdir -p %{buildroot}%{_mandir}/man1/
install -m 444 docs/websockify.1 %{buildroot}%{_mandir}/man1/


%files
%doc docs
%license COPYING
%{_mandir}/man1/websockify.1*
%{python3_sitelib}/websockify/*
%{python3_sitelib}/websockify-%{version}-py?.?.egg-info
Expand Down

0 comments on commit fd7baaa

Please sign in to comment.