%global __python %{__python2} Name: convert2rhel Version: 420.0.1 Release: 1.20240530103115338743.main%{?dist} Summary: RPM package to mock the behavior of original C2R for testing purposes License: GPLv3+ BuildArch: noarch BuildRequires: python2 Requires: python2 URL: https://github.com/oamg/c2r-mock-utility Source0: convert2rhel-420.0.1.tar.gz %description # Only for testing purposes %prep %setup -q -n convert2rhel-420.0.1 %build # No setup.py file present %install rm -rf %{buildroot}%{python_sitelib}/data # Create the /usr/share/convert2rhel/ directory for storing data files install -d %{buildroot}%{_datadir}/%{name}/ cp -ra data/ \ %{buildroot}%{_datadir}/%{name} install -m 755 -d %{buildroot}%{_bindir}/ cp -a convert2rhel.py \ %{buildroot}%{_bindir}/%{name} chmod 755 %{buildroot}%{_bindir}/%{name} %files %{_bindir}/%{name} %{_datadir}/%{name}/ %changelog * Thu May 30 2024 Packit - 420.0.1-1.20240530103115338743.main - Development snapshot (3e4aa9d5) * Thu May 30 2024 Martin Litwora - Second build * Mon Apr 16 2024 Martin Litwora - First initial build (huzzahh!)