Name: jrnl Version: 4.0 Release: %autorelease Summary: Collect your thoughts and notes without leaving the command line License: GPL-3.0-only URL: https://jrnl.sh %global forgeurl https://github.com/jrnl-org/jrnl/ Source: %{forgeurl}/archive/v%{version}/jrnl-%{version}.tar.gz # Revert “Lock ruamel.yaml version until bug is fixed (#1738)”, # 0b55c477e17fa7ac4d7d91bbda5d712f3ef8b67b # # That commit corresponds to PR “Lock ruamel.yaml version to v0.17.21 until bug # is fixed”, https://github.com/jrnl-org/jrnl/pull/1738 # # The bug in question was “Failing Mac test on develop branch”, # https://github.com/jrnl-org/jrnl/issues/1736; since it was Mac-specific, we # can safely remove the version bound downstream. # # It looks like the version bound is already removed upstream in 4.0.1~beta. # # The patch is hand-edited to remove irrelevant poetry.lock diffs. Patch: 0001-Revert-Lock-ruamel.yaml-version-until-bug-is-fixed-1.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: dos2unix BuildRequires: help2man # The mkdocs-generated HTML documentation is not suitable for packaging; see # https://bugzilla.redhat.com/show_bug.cgi?id=2006555 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 %description 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 encryption. %prep %autosetup -n jrnl-%{version} -p1 dos2unix \ SECURITY.md \ docs/external-editors.md \ docs/journal-types.md \ docs/reference-command-line.md \ docs/reference-config-file.md %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel # https://github.com/jrnl-org/jrnl/issues/74 # https://github.com/jrnl-org/jrnl/issues/1274 help2man --no-info '%{python3} -m jrnl' --output='jrnl.1' %install %pyproject_install %pyproject_save_files jrnl install -D -t '%{buildroot}%{_mandir}/man1' -p -m 0644 'jrnl.1' %check %tox %files -f %{pyproject_files} %license LICENSE.md %doc CHANGELOG.md %doc CODE_OF_CONDUCT.md %doc CONTRIBUTING.md %doc README.md %doc SECURITY.md %doc docs/ %{_bindir}/jrnl %{_mandir}/man1/jrnl.1* %changelog %autochangelog