Projects
home:pandora:RobinOS23
bash
_service:download_src_package:bash.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:bash.spec of Package bash
%global bashver 5.2-alpha %global bashhash 68ab281e3057242777c1bbb92c916aea1d134b7d Name: bash Version: 5.2~alpha Release: 2%{?dist} Summary: The GNU Bourne Again shell License: GPLv3+ URL: https://www.gnu.org/software/bash #Source0: https://ftp.gnu.org/gnu/bash/bash-%{bashver}.tar.gz Source0: https://git.savannah.gnu.org/cgit/bash.git/snapshot/bash-%{bashhash}.tar.gz Source1: dot-bashrc Source2: dot-bash_profile Source3: dot-bash_logout BuildRequires: gcc make texinfo bison ncurses-devel autoconf gettext glibc-all-langpacks coreutils util-linux Requires: filesystem Provides: /bin/sh /bin/bash %description The GNU Bourne Again shell (Bash) is a shell or command language interpreter that is compatible with the Bourne shell (sh). Bash incorporates useful features from the Korn shell (ksh) and the C shell (csh). Most sh scripts can be run by bash without modification. %package devel Summary: Development headers for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains development headers for %{name}. %package doc Summary: Documentation files for %{name} Requires: %{name} = %{version}-%{release} %description doc This package contains documentation files for %{name}. %prep %autosetup -p1 -n bash-%{bashhash} %build autoconf %configure --with-bash-malloc=no --with-afs make version.h make %{?_smp_mflags} -C builtins make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT %make_install install-headers ln -sf bash %{buildroot}%{_bindir}/sh for ea in alias bg cd command fc fg getopts hash jobs read type ulimit umask unalias wait do cat <<EOF > "%{buildroot}"/%{_bindir}/"$ea" #!/bin/sh builtin $ea "\$@" EOF chmod +x "%{buildroot}"/%{_bindir}/"$ea" done mkdir -p %{buildroot}/etc/skel/ install -p -m644 %SOURCE1 %SOURCE2 %SOURCE3 %{buildroot}/etc/skel/ rename dot- . %{buildroot}/etc/skel/dot-* %find_lang %{name} install -d %{buildroot}/%{_pkgdocdir}/doc install -p CHANGES COMPAT NEWS NOTES POSIX RBASH README %{buildroot}%{_pkgdocdir}/ rm -rf examples/loadables cp -rp examples %{buildroot}/%{_pkgdocdir}/doc/ ls %{buildroot}/%{_pkgdocdir}/ | xargs -i echo "%%doc %{_pkgdocdir}/{}" >> %{name}-doc.files rm -rf %{buildroot}%{_libdir}/%{name} %{buildroot}/usr/lib/debug %{buildroot}%{_bindir}/bashbug %{buildroot}/usr/share/info/dir %check make check %post -p <lua> nl = '\n' sh = '/bin/sh'..nl bash = '/bin/bash'..nl f = io.open('/etc/shells', 'a+') if f then local shells = nl..f:read('*all')..nl if not shells:find(nl..sh) then f:write(sh) end if not shells:find(nl..bash) then f:write(bash) end f:close() end %postun -p <lua> -- Run it only if we are uninstalling if arg[2] == 0 then t={} for line in io.lines("/etc/shells") do if line ~= "/bin/bash" and line ~= "/bin/sh" then table.insert(t,line) end end f = io.open("/etc/shells", "w+") for n,line in pairs(t) do f:write(line.."\n") end f:close() end %files -f %{name}.lang %config(noreplace) /etc/skel/.b* %{_bindir}/sh %{_bindir}/bash %{_bindir}/alias %{_bindir}/bg %{_bindir}/cd %{_bindir}/command %{_bindir}/fc %{_bindir}/fg %{_bindir}/hash %{_bindir}/getopts %{_bindir}/jobs %{_bindir}/read %{_bindir}/type %{_bindir}/ulimit %{_bindir}/umask %{_bindir}/unalias %{_bindir}/wait %license COPYING %{_infodir}/bash.info* %{_mandir}/*/* %doc RBASH README %doc doc/{FAQ,INTRO,bash{,ref}.html} %files doc -f %{name}-doc.files %doc doc/*.ps doc/*.0 doc/*.html doc/article.txt %files devel %{_includedir}/%{name} %{_libdir}/pkgconfig/%{name}.pc %changelog * Mon Mar 21 2022 forrest_ly <flin@linux.alibaba.com> - 5.2~alpha-2 - Fix some bugs from upstream * Tue Mar 1 2022 forrest_ly <flin@linux.alibaba.com> - 5.2~alpha-1 - Init for Anolis OS 23
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2