1 Summary: CGM metafiles interpreter and translator
2 Summary(pl.UTF-8): Interpreter i konwerter plików CGM
6 Group: Applications/Graphics
7 License: non-profit - see README
8 Source0: ftp://ftp.cc.rl.ac.uk/pub/graphics/ralcgm/unix/%{name}-%{version}.tar.Z
9 # Source0-md5: c132d8533527c35eb99581ed7cc738db
10 Patch0: %{name}-linux.patch
11 URL: http://www.agocg.ac.uk/train/cgm/ralcgm.htm
12 BuildRequires: XFree86-devel
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 RAL-CGM is a program to translate or interpret CGM (Computer Graphics
17 Metafile) files, either to a different encoding (Binary, Character or
18 Clear Text) or to view on a terminal or to send to a plotter
21 It can be used as ImageMagick delegate to convert from CGM format.
23 %description -l pl.UTF-8
24 RAL-CGM jest programem do interpretowania i konwersji plików CGM
25 (Computer Graphics Metafile) do innych formatów lub w celu
26 wyświetlenia albo wydrukowania.
28 Może być używany przez ImageMagick do konwersji z formatu CGM.
36 ./CGMconfig linux <<EOF
55 %{__make} -C src cgmfile.o cgmerr.o genbez genher
57 sed -e "s@^\\(#define DATADIR\\).*@\\1 \"%{_datadir}/ralcgm/\"@" \
58 include/mach.h > mach.h.tmp
59 mv -f mach.h.tmp include/mach.h
61 rm -f src/cgm{file,err}.o
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/ralcgm,%{_mandir}/man1}
68 install bin/ralcgm $RPM_BUILD_ROOT%{_bindir}
69 install data/* $RPM_BUILD_ROOT%{_datadir}/ralcgm
70 install docs/ralcgm.man $RPM_BUILD_ROOT%{_mandir}/man1/ralcgm.1
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
78 %attr(755,root,root) %{_bindir}/*