diff --git a/README.Fedora b/README.Fedora new file mode 100644 index 0000000..dc777be --- /dev/null +++ b/README.Fedora @@ -0,0 +1,12 @@ +Extensions need shebangs to be added to them +--------------------------------------------- + +When using the extensions that are provided in the /usr/share/doc/timew +directory, please remember to re-add shebangs to them after copying them over. +The shebang should be: + +#!/usr/bin/python3 + +They must also be made executable: + +chmod +x diff --git a/timew.spec b/timew.spec index d605c3d..f912e2d 100644 --- a/timew.spec +++ b/timew.spec @@ -1,11 +1,12 @@ Name: timew Version: 1.1.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Timewarrior tracks and reports time License: MIT URL: https://timewarrior.net/ Source0: http://taskwarrior.org/download/%{name}-%{version}.tar.gz +Source1: README.Fedora BuildRequires: cmake gcc-c++ @@ -14,9 +15,13 @@ 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 mkdir %{_target_platform} +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 && @@ -48,9 +53,13 @@ mv -v $RPM_BUILD_ROOT/%{_docdir}/%{name}/doc $RPM_BUILD_ROOT/%{_datadir}/%{name} %{_docdir}/%{name} %{_datadir}/%{name} %{_mandir}/man1/%{name}.* +%doc README.Fedora %changelog +* 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