From b87d6ecf4ea1bd8b6cfd81e83b91dcd0abe6dc39 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 25 May 2024 14:42:47 +0200 Subject: [PATCH] package created using the webbuild interface [release 2023.5.1-1mamba;Sat May 25 2024] --- README.md | 2 ++ python-cinemagoer.spec | 68 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 python-cinemagoer.spec diff --git a/README.md b/README.md index 2c43889..f96f038 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-cinemagoer +Python package to access the IMDb's database. + diff --git a/python-cinemagoer.spec b/python-cinemagoer.spec new file mode 100644 index 0000000..03905b7 --- /dev/null +++ b/python-cinemagoer.spec @@ -0,0 +1,68 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-cinemagoer +Version: 2023.5.1 +Release: 1mamba +Summary: Python package to access the IMDb's database +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://cinemagoer.github.io/ +Source: https://pypi.debian.net/cinemagoer/cinemagoer-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython311-devel +BuildRequires: python3.11dist(lxml) +BuildRequires: python3.11dist(sqlalchemy) +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n cinemagoer-%{version} + +%build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} -m installer --destdir=%{buildroot} dist/*.whl + +#%if "%{?with_pyver}" != "3" +## Rename any conflicting file outside of python site packages tree +#for f in %{_bindir}/pdm; do +# mv %{buildroot}${f}{,-%{?pyappend}} +#done +#%endif + +%files %{?pyappend} +%defattr(-,root,root) +%{_bindir}/get_company.py +%{_bindir}/get_first_company.py +%{_bindir}/get_first_movie.py +%{_bindir}/get_first_person.py +%{_bindir}/get_keyword.py +%{_bindir}/get_movie.py +%{_bindir}/get_movie_list.py +%{_bindir}/get_person.py +%{_bindir}/get_top_bottom_movies.py +%{_bindir}/imdbpy +%{_bindir}/imdbpy2sql.py +%{_bindir}/s32cinemagoer.py +%{_bindir}/search_company.py +%{_bindir}/search_keyword.py +%{_bindir}/search_movie.py +%{_bindir}/search_person.py +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/imdb +%{python_sitelib}/imdb/* + +%changelog +* Sat May 25 2024 Silvan Calarco 2023.5.1-1mamba +- package created using the webbuild interface