Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:robert_munteanu
asdf
asdf.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File asdf.spec of Package asdf
# # spec file for package asdf # # 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: asdf Version: 0.10.2 Release: 0 Summary: Extendable version manager License: MIT URL: https://github.com/asdf-vm/asdf Source: %{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: fdupes Requires: curl %description A tool version manager. All tool version definitions are contained within one file (.tool-versions) which you can check in to your project's Git repository to share with your team, ensuring everyone is using the exact same versions of tools. %package bash-completion Summary: Bash Completion for %{name} Group: System/Shells Requires: %{name} = %{version} Supplements: (%{name} and bash-completion) BuildArch: noarch %description bash-completion Bash command line completion support for %{name}. %package fish-completion Summary: Fish Completion for %{name} Group: System/Shells Requires: %{name} = %{version} Supplements: (%{name} and fish) BuildArch: noarch %description fish-completion Fish command line completion support for %{name}. %prep %autosetup %build # remove files which won't be installed rm -rf test .* find . -name .gitignore -delete %install install -d %{buildroot}/usr/share/%{name} cp -R . %{buildroot}/usr/share/%{name} # remove docs from main package for doc in README.md CHANGELOG.md SECURITY.md docs; do rm -rf %{buildroot}/usr/share/%{name}/${doc} done %{fdupes} %{buildroot}/usr/share/doc/packages/%{name}/docs # don't install completions as part of the main package rm -rf %{buildroot}/usr/share/%{name}/completions mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions cp completions/asdf.bash %{buildroot}%{_datarootdir}/bash-completion/completions/%{name} mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d cp completions/asdf.fish %{buildroot}%{_datarootdir}/fish/vendor_completions.d/%{name}.fish %files %license LICENSE %doc README.md CHANGELOG.md SECURITY.md docs %dir /usr/share/%{name} /usr/share/%{name}/* %files bash-completion %defattr(-,root,root) %dir %{_datarootdir}/bash-completion/completions/ %{_datarootdir}/bash-completion/completions/%{name} %files fish-completion %defattr(-,root,root) %dir %{_datarootdir}/fish %dir %{_datarootdir}/fish/vendor_completions.d %{_datarootdir}/fish/vendor_completions.d/%{name}.fish %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor