SHA256
1
0
forked from pool/starship
starship/starship.spec

64 lines
1.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package starship
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
Name: starship
Version: 0.55.0
Release: 0
Summary: The minimal, blazing-fast, and infinitely customizable prompt for any shell
License: ISC
Url: https://starship.rs/
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.xz
Source2: cargo_config
BuildRequires: rust-packaging
BuildRequires: pkgconfig(openssl)
%description
The minimal, blazing-fast, and infinitely customizable prompt for any shell!
Fast: it's fast really really fast! rocket
Customizable: configure every aspect of your prompt.
Universal: works on any shell, on any operating system.
Intelligent: shows relevant information at a glance.
Feature rich: support for all your favorite tools.
Easy: quick to install start using it in minutes.
%prep
%setup -qa1
Accepting request 890205 from home:Dead_Mozay - Update to version 0.53.0: * configure: fix launching .cmd editors * fish: explicitly set scope in fish init script * gcloud: add double space after cloud emoji symbol * init: always use lf line endings * print-config: add red module to Default impl * print-config: use proper defaults for top-level values * zsh: Reverts changes to background jobs retaining improvements around START_TIME - Update to version 0.52.1: * fix docker_context module name in nf preset * Add a missing ' ' to the end of the python prompt * context: remove unwrap when pwd is unavailable * elixir: correctly parse dev and rc versions * git_branch: Make Git branch module support bare repositories * jobs: Handle zero jobs with zero thresholds * nodejs: Check for .nvmrc * shell: Support conditional format strings for $indicator * vcsh: Add new module for VCSH * git_status: replace git2 in git status module with git cli * battery: add space between icon and text for better visual * directory: Add comments for test settings * init: Cleanup the unknown shell message - Update to version 0.51.0: * correct fish syntax error when setting variables. * Add a fallback prompt under TERM=dumb. * bash: escape interpretable characters. * cmake: Change cmake symbol to unicode triangle. * directory: contract git repo with display path. * directory: Handle non-UTF-8 folder names. * docs: "Command Duration" section link target. * init: Quote path for elvish init. * init: make log messages on pwsh visible again. * java: use consistent separators for java path. * nodejs: Change symbol to nerd-font. * package: fix meson version extraction if 'meson_version' is present. * python: Handle PyPy python version correctly. * tcsh: remove quotes and escape backticks. * utils: Sefely unwrap the command output. * zsh: Set PROMPT just once. * allow changing default command timeout. * create shell module. * add support for tcsh. * aws: add support for getting profile from awsu. * cmake: Configure when the module is shown. * crystal: Configure when the module is shown. * dart: Configure when the module is shown. * docker_context: Configure when module is shown. * dotnet: Configure when module is shown. * elixir: Configure when module is shown. * elm: Configure when the module is shown. * erlang: Configure when the module is shown. * golang: Configure when the module is shown. * helm: Configure when the module is shown. * install: make install script posix compliant. * java: Configure when the module is shown. * julia: Configure when the module is shown. * kotlin: Configure when the module is shown. * lua: Configure when the module is shown. * nim: Configure when the module is shown. * nodejs: Configure when the module is shown. * ocaml: Configure when the module is shown. * perl: Configure when the module is shown. * php: Configure when the module is shown. * purescript: Configure when the module is shown. * python: Configure when the module is shown. * ruby: Configure when the module is shown. * scala: Add scala module. * swift: Configure when the module is shown. * terraform: Configure when the module is shown. * test: allow dynamic mocking of commands. * vagrant: Configure when the module is shown. * zig: Configure when the module is shown. * init: Prefer set -x over export for fish users. * username: get uid without external command. * aws: Add spacing between profile and region. - Update to version 0.50.0: * add support for elvish shell * vagrant: Add support for Vagrant - Update to version 0.49.0: * Adjust default format strings * Applied clippy warnings * bash: Fix broken bash init script * bash: bash-preexec detection and implementation * cmake: Fix spacing with missing variable * docker_context: enable if either yml or yaml is found * command: add 'toggle' command * directory: Add home directory symbol * status: Convert known status code to their meaning - Update to version 0.48.0: * apply nightly clippy & fmt suggestions * bg:none overwrites foreground colour * bash: Fix background jobs with z/autojump * config: log as error if failure to read config wasn't caused by NotFound * git_commit: show last created tag on current commit * git_state: Handle gitdir indirection when rebasing * swift: parsing swift version * i18n: add French and Spanish doc translations * battery: make module behaviour more obvious * git_branch: show remote name * git_branch: add remote branch name if different than local branch * git_branch: add 'only_attached' config bool * init: prefix STATUS and PREEXEC_READY shell vars with STARSHIP_ * java: Show Java module for Clojure projects * kotlin: Add the kotlin module * nodejs: check node engines version in package.json * package: Meson package support * python: Smarter python binary usage * rust: Support new rust-toolchain format * shlvl: Add repeat option * username: Try harder to guess if inside ssh * memory_usage: replace sysinfo with sys-info * Latest clippy suggestions * Add comments for bash preexec fix - Update to version 0.47.0: * docs: Alphabetic sorting of config subsections (#1877) * feat(terraform): Add hcl extension support to Terraform module (#1875) * fix(pwsh): fix crash on error in shell with old pwsh (#1861) * perf(init/pwsh): use get-random for session-key instead of invoking starship session (#1860) * perf(init): use $RANDOM env-var instead of starship session to generate session-key (#1755) * fix(gcloud): respect overides of the active gcloud config (#1846) * docs(cmd_duration): Document cmd_duration notifications (#1831) * docs(pwsh/init): various fixes for init doc (#1793) * fix(bug-report): verify exit code of open, always print url (#1839) * feat(lua): Add a Lua module (#1815) * fix(zsh): Ensure existing keymap change functions are not overriden (#1826) * feat(logger): don't create empty log files (#1836) * fix(install): Better platform detection (#1827) * feat(openstack): Add module for OpenStack (#1664) * fix(pwsh): Switched pwsh profile to use dollar hook for a more accurate success/failure handling (#1745) * feat(git_commit): add git tag to module (#950) * fix(kubernetes): Parse stacked kubeconfigs (#1678) * fix(pwsh): preserve original console encondings (#1810) * docs(memory): Remove removed options from Memory example (#1800) - Update to version 0.46.2: * docs: Update document for installing on windows (#1760) * fix: replace emoji for cmake and erlang (#1787) * fix(directory): preserve substitution order (#1782) * fix: apply clippy suggestions (#1756) * docs: Update defaults in config docs (#1759) - Update to version 0.46.0: * fix(python): Read venv prompt from pyvenv.cfg (#1747) * docs(python): Update the python_binary option (#1731) * docs(FAQ): add FAQ about shell completions * feat(directory): add ellipsis to truncated paths (#1563) * fix(utils): reduce log level of errors in utils. (#1730) * fix(bug-report): use correct path for ion config (#1726) - Update to version 0.45.2: * No changelog. - Update to version 0.45.0: * Bug Fixes - bash: init breaks if PROMPT_COMMAND includes starship_precmd as an intermediate command (#1541) - config: don't panic when hex color is too short (#1473) - docs: Fix Explore The Starship link in guide (#1553) - explain: align table correctly (#1482) - git-state: Fix discrepancy between v0.44.0 and master (#1672) - git_state: panic on interactive rebase (#1552) - git_status: Fix file rename inconsistency compared to git (#1411) - install: switch to install the musl binaries by default (#1590) - nodejs: remove line break from version (#1464) - ocaml: Stop new line being included in ocaml version (#1479) - pwsh: update init script to propagate $LASTEXITCODE and $? - pwsh: stop paths from being interpreted as patterns (#1569) - zsh: work when setopt ksh_arrays is set (#1612) * Docs - Update example config to remove old var (#1546) - add a migration guide for the format string changes (#1624) - update clippy command in the CONTRIBUTING.md (#1665) - Improvements in docs for custom modules (#1615) - Drop inexistent "number" variable from hostname section (#1586) - Add perl official logo in NerdFont (#1558) - fix code block overflow on mobile (#1492) - add uninstallation instructions to FAQ (#1474) - update font in FAQ from Fira Code → FiraCode Nerd Font - replace powerline requirement with nerd font requirement - git_status: Update git_status module docs (#1667) - i18n: New Crowdin translations (#1366) - Update to version 0.44.0: * No chengelog. - Update to version 0.43.0: * Bug Fixes - errant space breaks tar in installer (#1314) - bash: last command status and command duration (#1185) - directory: Fix path contractions for symlinked git repos (#1299) - php: Stop including error messages in the version * Docs - update dotfile link in FAQ - instruct users to install a nerd-font (#1383) - Add FAQ entry on missing symbols (#1307) - remove redundant settings in Contributing guide (#1326) * Features - dotnet: adds additional files to detect .net projects (#1303) - git: honor GIT_DIR environment variable (#1348) - nodejs: support additional file patterns (#1311) - python: Add option to change the python binary (#1297) - Update to version 0.42.0: * Bug Fixes - Retain previous command state on zsh keymap select (#958) - custom: improve handling of Powershell prompts (#1237) * Docs - Updated config with a tip for PowerShell user (#1216) - fix example Starship implementation in bash - custom: add warning about custom command potentially freezing terminal (#1242) - Update to version 0.41.3: * No chengelog. - Update to version v0.41.1: * Bug Fixes - directory: avoid confusing modules with PowerShell paths (#1114) * Docs - correct the configuration docs (#1195) - i18n: new Crowdin translations (#1059) - Update to version v0.41.0: * Revert - fix(git_branch,git_status): implement fallback branch_n… (#1092) - Update to version v0.40.1: * Bug Fixes - Fix variable styles in string formatter (#1069) - implement fallback branch_name for bare git repos (#1035) - Fix typo (#1054) - ruby: do not assume length when retrieving version * Docs - Add details about musl build to readme (#997) - update NerdFont preset to include new modules (#1077) - add Open Collective to README - i18n: new Crowdin translations (#1047) * Features - add support for custom modules - nix_shell: add symbol to nix-shell module (#1058) - package: Add project version for Elixir (#1067) * Improvement - add parser for format strings (#1021) - Initial package OBS-URL: https://build.opensuse.org/request/show/890205 OBS-URL: https://build.opensuse.org/package/show/shells/starship?expand=0&rev=3
2021-05-04 05:46:33 +02:00
mkdir .cargo
cp %{SOURCE2} .cargo/config
%build
RUSTFLAGS=%{rustflags} cargo build --release
%install
RUSTFLAGS=%{rustflags} cargo install --root=%{buildroot}%{_prefix} --path .
# remove residue crate file
rm %{buildroot}%{_prefix}/.crates.toml
rm %{buildroot}%{_prefix}/.crates2.json
%files
%doc README.md
%license LICENSE
%{_bindir}/starship
%changelog