5ad069b
Name:       pdd
4d76409
Version:    1.7
7856301
Release:    %autorelease
5ad069b
Summary:    Tiny date, time diff calculator
5ad069b
657b5da
License:    GPL-3.0-or-later
5ad069b
URL:        https://github.com/jarun/pdd
5ad069b
Source0:    %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
4d76409
Patch1:     32.patch
5ad069b
5ad069b
BuildArch:  noarch
5ad069b
5ad069b
BuildRequires:  make
4d76409
BuildRequires:  python3-devel
4d76409
BuildRequires:  python3-dateutil
b2c67b0
Requires: python3-dateutil
5ad069b
5ad069b
5ad069b
%description
d1b9fa7
There are times you want to check how old you are (in years, months, days) or
d1b9fa7
how long you need to wait for the next flash sale... pdd (python3 date diff)
d1b9fa7
is a small cmdline utility to calculate date and time difference. If no
5ad069b
program arguments are specified it shows the current date, time and timezone.
5ad069b
5ad069b
5ad069b
%prep
5ad069b
%autosetup -p1 -n %{name}-%{version}
d1b9fa7
sed -i '1s/env //' pdd
5ad069b
5ad069b
%install
4d76409
mkdir -p %{buildroot}%{_datadir}/bash-completion/compilations/
4d76409
mkdir -p %{buildroot}%{_datadir}/zsh/site-functions/
4d76409
mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d/
5ad069b
%make_install PREFIX=%{_prefix}
5ad069b
5ad069b
5ad069b
%files
5ad069b
%doc CHANGELOG README.md
5ad069b
%license LICENSE
5ad069b
%{_bindir}/%{name}
5ad069b
%{_mandir}/man1/%{name}.1.*
4d76409
%{_datadir}/bash-completion/compilations/pdd
4d76409
%{_datadir}/fish/vendor_completions.d/pdd.fish
4d76409
%{_datadir}/zsh/site-functions/_pdd
4d76409
5ad069b
5ad069b
5ad069b
%changelog
7856301
%autochangelog