Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mcepl
oil
oil.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File oil.spec of Package oil
# # spec file for package oil # # Copyright (c) 2023 Luciano Santos <luc14n0@opensuse.org> # # 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/ # # Stripping debug symbols is known to silently break the executable binary # (07/01/23) %global __debug_package 0 Name: oil Version: 0.21.0 Release: 0 Summary: A Unix Shell License: Apache-2.0 AND PSF-2.0 AND ISC URL: https://www.oilshell.org #GitHub: https://github.com/oilshell/oil Source: https://www.oilshell.org/download/oils-for-unix-%{version}.tar.gz BuildRequires: c++_compiler BuildRequires: pkgconfig(readline) %description Oil is a new Unix shell. It's our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell! Quick reminder about naming: * OSH runs existing shell / bash scripts, often unmodified. * YSH is the shell with tYped data, influenced by pYthon. * Oils is the whole project. * You can use OSH by itself, YSH by itself, or upgrade from OSH to YSH. Reference docs: https://www.oilshell.org/release/%{version}/doc/ref/ %prep %autosetup -n oils-for-unix-%{version} %build export CXXFLAGS="%{optflags}" ./configure \ --prefix=%{_prefix} \ --datarootdir=%{_datadir} \ --with-readline \ ; _build/oils.sh %install DESTDIR=%{buildroot} ./install %check echo "Smoke testing the Oil binary..." %{buildroot}%{_bindir}/osh -c 'echo Hello, from Oil shell!' %{buildroot}%{_bindir}/osh -n install && echo 'SUCCESS!' || echo 'FAILURE!' %post if ! grep -q -Fx %{_bindir}/ion %{_sysconfdir}/shells; then tmpfile="$(mktemp -p %{_sysconfdir} -t shells.XXXXXXXXXX)" cp %{_sysconfdir}/shells ${tmpfile} echo %{_bindir}/osh >> ${tmpfile} echo /bin/osh >> ${tmpfile} sort -u ${tmpfile} > %{_sysconfdir}/shells rm ${tmpfile} fi %postun if [ "$1" = 0 ]; then grep -v -Fx -e %{_bindir}/osh -e /bin/osh %{_sysconfdir}/shells \ | sort -u \ > %{_sysconfdir}/shells fi %files %license LICENSE.txt %doc README-native.txt %{_bindir}/oils-for-unix %{_bindir}/osh %{_bindir}/ysh %{_mandir}/man1/osh.1%{?ext_man} %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