source: spec/trunk/SPECS/dash.spec@ 1010

Last change on this file since 1010 was 906, checked in by dmik, 9 years ago

spec: dash: Release version 0.5.9.1-1.

File size: 3.7 KB
Line 
1# Note: this .spec is borrowed from dash-0.5.8-2.fc23.src.rpm
2
3Name: dash
4Version: 0.5.9.1
5Release: 1%{?dist}
6Summary: Small and fast POSIX-compliant shell
7Group: System Environment/Shells
8# BSD: DASH in general
9# GPLv2+: From src/mksignames.c
10# Public Domain: From src/bltin/test.c
11# Copyright only: From src/hetio.h
12License: BSD and GPLv2+ and Public Domain and Copyright only
13URL: http://gondor.apana.org.au/~herbert/%{name}/
14#Source0: http://gondor.apana.org.au/~herbert/%{name}/files/%{name}-%{version}.tar.gz
15
16%define svn_url http://svn.netlabs.org/repos/ports/dash/trunk
17%define svn_rev 1846
18
19Source: %{name}-%{version}-r%{svn_rev}.zip
20
21BuildRequires: gcc make subversion zip
22
23BuildRequires: automake
24BuildRequires: exceptq-devel
25
26%description
27DASH is a POSIX-compliant implementation of /bin/sh that aims to be as small as
28possible. It does this without sacrificing speed where possible. In fact, it is
29significantly faster than bash (the GNU Bourne-Again SHell) for most tasks.
30
31%package sh
32Summary: Installs DASH as the system default POSIX shell.
33Requires: dash
34# @todo See http://trac.netlabs.org/rpm/ticket/137.
35Provides: /@unixroot/bin/sh
36Obsoletes: ash-sh
37
38%description sh
39Virtual package that installs DASH as the system default POSIX shell.
40
41%debug_package
42
43%prep
44%if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
45%setup -q
46%else
47%setup -n "%{name}-%{version}" -Tc
48svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
49rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
50(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
51%endif
52
53# Generate configure and friends
54autogen.sh
55
56%build
57
58# Disable job control, OS/2 tty doesn't allow this
59export CFLAGS="$RPM_OPT_FLAGS -DJOBS=0"
60
61# Usual link options
62export LDFLAGS="-Zomf -Zmap -Zhigh-mem -Zargs-wild -Zargs-resp"
63export LD=emxomfld
64
65# Use LIBCx for EXCEPTQ handler
66export LIBS="-lcx"
67
68# We install dash into /usr/bin, so no --bindir=/bin
69%configure
70
71make %{?_smp_mflags}
72
73%install
74rm -rf %{buildroot}
75make install DESTDIR=%{buildroot}
76
77# Create a symlink for the default shell
78ln -s %{_bindir}/%{name}.exe %{buildroot}%{_bindir}/sh
79cp -p %{buildroot}%{_bindir}/%{name}.exe %{buildroot}%{_bindir}/sh.exe
80ln -s %{_mandir}/man1/%{name}.1 %{buildroot}%{_mandir}/man1/sh.1
81
82#%post
83#grep -q '^/bin/dash$' %{_sysconfdir}/shells || \
84# echo '/bin/dash' >> %{_sysconfdir}/shells
85
86#%postun
87#if [ $1 -eq 0 ]; then
88# sed -i '/^\/bin\/dash$/d' %{_sysconfdir}/shells
89#fi
90
91%files
92%doc COPYING ChangeLog
93%{_bindir}/%{name}.exe
94%{_mandir}/man1/%{name}.1
95
96%files sh
97%{_bindir}/sh
98%{_bindir}/sh.exe
99%{_mandir}/man1/sh.1
100
101%changelog
102* Mon Nov 28 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.5.9.1-1
103- Update to version 0.5.9.1.
104- Increase stack size to 8 MB to fix crashes with too big here-docs.
105- Link against LIBCx 0.4.
106- Build with standard platform-specific optimization (also improves
107 debug symbols due to -g when compiling).
108
109* Tue Sep 6 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.5.9-2
110- rebuilt with new libc (paths.h changes)
111
112* Mon Aug 8 2016 Dmitriy Kuminov <coding@dmik.org> 0.5.9-1
113- Update to version 0.5.9.
114- Make cd builtin handle paths like /@unixroot correctly.
115- Convert backslashes to forward ones in PATH-like variables
116 (PATHLIKE_VARS may be used to extend list of recognized ones).
117- Be more verbose on fork failures.
118- Add support for EXCEPTQ and debug info package.
119- The dash-sh package now obsoletes ash-sh for easy update
120 (ash is deprecated from now on).
121
122* Mon Apr 6 2015 Dmitriy Kuminov <coding@dmik.org> 0.5.8-1
123- Initial package for version 0.5.8.
Note: See TracBrowser for help on using the repository browser.