Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (31 sloc) 1022 Bytes
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .Fix
sed -i -e 's|\-lreadline|-lreadline -lncurses -lpthread|g' \
-e 's|\-lcurses|-lcurses -lpthread|g' \
-e 's|/lib/|/%{_lib}/|g' \
-e 's|pkg-config\ \+tinyap|pkg-config --libs tinyap|g' src/
sed -i.Orig -e '\|^\.post-inst:|,\|^$|d' \
-e 's|\.post-inst||g' ml/layers/
sed -i.damien -e '\|^tinyaml.pc:|,\|^$|d' \
-e 's|tinyaml.pc||g' \
-e '\|/etc/|,\|^$|d' \
-e 's|/etc/||g'
autoreconf -fi
rm -rf %buildroot
# in the buildroot, thus is no ldconfig, se above sed script [.post-inst:]
# It can be genereted int the building tree [%post]
make DESTDIR=%buildroot install
# There is no tinyaml in package building time
pushd %{_datadir}/%{name} &> /dev/null
for i in `echo *.script|sed 's/\.script//g'`; do
tinyaml -c $i.script -s $i.wc;
popd &> /dev/null