Name: convertall Version: 0.8.0 Release: 1%{?dist} Summary: Unit converter License: GPL-2.0-or-later URL: https://convertall.bellz.org/ Source0: https://github.com/doug-101/ConvertAll/releases/download/v%{version}/convertall-%{version}.tar.gz BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: python3-devel BuildRequires: python3-qt5 Requires: hicolor-icon-theme Requires: python3 Requires: python3-qt5 BuildArch: noarch %description With ConvertAll, you can combine the units any way you want. If you want to convert from inches per decade, that's fine. Or from meter-pounds. Or from cubic nautical miles. The units don't have to make sense to anyone else. %prep %autosetup -n ConvertAll %build %install ./install.py \ -b %{buildroot} \ -d %{_docdir}/%{name} \ -i %{_datadir}/%{name}/icons \ -p %{_prefix} %py_byte_compile %{__python3} %{buildroot}%{_datadir}/%{name} # desktop files install -D -m0644 icons/%{name}_sm.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}-icon.png install -D -m0644 icons/%{name}_med.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}-icon.png install -D -m0644 icons/%{name}_lg.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}-icon.png mkdir -p %{buildroot}%{_metainfodir} cat > %{buildroot}%{_metainfodir}/%{name}.appdata.xml < com.bellz.ConvertAll CC0-1.0 GPL-2.0-or-later ConvertAll Doug Bell A flexible unit converter https://convertall.bellz.org/ https://github.com/doug-101/ConvertAll/issues

With ConvertAll, you can combine the units any way you want. If you want to convert from inches per decade, that's fine. Or from meter-pounds. Or from cubic nautical miles. The units don't have to make sense to anyone else.

https://convertall.bellz.org/convertall.png convertall.desktop
EOF appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/*.appdata.xml desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop # unwanted files find %{buildroot}%{_docdir}/%{name} -delete rm -f %{buildroot}%{_datadir}/%{name}/%{name}.{pro,spec} rm -f %{buildroot}%{_datadir}/%{name}/translations/{*.ts,qt_*.qm} %find_lang %{name} --with-qt --without-mo %files -f %{name}.lang %license doc/LICENSE %doc doc/README*.html %{_bindir}/convertall %{_datadir}/applications/convertall.desktop %dir %{_datadir}/%{name} %{_datadir}/%{name}/*.py %{_datadir}/%{name}/__pycache__ %{_datadir}/%{name}/data/ %{_datadir}/%{name}/icons/ %dir %{_datadir}/%{name}/translations %{_datadir}/icons/hicolor/*/apps/%{name}-icon.* %{_metainfodir}/%{name}.appdata.xml %changelog * Thu Feb 09 2023 Yaakov Selkowitz - 0.8.0-1 - Initial release