From d96ca142aef18debc403e9119335edbeb68c3c3166d96eb002e50adfb7503de5 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 28 Oct 2022 13:23:31 +0000 Subject: [PATCH] Accepting request 1031662 from home:uncomfyhalomacro I want to maintain xplr in utilities OBS-URL: https://build.opensuse.org/request/show/1031662 OBS-URL: https://build.opensuse.org/package/show/utilities/xplr?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + cargo_config | 6 ++++ v0.19.4.tar.gz | 3 ++ v0.19.4.tar.gz.asc | 16 +++++++++++ vendor.tar.gz | 3 ++ xplr.changes | 4 +++ xplr.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 127 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 cargo_config create mode 100644 v0.19.4.tar.gz create mode 100644 v0.19.4.tar.gz.asc create mode 100644 vendor.tar.gz create mode 100644 xplr.changes create mode 100644 xplr.spec 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/cargo_config b/cargo_config new file mode 100644 index 0000000..b0f03a7 --- /dev/null +++ b/cargo_config @@ -0,0 +1,6 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" + diff --git a/v0.19.4.tar.gz b/v0.19.4.tar.gz new file mode 100644 index 0000000..cb32ad2 --- /dev/null +++ b/v0.19.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ecc4a3c10396963411357d0e8692cf8e96aa0c2364104a6c8569e19778b90289 +size 423075 diff --git a/v0.19.4.tar.gz.asc b/v0.19.4.tar.gz.asc new file mode 100644 index 0000000..b91c9bb --- /dev/null +++ b/v0.19.4.tar.gz.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEE1ZyhRxDBfGskcXr5D471JY3DgHcFAmM+8xEACgkQD471JY3D +gHcGRw//dxwLiaRsIzCl8MXo1Y2wXBaooMdpdLYPYT8XOB6255Vi6zVZhfhQgROP +l84EITG9AAS7+uyhWvtPaW1vF0PBOswvts/9ZmA8VerRIUtE4cWh15zGlqBPQiGz +tQI2F+BP8S8KV+dbjIuf7UhO/Cgge3CBPXXLltrXkGmtGCXrHB9EiYkWJHIqLR1h +RTp4TloMvxm/LRPdA52f4zpDPipeomiGnpVEuWUGLef3lH09P9sGfKOAEz73EW5l +/rwjDUPfwMArSgeCHutQLeDm3SGwALm5VHGEX/hZaybuHARLEn3EuEf3efmif0wo +X0Xqb23EvaX2cC0KnzyXFF9ezSrAKuqMLngzOwCRpGnGnn60VC8OMJV3xR59c8vV +nEUR0k9aj84bMY/BrljFlde++v4b5lAZRR/SERXS0d5oE8V6I6qM3Ef0+OdO91kM +o7SZfrzagunbpXrCui2XJyLAB4jcEsL3XpuglBgrTmWRRKLnnHOCVx4vdlFMMp0v +rnZUIxL7ym4QuwRixK2I+Ykp7IhlQ5jPGoPuQMw+KdeElN+DM60p0KHJETB6YQ2n +P1euS9kyhTM6wSaZMWju+KMptqSaOCcggOoaAmX+ouMtYwBcK2porsm8WZE9NvzW +YIOj6LmLjRKg2YbDzqcBdZwjqBJRp50HiTVlj/9qhWc90gsssbg= +=tWK4 +-----END PGP SIGNATURE----- diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..c583c1d --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:757f47b30f2cd52683bc0ea2d8b0608dc42243503ec8b8034d26b8f970b8475d +size 259399680 diff --git a/xplr.changes b/xplr.changes new file mode 100644 index 0000000..d378d2d --- /dev/null +++ b/xplr.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Oct 27 14:53:26 UTC 2022 - Soc Virnyl Estela + +- Initial spec for xplr 0.19.4 diff --git a/xplr.spec b/xplr.spec new file mode 100644 index 0000000..3486666 --- /dev/null +++ b/xplr.spec @@ -0,0 +1,71 @@ +# +# spec file for package xplr +# +# Copyright (c) 2022 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/ +# + + +Name: xplr +Version: 0.19.4 +Release: 0 +Summary: Hackable, minimal, fast TUI file explorer +License: MIT +Group: Productivity/File utilities +URL: https://github.com/sayanarijit/xplr +Source0: https://github.com/sayanarijit/xplr/archive/refs/tags/v%{version}.tar.gz +Source1: vendor.tar.gz +Source2: cargo_config +Source3: https://github.com/sayanarijit/xplr/releases/download/v0.19.4/source.tar.gz.asc#/v%{version}.tar.gz.asc +BuildRequires: cargo-packaging +BuildRequires: rust+cargo +BuildRequires: hicolor-icon-theme + +%description +xplr is a terminal UI based file explorer that aims to increase our terminal productivity by being a flexible, +interactive orchestrator for the ever growing awesome command-line utilities that work with the file-system. +To achieve its goal, xplr strives to be a fast, minimal and more importantly, hackable file explorer. + +xplr is not meant to be a replacement for the standard shell commands or the GUI file managers. Rather, it aims +to integrate them all and expose an intuitive, scriptable, keyboard controlled, real-time visual interface, also +being an ideal candidate for further integration, enabling you to achieve insane terminal productivity. + +%prep +%autosetup -a1 +mkdir -p .cargo +cp %{SOURCE2} .cargo/config + +%build +%{cargo_build} + +%install +%{cargo_install} + +install -Dm644 -T \ + %{_builddir}/%{name}-%{version}/assets/desktop/%{name}.desktop \ + %{buildroot}%{_datadir}/applications/%{name}.desktop + +for i in 128 16 32 64; do + install -Dm644 "%{_builddir}/%{name}-%{version}/assets/icon/%{name}${i}.png" "%{buildroot}/%{_datadir}/icons/hicolor/${i}-${i}/apps/%{name}.png" +done + +install -Dm644 "%{_builddir}/%{name}-%{version}/assets/icon/%{name}.svg" -t "%{buildroot}/%{_datadir}/icons/hicolor/scalable/apps" + +%files +%license LICENSE +%doc CONTRIBUTING.md README.md RELEASE.md +%{_bindir}/%{name} +%{_datadir}/icons/* +%{_datadir}/applications/* + +%changelog