Name: meteo-qt Version: 4.2 Release: %autorelease Summary: System tray application for weather License: GPL-3.0-only URL: https://github.com/dglent/meteo-qt Source0: %{url}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-setuptools BuildRequires: python3-lxml BuildRequires: python3-pyqt6-base BuildRequires: qt6-qtbase-devel BuildRequires: qt6-linguist %description meteo-qt is an application to display weather information in desktop panels, desktop notifications and its own window. %prep %autosetup sed -i -e 's|lrelease-pro-qt|lrelease-qt|' setup.py sed -i -e 's|/usr/share/|%{_datadir}/|g' setup.py meteo_qt/meteo_qt.py # FIXME: not used, as setup.py tries to execute commands too early #generate_buildrequires #pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L meteo_qt sed -i -e '/translations/d' %{pyproject_files} mv %{buildroot}%{python3_sitelib}%{_prefix}/* %{buildroot}%{_prefix}/ rm -fr %{buildroot}%{_docdir}/%{name} %find_lang %{name} --with-qt %check %pyproject_check_import %files -f %{pyproject_files} -f %{name}.lang %license LICENSE %doc CHANGELOG README.md %{_bindir}/meteo-qt %{_datadir}/applications/meteo-qt.desktop %{_datadir}/icons/weather-few-clouds.png %changelog %autochangelog