Skip to content

Commit 6e70a35

Browse files
committed
packaging: restore setuptools for redhat as well
1 parent 799ccd5 commit 6e70a35

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packaging/redhat_fedora/python3-opensips.spec

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ URL: https://github.com/OpenSIPS/python-opensips
99

1010
BuildArch: noarch
1111

12-
BuildRequires: pyproject-rpm-macros
1312
BuildRequires: python%{python3_pkgversion}-devel
14-
BuildRequires: python%{python3_pkgversion}dist(hatchling)
13+
BuildRequires: python%{python3_pkgversion}-setuptools
1514
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1615

1716
AutoReqProv: no
@@ -41,10 +40,10 @@ XMLRPC Interface.
4140
%autosetup -n %{name}-%{version}
4241

4342
%build
44-
%pyproject_wheel
43+
%py3_build
4544

4645
%install
47-
%pyproject_install
46+
%py3_install
4847
install -d %{buildroot}%{bash_completions_dir}/
4948
install -Dpm 0644 utils/completion/python-opensips -t %{buildroot}%{bash_completions_dir}/
5049

@@ -55,13 +54,16 @@ rm -rf $RPM_BUILD_ROOT
5554
%{_bindir}/opensips-event
5655
%{_bindir}/opensips-mi
5756
%{python3_sitelib}/opensips/*
58-
%{python3_sitelib}/opensips-*.dist-info
57+
%{python3_sitelib}/opensips-*.egg-info
5958
%{bash_completions_dir}/python-opensips
6059
%doc README.md
6160
%doc docs/*
6261
%license LICENSE
6362

6463
%changelog
64+
* Thu Feb 19 2026 Razvan Crainea <razvan@opensips.org> - 0.1.8-1
65+
- Use setuptools-based RPM build macros for EL compatibility
66+
6567
* Tue Feb 11 2025 Darius Stefan <darius.stefan@opensips.org> - 0.1.5-1
6668
- Set default communication type to fifo
6769
- Set correct default values for fifo communication

0 commit comments

Comments
 (0)