]>
Commit | Line | Data |
---|---|---|
1d5ac649 JB |
1 | # |
2 | # TODO: shared/static scheme | |
3 | # (if something more than plplot driver uses it, little sense otherwise...) | |
4 | Summary: CGM Draw library and tools | |
e1ba208d | 5 | Summary(pl.UTF-8): Biblioteka i narzędzia CGM Draw |
1d5ac649 JB |
6 | Name: cd |
7 | Version: 1.3 | |
766b9bd2 | 8 | Release: 3 |
1d5ac649 JB |
9 | License: free (see cd.html) |
10 | Group: Libraries | |
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) | |
15 | ||
16 | %description | |
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.) | |
25 | ||
417da2cf JR |
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, | |
1d5ac649 JB |
29 | Linuksem, IRIX-em, AIX-em, OpenVMS-em oraz DOS-em. CGM (Computer |
30 | Graphics Metafile) to wektorowy format graficzny czytany przez wiele | |
417da2cf JR |
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). | |
1d5ac649 JB |
35 | |
36 | %package devel | |
37 | Summary: Header file and static CGM Draw library | |
e1ba208d | 38 | Summary(pl.UTF-8): Pliki nagłówkowe i statyczna biblioteka CGM Draw |
1d5ac649 JB |
39 | Group: Development/Libraries |
40 | ||
41 | %description devel | |
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.) | |
50 | ||
51 | This package contains the header file and static CGM Draw library. | |
52 | ||
417da2cf JR |
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, | |
1d5ac649 JB |
56 | Linuksem, IRIX-em, AIX-em, OpenVMS-em oraz DOS-em. CGM (Computer |
57 | Graphics Metafile) to wektorowy format graficzny czytany przez wiele | |
417da2cf JR |
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). | |
1d5ac649 | 62 | |
417da2cf | 63 | Ten pakiet zawiera plik nagłówkowy i statyczną bibliotekę CGM Draw. |
1d5ac649 JB |
64 | |
65 | %prep | |
66 | %setup -q -n %{name}%{version} | |
67 | ||
68 | %build | |
782b58b7 JB |
69 | # libcd is used in plplot shared module - needs PIC |
70 | %{__make} libcd.a \ | |
71 | CC="%{__cc}" \ | |
72 | CFLAGS="%{rpmcflags} -fPIC -Wall -pedantic" | |
73 | ||
1d5ac649 JB |
74 | %{__make} \ |
75 | CC="%{__cc}" \ | |
76 | CFLAGS="%{rpmcflags} -Wall -pedantic" | |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}} | |
81 | ||
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} | |
86 | ||
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
92 | %doc cd.announce cd.html readme | |
93 | %{_libdir}/libcd.a | |
94 | %{_includedir}/cd.h | |
95 | %{_examplesdir}/%{name}-%{version} |