Name: python-mglob Version: 0.4 Release: %mkrel 14 Summary: Enhanced file name globbing module Group: Development/Python License: MIT URL: https://pypi.org/project/mglob Source0: https://files.pythonhosted.org/packages/source/m/mglob/mglob-%{version}.zip # sent upstream via mail Patch0: mglob-0.4-built-in-set.patch BuildArch: noarch BuildRequires: pkgconfig(python) BuildRequires: python-setuptools BuildRequires: python3-devel BuildRequires: python3-setuptools %description Usable as stand-alone utility (for xargs, backticks etc.), or as a globbing library for own python programs. Some enhanced features are recursion, exclusion, and directory omission. %package -n python3-mglob Group: Development/Python Summary: Enhanced file name globbing module %{?python_provide:%python_provide python3-mglob} %description -n python3-mglob Usable as stand-alone utility (for xargs, backticks etc.), or as a globbing library for own python programs. Some enhanced features are recursion, exclusion, and directory omission. %prep %setup -q -n mglob-%{version} %patch0 sed -i -e '/^#!\//, 1d' mglob.py find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' %{_bindir}/2to3 --write --nobackups . %build %{__python3} setup.py build %install %{__python3} setup.py install -O1 --skip-build --root %{buildroot} mv %{buildroot}%{_bindir}/mglob %{buildroot}%{_bindir}/python3-mglob %files -n python3-mglob %{_bindir}/python3-mglob %{python3_sitelib}/__pycache__/mglob.cpython* %{python3_sitelib}/mglob.py* %{python3_sitelib}/mglob-%{version}-py%{python3_version}.egg-info %changelog * Wed Mar 23 2022 umeabot <umeabot> 0.4-14.mga9 + Revision: 1823645 - Mageia 9 Mass Rebuild * Wed Feb 23 2022 mrambo3501 <mrambo3501> 0.4-13.mga9 + Revision: 1783779 - rebuild for python-3.10 * Sun Feb 16 2020 umeabot <umeabot> 0.4-12.mga9 + Revision: 1532074 - Mageia 8 Mass Rebuild * Sun Sep 15 2019 tv <tv> 0.4-11.mga8 + Revision: 1441476 - rebuild for python-3.8 - drop python2 subpkg * Wed Jan 09 2019 shlomif <shlomif> 0.4-10.mga7 + Revision: 1353353 - Rebuild for python3 3.7 * Thu Sep 20 2018 umeabot <umeabot> 0.4-9.mga7 + Revision: 1289187 - Mageia 7 Mass Rebuild * Sat Aug 05 2017 pterjan <pterjan> 0.4-8.mga7 + Revision: 1135495 - Rebuild for python 3.6 * Fri Feb 19 2016 umeabot <umeabot> 0.4-7.mga6 + Revision: 970443 - Mageia 6 Mass Rebuild * Wed Oct 07 2015 tv <tv> 0.4-6.mga6 + Revision: 886737 - rebuild for python 3.5 * Wed Oct 15 2014 umeabot <umeabot> 0.4-5.mga5 + Revision: 746530 - Second Mageia 5 Mass Rebuild * Sat Sep 27 2014 tv <tv> 0.4-4.mga5 + Revision: 729058 - rebuild for missing pythoneggs deps * Tue Sep 16 2014 umeabot <umeabot> 0.4-3.mga5 + Revision: 688148 - Mageia 5 Mass Rebuild * Sat May 31 2014 pterjan <pterjan> 0.4-2.mga5 + Revision: 628793 - Rebuild for new Python * Fri Mar 14 2014 philippem <philippem> 0.4-1.mga5 + Revision: 603912 - remove not needed explicit dependency to 2to3 - imported package python-mglob