public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/dash] epel10.3: Install dash into /etc/shells and some cleanup
@ 2026-11-13 21:16 Petr Sabata
0 siblings, 0 replies; only message in thread
From: Petr Sabata @ 2026-11-13 21:16 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/dash
Branch : epel10.3
Commit : 5cd4ed841fa99e95ac2393f13ed842ce8e66bf06
Author : Petr Sabata <psabata@redhat.com>
Date : 2011-05-19T17:31:05+02:00
Stats : +20/-12 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/dash/c/5cd4ed841fa99e95ac2393f13ed842ce8e66bf06?branch=epel10.3
Log:
Install dash into /etc/shells and some cleanup
---
diff --git a/dash.spec b/dash.spec
index 6692135..f2bcdb9 100644
--- a/dash.spec
+++ b/dash.spec
@@ -1,13 +1,11 @@
Name: dash
Version: 0.5.6
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Small and fast POSIX-compliant shell
-
Group: System Environment/Shells
License: BSD
URL: http://gondor.apana.org.au/~herbert/dash/
Source0: http://gondor.apana.org.au/~herbert/dash/files/dash-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
DASH is a POSIX-compliant implementation of /bin/sh that aims to be as small as
@@ -22,22 +20,32 @@ significantly faster than bash (the GNU Bourne-Again SHell) for most tasks.
make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/bin
-mv $RPM_BUILD_ROOT%{_bindir}/dash $RPM_BUILD_ROOT/bin/
-rm -rf $RPM_BUILD_ROOT%{_bindir}/
+make install DESTDIR=%{buildroot}
+mkdir -p %{buildroot}/bin
+mv %{buildroot}%{_bindir}/dash %{buildroot}/bin/
+rm -rf %{buildroot}%{_bindir}/
+
+%post
+if [ $1 -eq 1 ]; then
+ grep -qF /bin/dash /etc/shells || echo '/bin/dash' >> /etc/shells
+fi
-%clean
-rm -rf $RPM_BUILD_ROOT
+%postun
+if [ $1 -eq 0 ]; then
+ sed -i '/\/bin\/dash/d' /etc/shells
+fi
%files
-%defattr(-,root,root,-)
-%doc
+%doc INSTALL COPYING ChangeLog
/bin/dash
%{_datadir}/man/man1/dash.1.gz
%changelog
+* Thu May 19 2011 Petr Sabata <psabata@redhat.com> - 0.5.6-4
+- Install/remove dash from /etc/shells (#706138)
+- Buildroot and defattr cleanup
+- Add INSTALL, COPYING, ChangeLog to doc
+
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-13 21:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 21:16 [rpms/dash] epel10.3: Install dash into /etc/shells and some cleanup Petr Sabata
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox