17
0

Compare commits

4 Commits

2 changed files with 22 additions and 6 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Jun 16 06:12:17 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyroject macros.
-------------------------------------------------------------------
Wed Jun 19 10:32:30 UTC 2024 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 16 14:46:26 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org> Thu May 16 14:46:26 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-cinemagoer # spec file for package python-cinemagoer
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,7 @@
# #
%define skip_python2 1 %{?sle15_python_module_pythons}
Name: python-cinemagoer Name: python-cinemagoer
Version: 2023.5.1 Version: 2023.5.1
Release: 0 Release: 0
@@ -25,8 +25,10 @@ License: GPL-2.0-or-later
URL: https://cinemagoer.sourceforge.io/ URL: https://cinemagoer.sourceforge.io/
Source: https://files.pythonhosted.org/packages/source/c/cinemagoer/cinemagoer-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/c/cinemagoer/cinemagoer-%{version}.tar.gz
Patch0: do_not_install_scripts.patch Patch0: do_not_install_scripts.patch
BuildRequires: %{python_module devel} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-SQLAlchemy Requires: python-SQLAlchemy
@@ -49,10 +51,10 @@ copy of the whole database.
%autosetup -p1 -n cinemagoer-%{version} %autosetup -p1 -n cinemagoer-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
# Do not install python scripts under locale/, they are only used at build time # Do not install python scripts under locale/, they are only used at build time
# for the translations # for the translations
@@ -61,6 +63,10 @@ copy of the whole database.
%python_expand rm %{buildroot}/%{$python_sitelib}/imdb/locale/*.po %python_expand rm %{buildroot}/%{$python_sitelib}/imdb/locale/*.po
%python_clone -a %{buildroot}%{_bindir}/imdbpy %python_clone -a %{buildroot}%{_bindir}/imdbpy
%check
# The just about the entire testsuite wants network access
%pytest -k "test_series_full_cast_has_ids"
%post %post
%python_install_alternative imdbpy %python_install_alternative imdbpy
@@ -71,7 +77,7 @@ copy of the whole database.
%doc README.rst CHANGELOG.txt %doc README.rst CHANGELOG.txt
%license LICENSE.txt %license LICENSE.txt
%python_alternative %{_bindir}/imdbpy %python_alternative %{_bindir}/imdbpy
%{python_sitelib}/cinemagoer-%{version}-py%{python_version}.egg-info %{python_sitelib}/cinemagoer-%{version}.dist-info
%{python_sitelib}/imdb %{python_sitelib}/imdb
%lang(ar) %{python_sitelib}/imdb/locale/ar/LC_MESSAGES/imdbpy.mo %lang(ar) %{python_sitelib}/imdb/locale/ar/LC_MESSAGES/imdbpy.mo
%lang(bg) %{python_sitelib}/imdb/locale/bg/LC_MESSAGES/imdbpy.mo %lang(bg) %{python_sitelib}/imdb/locale/bg/LC_MESSAGES/imdbpy.mo