Name: kapow Version: 1.5.10 Release: 1%{?dist} Summary: A punch clock program License: GPLv3+ URL: http://gottcode.org/%{name} #Source0: http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2 %scm_source github https://github.com/gottcode/kapow master BuildRequires: qt5-qtbase-devel %description Kapow is a punch clock program designed to easily keep track of your hours, whether you're working on one project or many. Simply clock in and out with the Start/Stop button. If you make a mistake in your hours, you can go back and edit any of the entries by double-clicking on the session in question. Kapow also allows you to easily keep track of the hours since you last billed a client, by providing a helpful "Billed" check box--the totals will reflect your work after the last billed session. %prep #%setup -q %scm_setup # Request qmake to not strip the binary sed -i.backup '/QT += network/ a\ QMAKE_STRIP = echo' %{name}.pro %build # do a fast qt build, as runmapsym and wmapsym is not needed here export QMAKE_SH=$SHELL export FAST_BUILD=1 LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" export CFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" export LDFLAGS="%{__global_ldflags}" qmake "CONFIG+=release" %{name}.pro PREFIX=%{_prefix} make %{?_smp_mflags} %install make install INSTALL_ROOT=%{buildroot} mkdir -p %{buildroot}%{_bindir}/ mkdir -p %{buildroot}%{_datadir}/%{name}/translations mkdir -p %{buildroot}%{_mandir}/man1/ mkdir -p %{buildroot}%{_datadir}/%{name}/icons/ install -p -m 644 release/kapow.exe %{buildroot}%{_bindir}/ install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/ install -p -m 644 doc/%{name}.1 %{buildroot}%{_mandir}/man1/ install -p -m 644 icons/hicolor/32x32/apps/*.png %{buildroot}%{_datadir}/%{name}/icons/ %find_lang %{name} --with-qt %files -f %{name}.lang %doc COPYING CREDITS ChangeLog README %{_bindir}/%{name}.exe %{_datadir}/%{name}/icons/*.png %{_datadir}/%{name}/translations %{_mandir}/man1/%{name}.1.* %changelog * Fri Apr 24 2020 Elbert Pol - 1.5.10-1 - first QT5 RPM for OS2