generated from pool/new_package
66 lines
2.2 KiB
RPMSpec
66 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package mark
|
|
#
|
|
# Copyright (c) 2025 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: 15.2.0
|
|
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
|
|
#!CreateArchive: mark
|
|
Source0: mark-%{version}.tar.gz
|
|
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
|
|
export GOFLAGS="$GOFLAGS -buildmode=pie -mod=vendor -trimpath"
|
|
export LDFLAGS="-X main.version=%{version}"
|
|
go build -o bin/mark
|
|
|
|
%install
|
|
install -D -m 0755 ./bin/mark "%{buildroot}/%{_bindir}/mark"
|
|
|
|
%check
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{_bindir}/mark
|
|
|
|
%changelog
|