public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sudip Shil <sshil@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-phply] pr-3: Migrate to %pyproject_* macros and remove deprecated %py3_build/install
Date: Tue, 09 Jun 2026 07:24:26 GMT	[thread overview]
Message-ID: <178098986649.1.22437524732252998.rpms-python-phply-45095a32a6a5@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-phply
Branch : pr-3
Commit : 45095a32a6a5142aaa5b4fc2fc6b4132267fac42
Author : Sudip Shil <sshil@redhat.com>
Date   : 2025-07-14T17:42:42+05:30
Stats  : +16/-10 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-phply/c/45095a32a6a5142aaa5b4fc2fc6b4132267fac42?branch=pr-3

Log:
Migrate to %pyproject_* macros and remove deprecated %py3_build/install

---
diff --git a/python-phply.spec b/python-phply.spec
index b05985e..fe1f559 100644
--- a/python-phply.spec
+++ b/python-phply.spec
@@ -3,7 +3,7 @@
 
 Name:           python-%{pypi_name}
 Version:        1.2.5
-Release:        12%{?dist}
+Release:        13%{?dist}
 Summary:        PHP parser written in Python using PLY 
 
 License:        BSD-3-Clause
@@ -11,9 +11,12 @@ URL:            https://github.com/%{author}/%{pypi_name}
 Source0:        https://github.com/%{author}/%{pypi_name}/archive/refs/tags/%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz
 
 BuildArch:      noarch
-BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
-BuildRequires:  python3-ply
+
+BuildRequires:  python3dist(ply)
+BuildRequires:  pyproject-rpm-macros
+
+%generate_buildrequires
+%pyproject_buildrequires
 
 %description
 phply is a parser for the PHP programming language written using PLY.
@@ -25,28 +28,31 @@ Summary:        %{summary}
 phply is a parser for the PHP programming language written using PLY
 
 %prep
-%setup -q -n %{pypi_name}-%{version}
+%autosetup -n %{pypi_name}-%{version}
 
 %build
-%py3_build
+%pyproject_wheel
 
 %install
-%py3_install
+%pyproject_install
 rm -rf %{buildroot}/%{python3_sitelib}/tests
 
 %check
 %py3_check_import %{pypi_name}
 
-%files -n python%{python3_pkgversion}-%{pypi_name}
+%files -n python3-%{pypi_name}
 %doc README.md
 %license LICENSE
 %{_bindir}/phplex
 %{_bindir}/phpparse
 %{python3_sitelib}/%{pypi_name}
-%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
-%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}-nspkg.pth
+%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/
+%{python3_sitelib}/%{pypi_name}*.pth
 
 %changelog
+* Mon Jul 14 2025 Sudip Shil <sshil@redhat.com> - 1.2.5-13
+- Migrate to %pyproject_* macros and remove deprecated %py3_build/install
+
 * Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 1.2.5-12
 - Rebuilt for Python 3.14
 

                 reply	other threads:[~2026-06-09  7:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178098986649.1.22437524732252998.rpms-python-phply-45095a32a6a5@fedoraproject.org \
    --to=sshil@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox