]> git.pld-linux.org Git - packages/cd.git/blame - cd.spec
- rel 3
[packages/cd.git] / cd.spec
CommitLineData
1d5ac649
JB
1#
2# TODO: shared/static scheme
3# (if something more than plplot driver uses it, little sense otherwise...)
4Summary: CGM Draw library and tools
e1ba208d 5Summary(pl.UTF-8): Biblioteka i narzędzia CGM Draw
1d5ac649
JB
6Name: cd
7Version: 1.3
766b9bd2 8Release: 3
1d5ac649
JB
9License: free (see cd.html)
10Group: Libraries
11Source0: http://www.pa.msu.edu/ftp/pub/unix/%{name}%{version}.tar.gz
12# Source0-md5: 5484b3fe667170c221eb8871ea2bb332
13URL: http://www.pa.msu.edu/reference/cgmdraw_ref.html
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17CGM Draw is a freely available library for generating CGM files from a
18C program. It has been tested on Solaris, Ultrix, Linux, IRIX, AIX,
19OpenVMS, and DOS. CGM (Computer Graphics Metafile) is a vector
20graphics format that can be read by many popular packages. With CGM
21Draw your code can quickly draw images complete with lines, arcs,
22rectangles, polygons, and text. CGM Draw is ideal for creating CGM
23files on the fly when you have a rapidly changing data set (such as in
24response to database queries.)
25
417da2cf
JR
26%description -l pl.UTF-8
27CGM Draw to wolnodostępna biblioteka do generowania plików CGM z
28poziomu programu w C. Była testowana pod Solarisem, Ultriksem,
1d5ac649
JB
29Linuksem, IRIX-em, AIX-em, OpenVMS-em oraz DOS-em. CGM (Computer
30Graphics Metafile) to wektorowy format graficzny czytany przez wiele
417da2cf
JR
31popularnych pakietów. Przy pomocy CGM Draw kod może szybko rysować
32obrazki z linii, łuków, prostokątów, wielokątów oraz tekstu. CGM Draw
33sprawdza się przy tworzeniu plików CGM w locie z szybko zmieniających
34się zbiorów danych (takich jak odpowiedzi na zapytania do baz danych).
1d5ac649
JB
35
36%package devel
37Summary: Header file and static CGM Draw library
e1ba208d 38Summary(pl.UTF-8): Pliki nagłówkowe i statyczna biblioteka CGM Draw
1d5ac649
JB
39Group: Development/Libraries
40
41%description devel
42CGM Draw is a freely available library for generating CGM files from a
43C program. It has been tested on Solaris, Ultrix, Linux, IRIX, AIX,
44OpenVMS, and DOS. CGM (Computer Graphics Metafile) is a vector
45graphics format that can be read by many popular packages. With CGM
46Draw your code can quickly draw images complete with lines, arcs,
47rectangles, polygons, and text. CGM Draw is ideal for creating CGM
48files on the fly when you have a rapidly changing data set (such as in
49response to database queries.)
50
51This package contains the header file and static CGM Draw library.
52
417da2cf
JR
53%description devel -l pl.UTF-8
54CGM Draw to wolnodostępna biblioteka do generowania plików CGM z
55poziomu programu w C. Była testowana pod Solarisem, Ultriksem,
1d5ac649
JB
56Linuksem, IRIX-em, AIX-em, OpenVMS-em oraz DOS-em. CGM (Computer
57Graphics Metafile) to wektorowy format graficzny czytany przez wiele
417da2cf
JR
58popularnych pakietów. Przy pomocy CGM Draw kod może szybko rysować
59obrazki z linii, łuków, prostokątów, wielokątów oraz tekstu. CGM Draw
60sprawdza się przy tworzeniu plików CGM w locie z szybko zmieniających
61się zbiorów danych (takich jak odpowiedzi na zapytania do baz danych).
1d5ac649 62
417da2cf 63Ten 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
79rm -rf $RPM_BUILD_ROOT
80install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
81
82install libcd.a $RPM_BUILD_ROOT%{_libdir}
83install cd.h $RPM_BUILD_ROOT%{_includedir}
84install cdexpert.c cdmulti.c cdsimple.c cdtest.c cdtext.c color16.c \
85 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
86
87%clean
88rm -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}
This page took 0.077873 seconds and 4 git commands to generate.