9b7b1a9
Name:           jrnl
8720c7f
Version:        4.1
a033880
Release:        %autorelease
db11772
Summary:        Collect your thoughts and notes without leaving the command line
c992fdd
578b17b
License:        GPL-3.0-only
a14b9d9
URL:            https://jrnl.sh
a14b9d9
%global forgeurl https://github.com/jrnl-org/jrnl/
2ecf924
Source:         %{forgeurl}/archive/v%{version}/jrnl-%{version}.tar.gz
9b7b1a9
9b7b1a9
BuildArch:      noarch
9b7b1a9
9b7b1a9
BuildRequires:  python3-devel
c992fdd
e2781b3
BuildRequires:  dos2unix
c992fdd
BuildRequires:  help2man
9b7b1a9
e2781b3
# The mkdocs-generated HTML documentation is not suitable for packaging; see
e2781b3
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
e2781b3
#
e2781b3
# We can package the Markdown sources without building them; they are still
e2781b3
# relatively legible as plain text. However, the text documentation files are
e2781b3
# no longer large or numerous enough to justify a separate -doc subpackage.
e2781b3
Obsoletes:      jrnl-doc < 3.3-1
e2781b3
9b7b1a9
%description
a14b9d9
jrnl is a simple journal application for the command line.
c992fdd
c992fdd
You can use it to easily create, search, and view journal entries. Journals are
c992fdd
stored as human-readable plain text, and can also be encrypted using AES
c992fdd
encryption.
c992fdd
c992fdd
9b7b1a9
%prep
b399f69
%autosetup -n jrnl-%{version}
c992fdd
ce8b31a
dos2unix --keepdate \
e2781b3
    SECURITY.md \
e2781b3
    docs/external-editors.md \
e2781b3
    docs/journal-types.md \
e2781b3
    docs/reference-command-line.md \
e2781b3
    docs/reference-config-file.md
db11772
c992fdd
c992fdd
%generate_buildrequires
db11772
%pyproject_buildrequires -t
c992fdd
9b7b1a9
9b7b1a9
%build
c992fdd
%pyproject_wheel
c992fdd
c992fdd
# https://github.com/jrnl-org/jrnl/issues/74
e8312be
# https://github.com/jrnl-org/jrnl/issues/1274
a14b9d9
help2man --no-info '%{python3} -m jrnl' --output='jrnl.1'
c992fdd
9b7b1a9
9b7b1a9
%install
c992fdd
%pyproject_install
a14b9d9
%pyproject_save_files jrnl
9b7b1a9
a14b9d9
install -D -t '%{buildroot}%{_mandir}/man1' -p -m 0644 'jrnl.1'
c992fdd
c992fdd
c992fdd
%check
db11772
%tox
c992fdd
c992fdd
c992fdd
%files -f %{pyproject_files}
00e9454
%license LICENSE.md
c992fdd
c992fdd
%doc CHANGELOG.md
c992fdd
%doc CODE_OF_CONDUCT.md
c992fdd
%doc CONTRIBUTING.md
c992fdd
%doc README.md
db11772
%doc SECURITY.md
fe4bb1c
%doc docs/
c992fdd
e2781b3
%{_bindir}/jrnl
e2781b3
%{_mandir}/man1/jrnl.1*
e2781b3
9b7b1a9
9b7b1a9
%changelog
a033880
%autochangelog