File mark.spec of Package mark
#
# spec file for package mark
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# nodebuginfo
Name: mark
Version: 14.0.4
Release: 0
Summary: A tool for syncing your markdown documentation with Atlassian Confluence pages
License: Apache-2.0
Group: Development/Languages/Other
URL: https://github.com/kovetskiy/mark
Source0: mark-%{version}.tar.xz
Source1: vendor.tar.gz
BuildRequires: golang(API) >= 1.24
BuildRequires: golang-packaging
%description
This is very useful if you store documentation to your software in a Git
repository and don't want to do an extra job of updating Confluence page
using a tinymce wysiwyg enterprise core editor which always breaks everything.
Mark does the same but in a different way. Mark reads your markdown file,
creates a Confluence page if it's not found by its name, uploads attachments,
translates Markdown into HTML and updates the contents of the page via REST API.
It's like you don't even need to create sections/pages in your Confluence anymore,
just use them in your Markdown documentation.
Mark uses an extended file format, which, still being valid markdown, contains
several HTML-ish metadata headers, which can be used to locate page inside
Confluence instance and update it accordingly.
%prep
%autosetup -D -a 1 -n mark-%{version}
%build
%{goprep} github.com/kovetskiy/mark
go build \
-mod=vendor \
-buildmode pie \
-ldflags="-s -X main.Version=%{version}" \
-o bin/mark
%install
install -D -m 0755 ./bin/mark "%{buildroot}/%{_bindir}/mark"
%check
%files
%doc README.md
%license LICENSE
%{_bindir}/mark
%changelog