- Clean up the SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-freetype-py?expand=0&rev=17
This commit is contained in:
parent
3700dcbe79
commit
c377723a1f
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 4 16:14:59 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Clean up the SPEC file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 4 12:45:19 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-freetype-py
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -25,10 +25,11 @@ License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/rougier/freetype-py
|
||||
Source: https://files.pythonhosted.org/packages/source/f/freetype-py/freetype-py-%{version}.zip
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module toml}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: freetype2
|
||||
BuildRequires: python-rpm-macros
|
||||
@ -42,14 +43,14 @@ Freetype python provides bindings for the FreeType library.
|
||||
Only the high-level API is bound.
|
||||
|
||||
%prep
|
||||
%setup -q -n freetype-py-%{version}
|
||||
%autosetup -p1 -n freetype-py-%{version}
|
||||
sed -i -e '/^#!\//, 1d' freetype/ft_structs.py freetype/ft_types.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@ -58,6 +59,7 @@ sed -i -e '/^#!\//, 1d' freetype/ft_structs.py freetype/ft_types.py
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/freetype
|
||||
%{python_sitelib}/freetype_py-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user