]> git.pld-linux.org Git - SPECS.git/blob - ralcgm.spec
SPECS updated Sat 31 Jul 20:27:02 CEST 2021
[SPECS.git] / ralcgm.spec
1 Summary:        CGM metafiles interpreter and translator
2 Summary(pl.UTF-8):      Interpreter i konwerter plików CGM
3 Name:           ralcgm
4 Version:        3.50
5 Release:        3
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)
14
15 %description
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
19 (PostScript or HPGL).
20
21 It can be used as ImageMagick delegate to convert from CGM format.
22
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.
27
28 Może być używany przez ImageMagick do konwersji z formatu CGM.
29
30 %prep
31 %setup -q -c
32 %patch0 -p1
33
34 %build
35 OPT="%{rpmcflags}" \
36 ./CGMconfig linux <<EOF
37
38 y
39
40
41
42 y
43 y
44 y
45 y
46 n
47 /usr/X11R6/%{_lib}
48 y
49 n
50 y
51 y
52 y
53 EOF
54
55 %{__make} -C src cgmfile.o cgmerr.o genbez genher
56
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
60
61 rm -f src/cgm{file,err}.o
62 %{__make} all
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/ralcgm,%{_mandir}/man1}
67
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
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %doc README
78 %attr(755,root,root) %{_bindir}/*
79 %{_datadir}/ralcgm
80 %{_mandir}/man1/*
This page took 0.724899 seconds and 3 git commands to generate.