%global pypi_name filetype Name: python-%{pypi_name} Version: 1.2.0 Release: 5%{?dist} Summary: Infer file type and MIME type of any file/buffer License: MIT URL: https://github.com/h2non/filetype.py Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description Small and dependency free Python package to infer file type and MIME type checking the magic numbers signature of a file or buffer. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools Buildrequires: python3-pytest %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} Small and dependency free Python package to infer file type and MIME type checking the magic numbers signature of a file or buffer. %prep %setup -q -n %{pypi_name}.py-%{version} sed -i -e '/^#!\//, 1d' examples/*.py rm -rf examples/__init__.py %build %py3_build %install %py3_install rm -rf %{buildroot}%{python3_sitelib}/examples %check %pytest -v tests --ignore tests/test_benchmark.py \ -k "not test_guess_memoryview and not test_guess_extension_memoryview \ and not test_guess_mime_memoryview and not test_guess_zstd" %files -n python3-%{pypi_name} %doc README.rst History.md examples %license LICENSE %{_bindir}/%{pypi_name} %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info %changelog * Fri Jul 19 2024 Fedora Release Engineering - 1.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.2.0-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Dec 26 2023 Lyes Saadi - 1.2.0-1 - Updating to 1.2.0 (fix #2139522) * Fri Jul 21 2023 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 1.1.0-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Aug 23 2022 Fabian Affolter - 1.1.0-1 - Update to latest upstream release 1.1.0 (closes rhbz#2077428) * Fri Jul 22 2022 Fedora Release Engineering - 1.0.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.0.12-2 - Rebuilt for Python 3.11 * Wed Apr 20 2022 Fabian Affolter - 1.0.12-1 - Update to latest upstream release 1.0.12 (closes rhbz#2076800) * Wed Feb 23 2022 Fabian Affolter - 1.0.10-1 - Update to latest upstream release 1.0.10 (closes rhbz#2007701) * Fri Jan 21 2022 Fedora Release Engineering - 1.0.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 1.0.7-5 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.0.7-4 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.0.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 26 2020 Fabian Affolter - 1.0.7-1 - Update to latest upstream release 1.0.7 * Fri Jun 26 2020 Fabian Affolter - 1.0.5-13 - Add python3-setuptools as BR * Tue May 26 2020 Miro Hrončok - 1.0.5-12 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.0.5-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.0.5-10 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.0.5-9 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.0.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jun 25 2019 Fabian Affolter - 1.0.5-2 - Update to latest upstream release 1.0.5 - Fix license tag and add LICENSE file - Use upstream source - Enable tests * Sat Feb 02 2019 Fedora Release Engineering - 1.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek - 1.0.0-6 - Subpackage python2-filetype has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 1.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.0.0-4 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 06 2018 williamjmorenor@gmail.com - 1.0.0-2 - Initial import of BZ#1529025 * Mon Dec 25 2017 williamjmorenor@gmail.com - 1.0.0-1 - Initial packaging