2 # TODO: shared/static scheme
3 # (if something more than plplot driver uses it, little sense otherwise...)
4 Summary: CGM Draw library and tools
5 Summary(pl.UTF-8): Biblioteka i narzędzia CGM Draw
9 License: free (see cd.html)
11 Source0: http://www.pa.msu.edu/ftp/pub/unix/%{name}%{version}.tar.gz
12 # Source0-md5: 5484b3fe667170c221eb8871ea2bb332
13 URL: http://www.pa.msu.edu/reference/cgmdraw_ref.html
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 CGM Draw is a freely available library for generating CGM files from a
18 C program. It has been tested on Solaris, Ultrix, Linux, IRIX, AIX,
19 OpenVMS, and DOS. CGM (Computer Graphics Metafile) is a vector
20 graphics format that can be read by many popular packages. With CGM
21 Draw your code can quickly draw images complete with lines, arcs,
22 rectangles, polygons, and text. CGM Draw is ideal for creating CGM
23 files on the fly when you have a rapidly changing data set (such as in
24 response to database queries.)
26 %description -l pl.UTF-8
27 CGM Draw to wolnodostępna biblioteka do generowania plików CGM z
28 poziomu programu w C. Była testowana pod Solarisem, Ultriksem,
29 Linuksem, IRIX-em, AIX-em, OpenVMS-em oraz DOS-em. CGM (Computer
30 Graphics Metafile) to wektorowy format graficzny czytany przez wiele
31 popularnych pakietów. Przy pomocy CGM Draw kod może szybko rysować
32 obrazki z linii, łuków, prostokątów, wielokątów oraz tekstu. CGM Draw
33 sprawdza się przy tworzeniu plików CGM w locie z szybko zmieniających
34 się zbiorów danych (takich jak odpowiedzi na zapytania do baz danych).
37 Summary: Header file and static CGM Draw library
38 Summary(pl.UTF-8): Pliki nagłówkowe i statyczna biblioteka CGM Draw
39 Group: Development/Libraries
42 CGM Draw is a freely available library for generating CGM files from a
43 C program. It has been tested on Solaris, Ultrix, Linux, IRIX, AIX,
44 OpenVMS, and DOS. CGM (Computer Graphics Metafile) is a vector
45 graphics format that can be read by many popular packages. With CGM
46 Draw your code can quickly draw images complete with lines, arcs,
47 rectangles, polygons, and text. CGM Draw is ideal for creating CGM
48 files on the fly when you have a rapidly changing data set (such as in
49 response to database queries.)
51 This package contains the header file and static CGM Draw library.
53 %description devel -l pl.UTF-8
54 CGM Draw to wolnodostępna biblioteka do generowania plików CGM z
55 poziomu programu w C. Była testowana pod Solarisem, Ultriksem,
56 Linuksem, IRIX-em, AIX-em, OpenVMS-em oraz DOS-em. CGM (Computer
57 Graphics Metafile) to wektorowy format graficzny czytany przez wiele
58 popularnych pakietów. Przy pomocy CGM Draw kod może szybko rysować
59 obrazki z linii, łuków, prostokątów, wielokątów oraz tekstu. CGM Draw
60 sprawdza się przy tworzeniu plików CGM w locie z szybko zmieniających
61 się zbiorów danych (takich jak odpowiedzi na zapytania do baz danych).
63 Ten pakiet zawiera plik nagłówkowy i statyczną bibliotekę CGM Draw.
66 %setup -q -n %{name}%{version}
69 # libcd is used in plplot shared module - needs PIC
72 CFLAGS="%{rpmcflags} -fPIC -Wall -pedantic"
76 CFLAGS="%{rpmcflags} -Wall -pedantic"
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
82 install libcd.a $RPM_BUILD_ROOT%{_libdir}
83 install cd.h $RPM_BUILD_ROOT%{_includedir}
84 install cdexpert.c cdmulti.c cdsimple.c cdtest.c cdtext.c color16.c \
85 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
88 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
92 %doc cd.announce cd.html readme
95 %{_examplesdir}/%{name}-%{version}