95db7d5
Name:           dash
Petr Sabata 68fd58e
Version:        0.5.7
e1df8a3
Release:        11%{?dist}
95db7d5
Summary:        Small and fast POSIX-compliant shell
95db7d5
Group:          System Environment/Shells
Petr Šabata 2e0abdb
# BSD: DASH in general
Petr Šabata 2e0abdb
# GPLv2+: From src/mksignames.c
Petr Šabata 2e0abdb
# Public Domain: From src/bltin/test.c
Petr Šabata 2e0abdb
# Copyright only: From src/hetio.h
Petr Šabata 2e0abdb
License:        BSD and GPLv2+ and Public Domain and Copyright only
Petr Šabata 2e0abdb
URL:            http://gondor.apana.org.au/~herbert/%{name}/
Petr Šabata 2e0abdb
Source0:        http://gondor.apana.org.au/~herbert/%{name}/files/%{name}-%{version}.tar.gz
Petr Šabata d8d5796
Patch0:         %{name}-0.5.7-format-security.patch
95db7d5
95db7d5
%description
95db7d5
DASH is a POSIX-compliant implementation of /bin/sh that aims to be as small as
95db7d5
possible. It does this without sacrificing speed where possible. In fact, it is
95db7d5
significantly faster than bash (the GNU Bourne-Again SHell) for most tasks.
95db7d5
95db7d5
%prep
95db7d5
%setup -q
Petr Šabata d8d5796
%patch0 -p1
95db7d5
95db7d5
%build
Petr Šabata a499909
%configure --bindir=/bin
95db7d5
make %{?_smp_mflags}
95db7d5
95db7d5
%install
5cd4ed8
make install DESTDIR=%{buildroot}
5cd4ed8
5cd4ed8
%post
Petr Šabata 2e0abdb
grep -q '^/bin/dash$' %{_sysconfdir}/shells || \
Petr Šabata 2e0abdb
    echo '/bin/dash' >> %{_sysconfdir}/shells
95db7d5
5cd4ed8
%postun
5cd4ed8
if [ $1 -eq 0 ]; then
Petr Šabata 2e0abdb
    sed -i '/^\/bin\/dash$/d' %{_sysconfdir}/shells
5cd4ed8
fi
95db7d5
95db7d5
%files
Petr Šabata 2e0abdb
%doc COPYING ChangeLog
Petr Šabata 2e0abdb
/bin/%{name}
Petr Šabata 2e0abdb
%{_mandir}/man1/%{name}.1*
95db7d5
95db7d5
%changelog
e1df8a3
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-11
e1df8a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e1df8a3
Petr Šabata d8d5796
* Tue Jun 24 2014 Petr Šabata <contyk@redhat.com> - 0.5.7-10
Petr Šabata d8d5796
- Fix FTBFS due to -Werror=format-security (#1037030)
Petr Šabata d8d5796
886910d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-9
886910d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
886910d
Petr Šabata a499909
* Thu Aug 01 2013 Petr Šabata <contyk@redhat.com> - 0.5.7-8
Petr Šabata a499909
- Simplify the installation
Petr Šabata a499909
Petr Šabata 2e0abdb
* Wed Jul 31 2013 Petr Šabata <contyk@redhat.com> - 0.5.7-7
Petr Šabata 2e0abdb
- Correct the License tag once again
Petr Šabata 2e0abdb
- Utilize the %%{name} and %%{_mandir} macros a bit more
Petr Šabata 2e0abdb
- Don't package the INSTALL file
Petr Šabata 2e0abdb
Petr Šabata 2e0abdb
* Mon Jun 10 2013 Petr Šabata <contyk@redhat.com> - 0.5.7-6
Petr Šabata 2e0abdb
- Use the sysconfdir macro in scriptlets
Petr Šabata 2e0abdb
3b67908
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-5
3b67908
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3b67908
889b237
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-4
889b237
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
889b237
474b82f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-3
474b82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
474b82f
Petr Šabata 23380f1
* Tue Nov 15 2011 Petr Šabata <contyk@redhat.com> - 0.5.7-2
Petr Šabata 23380f1
- Don't use --fixed-strings in scriptlets grep match (#753887)
Petr Šabata 23380f1
Petr Sabata 68fd58e
* Wed Aug 17 2011 Petr Sabata <contyk@redhat.com> - 0.5.7-1
Petr Sabata 68fd58e
- 0.5.7 bump
Petr Sabata 68fd58e
48fb56b
* Mon May 23 2011 Petr Sabata <psabata@redhat.com> - 0.5.6-5
48fb56b
- Try to add dash to /etc/shells every time, not just on new installs (#706138)
48fb56b
- Also, make the grep regexps a bit more strict, just to be sure
48fb56b
5cd4ed8
* Thu May 19 2011 Petr Sabata <psabata@redhat.com> - 0.5.6-4
5cd4ed8
- Install/remove dash from /etc/shells (#706138)
5cd4ed8
- Buildroot and defattr cleanup
5cd4ed8
- Add INSTALL, COPYING, ChangeLog to doc
5cd4ed8
13fc382
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.6-3
13fc382
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
13fc382
1bf1ca4
* Mon Jun 21 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 0.5.6-2
a2a6549
- New upstream realease
1bf1ca4
- Version bump
a2a6549
a488530
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.5.1-3
a488530
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a488530
5f234b1
* Sat May 23 2009 Andreas Thienemann <andreas@bawue.net> - 0.5.5.1-2
5f234b1
- Added patch from upstream git to not close stdout on err. This improves
5f234b1
  initramfs use of dash.
5f234b1
5f234b1
* Mon Apr 13 2009 Warren Togami <wtogami@redhat.com> - 0.5.5.1-1
edc65a4
- 0.5.5.1
edc65a4
c7a26a8
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-4
c7a26a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c7a26a8
9fc45ab
* Fri Feb 08 2008 Warren Togami <wtogami@redhat.com> 0.5.4-3
9fc45ab
- rebuild for gcc-4.3
9fc45ab
95db7d5
* Wed Nov 07 2007 Warren Togami <wtogami@redhat.com> 0.5.4-2
95db7d5
- move to /bin/dash
95db7d5
- BSD license tag
95db7d5
95db7d5
* Fri Nov 02 2007 Warren Togami <wtogami@redhat.com> 0.5.4-1
95db7d5
- initial package
95db7d5
95db7d5