diff --git a/0001-add-setup.py.patch b/0001-add-setup.py.patch index 7ad928db5ae0d6e0dea977c21f0fef5125c63612..5566ef99c615e550ed458a72f415248834222f5d 100644 --- a/0001-add-setup.py.patch +++ b/0001-add-setup.py.patch @@ -13,13 +13,19 @@ new file mode 100644 index 0000000..bac24a4 --- /dev/null +++ b/setup.py -@@ -0,0 +1,6 @@ +@@ -0,0 +1,12 @@ +#!/usr/bin/env python + -+import setuptools ++from setuptools import setup + -+if __name__ == "__main__": -+ setuptools.setup() ++entry_points = \ ++{'console_scripts': ['blurb = blurb:main']} ++ ++setup( ++ name='blurb', ++ version='1.1.0', ++ py_modules=['blurb'], ++ ) -- 2.25.1 diff --git a/python-blurb.spec b/python-blurb.spec index 545807061608ee6a8f2a126748a9c90dc83d9f15..c4b9ed527bbaeb877008256b826cb62bc1d558dc 100644 --- a/python-blurb.spec +++ b/python-blurb.spec @@ -1,9 +1,9 @@ %global _empty_manifest_terminate_build 0 Name: python-blurb Version: 1.1.0 -Release: 1 +Release: 2 Summary: Command-line tool to manage CPython Misc/NEWS.d entries. -License: BDS-3-Clause +License: BSD-3-Clause URL: https://github.com/python/core-workflow/tree/master/blurb Source0: https://files.pythonhosted.org/packages/71/34/676f8c4a16ac69cc5a1a59d871f6c34d019fb5f36df3a44d4e3e5f4b7362/blurb-1.1.0.tar.gz Patch0: 0001-add-setup.py.patch @@ -28,8 +28,7 @@ Provides: python3-blurb-doc blurb is a tool designed to rid CPython core development of the scourge of Misc/NEWS conflicts. %prep -%autosetup -n blurb-%{version} -%patch0 +%autosetup -n blurb-%{version} -p1 %build %py3_build @@ -69,6 +68,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Mon Feb 27 2023 caodongxia - 1.1.0-2 +- Adaptation to setup.py + * Fri Oct 14 2022 guozhengxin - 1.1.0-1 - Upgrade package to version 1.1.0