License: GPL
Group: Applications/File
Group: Base
-Source0: builder
+Source0: builder.sh
Source1: adapter.awk
-Source2: adapter
+Source2: adapter.sh
Source3: pldnotify.awk
BuildRequires: sed >= 4.0
Requires: gawk >= 3.1.7
cp -p %{SOURCE1} adapter.awk
cp -p %{SOURCE3} pldnotify.awk
-%{__sed} -i -e 's,^adapter=.*/adapter.awk,adapter=%{_libdir}/adapter.awk,' adapter
+%{__sed} -i -e 's,^adapter=.*/adapter.awk,adapter=%{_libdir}/adapter.awk,' adapter.sh
-%{__sed} -i -e '/^VERSION=/s,\([^/]\+\)/.*",\1-RELEASE",' builder adapter
+%{__sed} -i -e '/^VERSION=/s,\([^/]\+\)/.*",\1-RELEASE",' builder.sh adapter.sh
%{__sed} -i -e '/\tRCSID =/,/^\trev =/d;/\tVERSION = /s,\([^/]\+\)/.*,\1-RELEASE",' adapter.awk
%install
install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}}
cp -p adapter.awk $RPM_BUILD_ROOT%{_libdir}/adapter.awk
install -p pldnotify.awk $RPM_BUILD_ROOT%{_bindir}
-install -p builder $RPM_BUILD_ROOT%{_bindir}/builder
-install -p adapter $RPM_BUILD_ROOT%{_bindir}/adapter
+install -p builder.sh $RPM_BUILD_ROOT%{_bindir}/builder
+install -p adapter.sh $RPM_BUILD_ROOT%{_bindir}/adapter
%clean
rm -rf $RPM_BUILD_ROOT