# SPEC file for mpan, reverse engineered from the MLO version, as I can't find # a source RPM for it there. %if 0%{!?mkrel:1} %define mkrel(c) %{1}%{?dist} %endif %if "%{_vendor}" == "openEuler" || 0%{?epel} == 8 %undefine cmake_build %undefine cmake_install %endif %if 0%{!?cmake_build:1} %define cmake_build %make_build -C build %define cmake_flags -B build %endif %if 0%{!?cmake_install:1} %define cmake_install %make_install -C build %endif %global date 20250530 %global commit 53ba7eb7563fa2cabe33c4c566942cd19f9e28ed %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global mlover 1.pap.mlo9. %global prerel 0.git%{date}+%{shortcommit}. Name: mpan Version: 0.0.2 Release: %mkrel %{?mlover}%{?prerel}1 License: GPLv3 Summary: Control center for Manatools Group: System/Configuration URL: https://github.com/manatools/mpan Source0: https://github.com/manatools/mpan/archive/%{commit}.zip#/%{name}-%{commit}.zip BuildRequires: unzip BuildRequires: cmake BuildRequires: make BuildRequires: gcc, gcc-c++ BuildRequires: gettext BuildRequires: python3 >= 3.8 BuildRequires: python3dist(python-manatools) BuildRequires: python3-yui Requires: python3dist(pychroot) Requires: python3dist(python-manatools) BuildArch: noarch %description %{summary} %prep %autosetup -p1 -n %{name}-%{commit} %build %cmake %cmake_build %install %cmake_install %find_lang %{name} %files -f %{name}.lang %{_bindir}/%{name} %{_datadir}/icons %{python3_sitelib}/ %{_sysconfdir}/%{name}/