Blob Blame History Raw
Name:           jrnl
Version:        2.8.3
Release:        %autorelease
Summary:        A simple journal application for the command line

License:        GPLv3
%global forgeurl
Source0:        %{forgeurl}/archive/v%{version}/jrnl-%{version}.tar.gz

# Fixed error related to display_format in config file for some values
# Rebased to apply to the 2.8.3 release.
# Fixes:
# display_format: pretty and display_format: short lead to crash
# [abrt] jrnl: _display_search_results():
# 'NoneType' object has
#     no attribute 'export'
Patch:          jrnl-2.8.3-display_format.patch

BuildArch:      noarch

BuildRequires:  python3-devel

BuildRequires:  help2man

jrnl is a simple journal application for the command line.

You can use it to easily create, search, and view journal entries. Journals are
stored as human-readable plain text, and can also be encrypted using AES

%package doc
Summary:        Documentation for jrnl

# The mkdocs-generated HTML documentation is not suitable for packaging; see
# for discussion.
# We can package the Markdown sources without building them; they are still
# relatively legible as plain text.

%description doc
The jrnl-doc package contains detailed documentation for jrnl.

%autosetup -n jrnl-%{version} -p1

%pyproject_buildrequires -x testing


help2man --no-info '%{python3} -m jrnl' --output='jrnl.1'

%pyproject_save_files jrnl

install -D -t '%{buildroot}%{_mandir}/man1' -p -m 0644 'jrnl.1'

export PYTHONPATH="${PWD}:%{buildroot}%{python3_sitelib}"
%pytest tests/unit
%pytest tests/bdd --gherkin-terminal-reporter

%files -f %{pyproject_files}

%files doc
%doc docs/