Name: timew Version: 1.4.3 Release: 4%{?dist} Summary: Timewarrior tracks and reports time License: MIT URL: https://timewarrior.net/ # Do not use github tag archives # They do not contain the libshared git submodule Source0: https://github.com/GothenburgBitFactory/timewarrior/releases/download/v%{version}/%{name}-%{version}.tar.gz Source1: README.Fedora BuildRequires: cmake gcc-c++ BuildRequires: rubygem-asciidoctor %description Timewarrior is a time tracking utility that offers simple stopwatch features as well as sophisticated calendar-base backfill, along with flexible reporting. It is a portable, well supported and very active, Open Source project. Please read the /usr/share/doc/timew/README.Fedora file on using the included extensions. %prep %autosetup cp -v %{SOURCE1} . chmod -x ext/*.py doc/holidays/* for lib in ext/* doc/holidays/*; do sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new && touch -r $lib $lib.new && mv $lib.new $lib done # Correct cmake file to make it correctly install man pages sed -i 's|^install.*|install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}|' doc/man1/CMakeLists.txt sed -i 's|^install.*|install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}|' doc/man7/CMakeLists.txt # Install themes in _datadir instead of _docdir sed -i 's|DESTINATION.*|DESTINATION ${SHARE_INSTALL_PREFIX}/timew/themes/)|' doc/themes/CMakeLists.txt %build %cmake -DTIMEW_BINDIR=%{_bindir} -DTIMEW_DOCDIR=%{_pkgdocdir} -DTIMEW_MAN1DIR=%{_mandir}/man1/ -DTIMEW_MAN7DIR=%{_mandir}/man7/ -DTIMEW_MAN5DIR=%{_mandir}/man5/ %cmake_build %install %cmake_install # Not needed rm -f $RPM_BUILD_ROOT/%{_docdir}/%{name}/INSTALL # same as license rm -f $RPM_BUILD_ROOT/%{_docdir}/%{name}/LICENSE # Install Fedora readme file mv -v README.Fedora $RPM_BUILD_ROOT/%{_pkgdocdir}/ # Install bash completion file install -m 0755 completion/timew-completion.bash -DT $RPM_BUILD_ROOT/%{_datadir}/bash-completion/completions/timew %check # Run tests make test %{_smp_mflags} %files %license LICENSE %{_bindir}/%{name} %{_datadir}/%{name} %{_mandir}/man1/%{name}* %{_mandir}/man7/%{name}* %{_pkgdocdir}/ %{_datadir}/bash-completion/ %changelog * Sat Jul 23 2022 Fedora Release Engineering - 1.4.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jan 22 2022 Fedora Release Engineering - 1.4.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jun 17 2021 Ankur Sinha - 1.4.3-1 - Update to latest release - include tests - add bash completion * Wed Jan 27 2021 Fedora Release Engineering - 1.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Aug 31 2020 Ankur Sinha - 1.4.2-1 - Update to latest release * Wed Jul 29 2020 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Apr 21 2020 Aniket Pradhan - 1.3.0-1 - Version update to 1.3.0 * Fri Jan 31 2020 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Nov 25 2019 Ankur Sinha - 1.2.0-1 - Update to 1.2.0 * Tue Oct 01 2019 Ankur Sinha - 1.1.1-5 - Add Readme: https://bugzilla.redhat.com/show_bug.cgi?id=1631025 * Sat Jul 27 2019 Fedora Release Engineering - 1.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 1.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Mar 05 2018 Ankur Sinha - 1.1.1-1 - Update to latest upstream release * Fri Feb 09 2018 Fedora Release Engineering - 1.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 03 2018 Ankur Sinha - 1.0.0-3 - Add missing buildrequires * Wed Dec 07 2016 Ankur Sinha - 1.0.0-2 - Put files in the right place * Wed Dec 07 2016 Ankur Sinha - 1.0.0-1 - Initial rpmbuild