From 51afec5d4ce2b45d58f56a498a386fda260807e512d14e5ba57b2d82add454e3 Mon Sep 17 00:00:00 2001 From: Thomas Schraitle Date: Wed, 19 Jun 2024 06:51:41 +0000 Subject: [PATCH] Initial package OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/bk?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++++++ .gitignore | 1 + _service | 9 ++++++++ bk-0.6.0.tar.gz | 3 +++ bk.changes | 5 +++++ bk.spec | 58 +++++++++++++++++++++++++++++++++++++++++++++++++ vendor.tar.zst | 3 +++ 7 files changed, 102 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 bk-0.6.0.tar.gz create mode 100644 bk.changes create mode 100644 bk.spec create mode 100644 vendor.tar.zst diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..767e7db --- /dev/null +++ b/_service @@ -0,0 +1,9 @@ + + + + *.tar.gz + zst + true + + + diff --git a/bk-0.6.0.tar.gz b/bk-0.6.0.tar.gz new file mode 100644 index 0000000..5d2ead4 --- /dev/null +++ b/bk-0.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c720c8e81e86709f8543ca1a97a3c30b3bb33d55692a536cefed0ad2e3dfabcd +size 13952 diff --git a/bk.changes b/bk.changes new file mode 100644 index 0000000..2d210e6 --- /dev/null +++ b/bk.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Jun 13 22:31:23 UTC 2024 - Muhammad Akbar Yanuar Mantari + +- Initial package + diff --git a/bk.spec b/bk.spec new file mode 100644 index 0000000..fc50609 --- /dev/null +++ b/bk.spec @@ -0,0 +1,58 @@ +# +# spec file for package bk +# +# Copyright (c) 2024 mantarimay +# +# 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/ +# + + +%bcond_without test +Name: bk +Version: 0.6.0 +Release: 0 +Summary: Terminal ePub reader +License: MIT +URL: https://github.com/aeosynth/bk +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +Source1: vendor.tar.zst +BuildRequires: cargo-packaging + +%description +bk is a terminal EPUB reader, written in Rust with many features: + * Cross platform - Linux, macOS and Windows support + * Single binary, instant startup + * EPUB 2/3 support + * Vim bindings + * Incremental search + * Bookmarks + +%prep +%autosetup -a1 -p1 + +%build +%{cargo_build} + +%install +install -Dm755 target/release/%{name} -t %{buildroot}%{_bindir} + +%check +%if %{with test} +%{cargo_test} +%endif + +%files +%license LICEN* +%doc README* +%{_bindir}/%{name} + +%changelog diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..76083e3 --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e38557da04e8a1651c300c73d3f84aa634c399a6e6e5887e7334eadf7142f0bd +size 6298540