Dr. Werner Fink 2015-03-04 14:25:18 +00:00 committed by Git OBS Bridge
parent 2acf9b4973
commit da03b6cc48
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Mar 4 14:24:49 UTC 2015 - werner@suse.de
- Add a test case to be able to detect any broken backport
-------------------------------------------------------------------
Tue Mar 3 13:55:27 UTC 2015 - werner@suse.de

View File

@ -117,6 +117,8 @@ find -name Makefile.in | xargs touch
%build
#XXX: ugly hack; necessary??
#YYY: Not a hack and it is necessary!!
# The a2ps source is much to old to (re)run auto conf tools
cp -p /usr/share/automake-*/config.{guess,sub} auxdir/
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -funroll-loops -Wall -pipe -fstack-protector -fPIE"
export LPR=lpr
@ -137,6 +139,19 @@ find -name Makefile.in | xargs touch
pushd doc
texi2html a2ps.texi
popd
# Run a test with UTF-8 Umlauts
mkdir -p .root/.a2ps
echo "This is a test text äöüßœéïçèãøæđ" > test.utf8
ln -sf $PWD/ps/* .root/.a2ps/
ln -sf $PWD/afm/* .root/.a2ps/
ln -sf $PWD/encoding/* .root/.a2ps/
ln -sf $PWD/ogonkify/* .root/.a2ps/
ln -sf $PWD/ppd/* .root/.a2ps/
ln -sf $PWD/sheets/* .root/.a2ps/
A2PS_CONFIG=$PWD/etc/a2ps.cfg \
HOME=$PWD/.root \
LC_CTYPE=en_US.UTF-8 ./src/a2ps --output=test.latin test.utf8
grep '(This is a test text' test.latin | iconv -f latin1 -t utf8
%install
make install DESTDIR=%{buildroot} PSFONT_PATH=%{_datadir}/ghostscript/fonts