mirror of
https://github.com/openRuyi-Project/openRuyi.git
synced 2026-04-28 19:13:46 +00:00
43 lines
1.3 KiB
RPMSpec
43 lines
1.3 KiB
RPMSpec
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
|
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
|
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
|
|
#
|
|
# SPDX-License-Identifier: MulanPSL-2.0
|
|
|
|
%global srcname python-magic
|
|
|
|
Name: python-%{srcname}
|
|
Version: 0.4.27
|
|
Release: %autorelease
|
|
Summary: File type identification using libmagic
|
|
License: MIT
|
|
URL: https://github.com/ahupp/python-magic
|
|
#!RemoteAsset: sha256:c1ba14b08e4a5f5c31a302b7721239695b2f0f058d125bd5ce1ee36b9d9d3c3b
|
|
Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildSystem: pyproject
|
|
|
|
BuildOption(install): -l magic
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
BuildRequires: pkgconfig(python3)
|
|
BuildRequires: python3dist(setuptools)
|
|
|
|
Provides: python3-%{srcname}
|
|
%python_provide python3-%{srcname}
|
|
|
|
%description
|
|
This module uses ctypes to access the libmagic file type identification
|
|
library. It makes use of the local magic database and supports both textual
|
|
and MIME-type output.
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires
|
|
|
|
%files -f %{pyproject_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
|
|
%changelog
|
|
%autochangelog
|