%define commit 2406823c344d97e5d1e8f9dc492a8f6ce102583b Name: epfl-menu-git Version: 0 Release: 4.%{commit}%{?dist} Summary: A pretty printer for the lunch menu at epfl License: Beerware URL: https://github.com/gcmalloc/epfl-menu/ Source0: %{url}/archive/%{commit}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: sed Requires: python3 Requires: python3dist(beautifulsoup4) # Disable automatic dependency generation due to failing bs4 dependency. %{?python_disable_dependency_generator} %description %{summary}. %prep %autosetup -n epfl-menu-%{commit} # Rename executable from menu to epfl-menu mv bin/menu bin/epfl-menu sed -i 's/bin\/menu/bin\/epfl-menu/g' setup.py %build %py3_build %install %py3_install %files %doc README %{_bindir}/epfl-menu %{python3_sitelib}/epfl_menu*.egg-info/ %{python3_sitelib}/epfl/ %changelog * Mon Jul 22 2019 Timothée Floure - 0-4.2406823c344d97e5d1e8f9dc492a8f6ce102583b - Disable automatic python dependency generation * Thu May 16 2019 Timothée Floure - 0-3.2406823c344d97e5d1e8f9dc492a8f6ce102583b - Bump package release due to version issue on copr * Tue Apr 30 2019 Timothée Floure - 0-2.2406823c344d97e5d1e8f9dc492a8f6ce102583b - Fix broken bs4 dependency * Tue Apr 30 2019 Timothée Floure - 0-1.2406823c344d97e5d1e8f9dc492a8f6ce102583b - Rename menu executable to epfl-menu. * Tue Apr 30 2019 Timothée Floure - 0-0.2406823c344d97e5d1e8f9dc492a8f6ce102583b - Let there be package.