public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Petr Sabata <psabata@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/dash] epel10.3: Install dash into /etc/shells and some cleanup
Date: Fri, 13 Nov 2026 21:16:24 GMT [thread overview]
Message-ID: <179460458490.1.8490938769320097764.rpms-dash-5cd4ed841fa9@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-13 21:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179460458490.1.8490938769320097764.rpms-dash-5cd4ed841fa9@fedoraproject.org \
--to=psabata@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox