.
OBS-URL: https://build.opensuse.org/package/show/Publishing/a2ps?expand=0&rev=57
This commit is contained in:
parent
2acf9b4973
commit
da03b6cc48
@ -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
|
||||
|
||||
|
15
a2ps.spec
15
a2ps.spec
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user