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

Last change on this file since 858 was 845, checked in by Silvan Scherrer, 9 years ago

spec: dash: rebuilt with fixed paths.h from libc

File size: 3.3 KB
Line 
1# Note: this .spec is borrowed from dash-0.5.8-2.fc23.src.rpm
2
3Name: dash
4Version: 0.5.9
5Release: 2%{?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 1664
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='-DJOBS=0'
60
61# Usual link options
62export LDFLAGS='-Zomf -Zmap -Zhigh-mem -Zargs-wild -Zargs-resp' # -Zbin-files
63export LD=emxomfld
64
65# We install dash into /usr/bin, so no --bindir=/bin
66%configure
67
68make %{?_smp_mflags}
69
70%install
71rm -rf %{buildroot}
72make install DESTDIR=%{buildroot}
73
74# Create a symlink for the default shell
75ln -s %{_bindir}/%{name}.exe %{buildroot}%{_bindir}/sh
76cp -p %{buildroot}%{_bindir}/%{name}.exe %{buildroot}%{_bindir}/sh.exe
77ln -s %{_mandir}/man1/%{name}.1 %{buildroot}%{_mandir}/man1/sh.1
78
79#%post
80#grep -q '^/bin/dash$' %{_sysconfdir}/shells || \
81# echo '/bin/dash' >> %{_sysconfdir}/shells
82
83#%postun
84#if [ $1 -eq 0 ]; then
85# sed -i '/^\/bin\/dash$/d' %{_sysconfdir}/shells
86#fi
87
88%files
89%doc COPYING ChangeLog
90%{_bindir}/%{name}.exe
91%{_mandir}/man1/%{name}.1
92
93%files sh
94%{_bindir}/sh
95%{_bindir}/sh.exe
96%{_mandir}/man1/sh.1
97
98%changelog
99* Tue Sep 6 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.5.9-2
100- rebuilt with new libc (paths.h changes)
101
102* Mon Aug 8 2016 Dmitriy Kuminov <coding@dmik.org> 0.5.9-1
103- Update to version 0.5.9.
104- Make cd builtin handle paths like /@unixroot correctly.
105- Convert backslashes to forward ones in PATH-like variables
106 (PATHLIKE_VARS may be used to extend list of recognized ones).
107- Be more verbose on fork failures.
108- Add support for EXCEPTQ and debug info package.
109- The dash-sh package now obsoletes ash-sh for easy update
110 (ash is deprecated from now on).
111
112* Mon Apr 6 2015 Dmitriy Kuminov <coding@dmik.org> 0.5.8-1
113- Initial package for version 0.5.8.
Note: See TracBrowser for help on using the repository browser.