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