Name: chrome-pwa-desktop-manage Version: 1.0.6 Release: 1%{?dist} Summary: Manage Chrome Progressive Web Apps desktop shortcuts License: MIT URL: https://github.com/lixiujunj2ee/chrome-pwa-desktop-manage BuildArch: noarch Requires: python3 %description A user-friendly tool to manage Chrome PWA desktop shortcuts on Linux. %prep # SCM 构建:源码已经被 git clone 到当前目录 %autosetup -S git %install rm -rf %{buildroot} install -Dm755 pwa %{buildroot}%{_bindir}/pwa install -Dm755 start_app.sh %{buildroot}%{_bindir}/chrome-pwa-desktop-manage install -d %{buildroot}%{_datadir}/%{name} install -Dm644 main.py %{buildroot}%{_datadir}/%{name}/main.py cp -a pwa/*.py *.py %{buildroot}%{_datadir}/%{name}/ 2>/dev/null || : install -Dm644 com.github.lixiujunj2ee.ChromePWADesktopManage.desktop \ %{buildroot}%{_datadir}/applications/com.github.lixiujunj2ee.ChromePWADesktopManage.desktop install -Dm644 icons/chrome-pwa-desktop-manage.png \ %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/com.github.lixiujunj2ee.ChromePWADesktopManage.png install -Dm644 com.github.lixiujunj2ee.ChromePWADesktopManage.metainfo.xml \ %{buildroot}%{_metainfodir}/com.github.lixiujunj2ee.ChromePWADesktopManage.metainfo.xml %post update-desktop-database &>/dev/null || : gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %postun update-desktop-database &>/dev/null || : gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %{_bindir}/pwa %{_bindir}/chrome-pwa-desktop-manage %dir %{_datadir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/com.github.lixiujunj2ee.ChromePWADesktopManage.desktop %{_datadir}/icons/hicolor/128x128/apps/com.github.lixiujunj2ee.ChromePWADesktopManage.png %{_metainfodir}/com.github.lixiujunj2ee.ChromePWADesktopManage.metainfo.xml