%global pypi_name cinemagoer %global pkg_version 2023.5.1 Name: python-cinemagoer Version: 2023.05.01 Release: 1%{?dist} Summary: Retrieve and manage the data of the IMDb movie database License: GPLv2+ URL: https://cinemagoer.github.io/ Source0: https://github.com/cinemagoer/cinemagoer/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools %{?python_enable_dependency_generator} %global _description\ cinemagoer is a Python package useful to retrieve and manage the data of\ the IMDb movie database about movies, people, characters and companies.\ \ cinemagoer can retrieve data from both the IMDb's web server and a local\ copy of the whole database. %description %_description %package -n python3-cinemagoer Summary: %{summary} %{?python_provide:%python_provide python3-cinemagoer} %description -n python3-cinemagoer %_description %prep %autosetup -n %{pypi_name}-%{version} %build %py3_build %install %py3_install #Don't include these as binaries, rather include them as examples in documentation #See Debian for reference rm -rf %{buildroot}%{_bindir} mv bin examples chmod 0644 examples/* for i in ar bg de en es fr it pt_BR sr tr; do mkdir -p %{buildroot}%{_datadir}/locale/$i/LC_MESSAGES/ install -p %{buildroot}%{python3_sitelib}/imdb/locale/$i/LC_MESSAGES/imdbpy.mo \ %{buildroot}%{_datadir}/locale/$i/LC_MESSAGES/ done %find_lang imdbpy %files -n python3-cinemagoer -f imdbpy.lang %license LICENSE.txt %doc CHANGELOG.txt CONTRIBUTORS.txt CREDITS.txt DISCLAIMER.txt README.rst %doc examples %{python3_sitelib}/imdb/ %exclude %{python3_sitelib}/imdb/locale/ %{python3_sitelib}/%{pypi_name}-%{pkg_version}-py%{python3_version}.egg-info/ %changelog * Wed Sep 03 2025 Pole - 2023.05.01-1 - First release of python-cinemagoer