Blob Blame History Raw
Name:           jrnl
Version:        3.3
Release:        %autorelease
Summary:        Collect your thoughts and notes without leaving the command line

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

#   Update dependency rich to v13
# Changes to poetry.lock are dropped because they are irrelevant here and would
# not apply cleanly.
Patch:          rich-13.patch

BuildArch:      noarch

BuildRequires:  python3-devel

BuildRequires:  dos2unix
BuildRequires:  help2man

# 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. However, the text documentation files are
# no longer large or numerous enough to justify a separate -doc subpackage.
Obsoletes:      jrnl-doc < 3.3-1

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

%autosetup -n jrnl-%{version}

dos2unix \ \
    docs/ \
    docs/ \
    docs/ \

%pyproject_buildrequires -t


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

%pyproject_save_files jrnl

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


%files -f %{pyproject_files}

%doc docs/