]> git.pld-linux.org Git - packages/gl2ps.git/blob - gl2ps.spec
- tabs in preamble
[packages/gl2ps.git] / gl2ps.spec
1 Summary:        GL2PS - an OpenGL to PostScript printing library
2 Summary(pl.UTF-8):      GL2PS - biblioteka drukowania z OpenGL-a do PostScriptu
3 Name:           gl2ps
4 Version:        1.3.2
5 Release:        1
6 License:        LGPL v2+ or GP2PS License v2+ (see COPYING.GL2PS)
7 Group:          Libraries
8 Source0:        http://www.geuz.org/gl2ps/src/%{name}-%{version}.tgz
9 # Source0-md5:  15cf4a6a790c109fc03c6601660d73a7
10 URL:            http://www.geuz.org/gl2ps/
11 BuildRequires:  OpenGL-devel
12 BuildRequires:  libtool
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 GL2PS is a C library providing high quality vector output for any
17 OpenGL application. The main difference between GL2PS and other
18 similar libraries is the use of sorting algorithms capable of handling
19 intersecting and stretched polygons, as well as non manifold objects.
20 GL2PS provides advanced smooth shading and text rendering, culling of
21 invisible primitives, mixed vector/bitmap output, and much more...
22
23 GL2PS can currently create PostScript (PS), Encapsulated PostScript
24 (EPS) and Portable Document Format (PDF) files, as well as LaTeX files
25 for the text fragments. Adding new vector output formats should be
26 relatively easy (and amongst the formats we would be interested in
27 adding, SVG is first in line). Meanwhile, you can use the excellent
28 pstoedit program to transform the PostScript files generated by GL2PS
29 into many other vector formats such as xfig, cgm, wmf, etc.
30
31 %description -l pl.UTF-8
32 GL2PS to biblioteka C zapewniająca wysokiej jakości wyjście wektorowe
33 dla dowolnej aplikacji OpenGL. Główna różnica między GL2PS a innymi
34 podobnymi bibliotekami polega na użyciu algorytmów sortujących
35 potrafiących obsłużyć przecinające się i rozciągnięte wielokąty, a
36 także obiekty nie będące rozmaitościami. GL2PS zapewnia zaawansowane
37 gładkie cieniowanie i renderowanie tekstu, usuwanie niewidocznych
38 prymitywów, mieszane wyjście wektorowo-bitmapowe i wiele więcej.
39
40 GL2PS aktualnie potrafi tworzyć pliki PostScript (PS), Encapsulated
41 PostScript (EPS) oraz Portable Document Format (PDF), a także pliki
42 LaTeXa dla fragmentów tekstowych. Dodanie nowych wyjściowych formatów
43 wektorowych powinno być względnie łatwe (a spośród formatów, których
44 dodanie zainteresowani byliby autorzy, pierwszym jest SVG). Tymczasem
45 można używać świetnego programu pstoedit do przekształcania plików
46 PostScript generowanych przez GL2PS na wiele innych formatów
47 wektorowych, takich jak xfig, cgm, wmf itp.
48
49 %package devel
50 Summary:        Header files for GL2PS library
51 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki GL2PS
52 Group:          Development/Libraries
53 Requires:       %{name} = %{version}-%{release}
54 Requires:       OpenGL-devel
55
56 %description devel
57 Header files for GL2PS library.
58
59 %description devel -l pl.UTF-8
60 Pliki nagłówkowe biblioteki GL2PS.
61
62 %package static
63 Summary:        Static GL2PS library
64 Summary(pl.UTF-8):      Statyczna biblioteka GL2PS
65 Group:          Development/Libraries
66 Requires:       %{name}-devel = %{version}-%{release}
67
68 %description static
69 Static GL2PS library.
70
71 %description static -l pl.UTF-8
72 Statyczna biblioteka GL2PS.
73
74 %prep
75 %setup -q
76
77 %build
78 libtool --mode=compile %{__cc} %{rpmcflags} -c -o gl2ps.lo gl2ps.c
79 libtool --mode=link %{__cc} %{rpmldflags} -o libgl2ps.la gl2ps.lo -rpath %{_libdir} -lGL -lm
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
84
85 libtool --mode=install install libgl2ps.la $RPM_BUILD_ROOT%{_libdir}
86 install gl2ps.h $RPM_BUILD_ROOT%{_includedir}
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post   -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
93
94 %files
95 %defattr(644,root,root,755)
96 %doc COPYING.GL2PS TODO
97 %attr(755,root,root) %{_libdir}/libgl2ps.so.*.*.*
98
99 %files devel
100 %defattr(644,root,root,755)
101 %doc gl2ps.pdf
102 %attr(755,root,root) %{_libdir}/libgl2ps.so
103 %{_libdir}/libgl2ps.la
104 %{_includedir}/gl2ps.h
105
106 %files static
107 %defattr(644,root,root,755)
108 %{_libdir}/libgl2ps.a
This page took 0.059108 seconds and 3 git commands to generate.