Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:bravoall1552:lincom2010.7.6
bash
bash.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bash.spec of Package bash
# # spec file for package bash (version 4.0) # # Copyright (c) Lincom Software Team. All spec files # are released under the CC-BY-NC-ND, version 3 United States. # # Basic Information Name: bash Version: 4.0 Release: 4%{?dist} Summary: GNU Shell Group: System Environment/Shells License: GNU GPL URL: http://www.gnu.org/software/bash/ # Source Information Source0: http://ftp.gnu.org/gnu/bash/bash-%{version}.tar.gz # Our bash scripts Source2: dot-bashrc Source3: dot-bash_profile Source4: dot-bash_logout # Moved to setup #Source5: etc-bashrc # Upstream Patches Patch001: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-001 Patch002: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-002 Patch003: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-003 Patch004: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-004 Patch005: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-005 Patch006: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-006 Patch007: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-007 Patch008: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-008 Patch009: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-009 Patch010: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-010 Patch011: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-011 Patch012: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-012 Patch013: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-013 Patch014: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-014 Patch015: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-015 Patch016: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-016 Patch017: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-017 Patch018: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-018 Patch019: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-019 Patch020: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-020 Patch021: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-021 Patch022: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-022 Patch023: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-023 Patch024: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-024 Patch025: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-025 Patch026: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-026 Patch027: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-027 Patch028: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-028 Patch029: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-029 Patch030: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-030 Patch031: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-031 Patch032: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-032 Patch033: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-033 Patch034: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-034 Patch035: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0-patches/bash40-035 # Build Information BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: texinfo bison BuildRequires: ncurses-devel BuildRequires: autoconf gettext BuildRequires: readline-devel Requires(post): ncurses-libs Provides: /bin/sh %description Bash is a GNU project sh-compatible shell or command language interpreter. Bash (Bourne Again shell) incorporates useful features from the Korn shell (ksh) and the C shell (csh). Most sh scripts can be run by bash without modification. Bash offers several improvements over sh, including command line editing, unlimited size command history, job control, shell functions and aliases, indexed arrays of unlimited size and integer arithmetic in any base from two to 64. Bash is ultimately intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard. %package doc Group: Documentation Summary: Documentation for the Bourne-Again SHell %description doc This package contains official documentation for the bash shell. %prep %setup -q # Official upstream patches %patch001 -p0 -b .001 %patch002 -p0 -b .002 %patch003 -p0 -b .003 %patch004 -p0 -b .004 %patch005 -p0 -b .005 %patch006 -p0 -b .006 %patch007 -p0 -b .007 %patch008 -p0 -b .008 %patch009 -p0 -b .009 %patch010 -p0 -b .010 %patch011 -p0 -b .011 %patch012 -p0 -b .012 %patch013 -p0 -b .013 %patch014 -p0 -b .014 %patch015 -p0 -b .015 %patch016 -p0 -b .016 %patch017 -p0 -b .017 %patch018 -p0 -b .018 %patch019 -p0 -b .019 %patch020 -p0 -b .020 %patch021 -p0 -b .021 %patch022 -p0 -b .022 %patch023 -p0 -b .023 %patch024 -p0 -b .024 %patch025 -p0 -b .025 %patch026 -p0 -b .026 %patch027 -p0 -b .027 %patch028 -p0 -b .028 %patch029 -p0 -b .029 %patch030 -p0 -b .030 %patch031 -p0 -b .031 %patch032 -p0 -b .032 %patch033 -p0 -b .033 %patch034 -p0 -b .034 %patch035 -p0 -b .035 %build %configure --prefix=/usr --bindir=/bin \ --without-bash-malloc \ --with-installed-readline # fedora and mandriva include --with-afs, should we? # removed --htmldir=/usr/share/doc/bash-4.0 for now... make %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} # Create /etc/skel and add bash startup scripts to it mkdir -p %{buildroot}/etc/skel install -c -m644 %SOURCE2 %{buildroot}/etc/skel/.bashrc install -c -m644 %SOURCE3 %{buildroot}/etc/skel/.bash_profile install -c -m644 %SOURCE4 %{buildroot}/etc/skel/.bash_logout #install -c -m644 %SOURCE5 %{buildroot}/etc/bashrc # A few cleanups needed pushd %{buildroot} ln -sf bash ./bin/sh rm -f .%{_infodir}/dir popd # Above links bash to /bin/sh and removes %{_infodir}/dir... # *fedora* bash does not use /sbin/install-info %find_lang %{name} # copy doc to /usr/share/doc mkdir -p $RPM_BUILD_ROOT/%{pkgdocdir} for file in CHANGES COMPAT NEWS NOTES POSIX doc examples do cp -r "$file" $RPM_BUILD_ROOT/%{pkgdocdir} done %clean rm -rf %{buildroot} # *FEDORA* add bash and sh to /etc/shells # post is in lua so that we can run it without any external deps. Helps # for bootstrapping a new install. # Jesse Keating 2009-01-29 (code from Ignacio Vazquez-Abrams) %post -p <lua> bashfound = false; shfound = false; f = io.open("/etc/shells", "r"); if f == nil then f = io.open("/etc/shells", "w"); else repeat t = f:read(); if t == "/bin/bash" then bashfound = true; end if t == "/bin/sh" then shfound = true; end until t == nil; end f:close() f = io.open("/etc/shells", "a"); if not bashfound then f:write("/bin/bash\n") end if not shfound then f:write("/bin/sh\n") end f:close() %postun if [ "$1" = 0 ]; then /bin/grep -v '^/bin/bash$' < /etc/shells | \ /bin/grep -v '^/bin/sh$' > /etc/shells.new /bin/mv /etc/shells.new /etc/shells fi # end /etc/shells stuff and *FEDORA* %files -f %{name}.lang %defattr(-,root,root,-) %config(noreplace) /etc/skel/.b* /bin/sh /bin/bash %attr(0755,root,root) /bin/bashbug* %{_infodir}/bash.info* %{_mandir}/man*/bash* %files doc %defattr(-,root,root) /%{pkgdocdir}/* %changelog * Tue Dec 29 2009 Robert Xu <robxu9@gmail.com> 4.0-4 - /etc/bashrc has been moved to the 'setup' package * Sun Dec 27 2009 Robert Xu <robxu9@gmail.com> 4.0-3 - Added doc subpackage back - Added readline-devel as a dependency * Thu Dec 24 2009 Robert Xu <robxu9@gmail.com> 4.0-2 - Threw Away Package Cheat - ***COMPARISON with major distributions*** - added new stuff, threw away stuff * Sun Nov 14 2009 Robert Xu <robxu9@gmail.com> 4.0-1 - Created Initial Spec File.
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