1 Summary: GL2PS - an OpenGL to PostScript printing library
2 Summary(pl.UTF-8): GL2PS - biblioteka drukowania z OpenGL-a do PostScriptu
6 License: LGPL v2+ or GP2PS License v2+ (see COPYING.GL2PS)
8 Source0: http://www.geuz.org/gl2ps/src/%{name}-%{version}.tgz
9 # Source0-md5: 0606554d833f4fd9f09eab48a374c785
10 Patch0: %{name}-link.patch
11 URL: http://www.geuz.org/gl2ps/
12 BuildRequires: OpenGL-devel
13 BuildRequires: cmake >= 2.8
14 BuildRequires: libpng-devel
15 BuildRequires: rpmbuild(macros) >= 1.605
16 BuildRequires: texlive-format-pdflatex
17 BuildRequires: texlive-xetex
18 BuildRequires: zlib-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 GL2PS is a C library providing high quality vector output for any
23 OpenGL application. The main difference between GL2PS and other
24 similar libraries is the use of sorting algorithms capable of handling
25 intersecting and stretched polygons, as well as non manifold objects.
26 GL2PS provides advanced smooth shading and text rendering, culling of
27 invisible primitives, mixed vector/bitmap output, and much more...
29 GL2PS can currently create PostScript (PS), Encapsulated PostScript
30 (EPS) and Portable Document Format (PDF) files, as well as LaTeX files
31 for the text fragments. Adding new vector output formats should be
32 relatively easy (and amongst the formats we would be interested in
33 adding, SVG is first in line). Meanwhile, you can use the excellent
34 pstoedit program to transform the PostScript files generated by GL2PS
35 into many other vector formats such as xfig, cgm, wmf, etc.
37 %description -l pl.UTF-8
38 GL2PS to biblioteka C zapewniająca wysokiej jakości wyjście wektorowe
39 dla dowolnej aplikacji OpenGL. Główna różnica między GL2PS a innymi
40 podobnymi bibliotekami polega na użyciu algorytmów sortujących
41 potrafiących obsłużyć przecinające się i rozciągnięte wielokąty, a
42 także obiekty nie będące rozmaitościami. GL2PS zapewnia zaawansowane
43 gładkie cieniowanie i renderowanie tekstu, usuwanie niewidocznych
44 prymitywów, mieszane wyjście wektorowo-bitmapowe i wiele więcej.
46 GL2PS aktualnie potrafi tworzyć pliki PostScript (PS), Encapsulated
47 PostScript (EPS) oraz Portable Document Format (PDF), a także pliki
48 LaTeXa dla fragmentów tekstowych. Dodanie nowych wyjściowych formatów
49 wektorowych powinno być względnie łatwe (a spośród formatów, których
50 dodanie zainteresowani byliby autorzy, pierwszym jest SVG). Tymczasem
51 można używać świetnego programu pstoedit do przekształcania plików
52 PostScript generowanych przez GL2PS na wiele innych formatów
53 wektorowych, takich jak xfig, cgm, wmf itp.
56 Summary: Header files for GL2PS library
57 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GL2PS
58 Group: Development/Libraries
59 Requires: %{name} = %{version}-%{release}
60 Requires: OpenGL-devel
63 Header files for GL2PS library.
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe biblioteki GL2PS.
69 Summary: Static GL2PS library
70 Summary(pl.UTF-8): Statyczna biblioteka GL2PS
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{version}-%{release}
77 %description static -l pl.UTF-8
78 Statyczna biblioteka GL2PS.
92 rm -rf $RPM_BUILD_ROOT
93 install -d $RPM_BUILD_ROOT%{_libdir}
95 %{__make} -C build install \
96 DESTDIR=$RPM_BUILD_ROOT
98 # docs packaged as %doc, tests not useful at runtime
99 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gl2ps
102 rm -rf $RPM_BUILD_ROOT
104 %post -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
108 %defattr(644,root,root,755)
109 %doc COPYING.GL2PS README.txt
110 %attr(755,root,root) %{_libdir}/libgl2ps.so.*.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libgl2ps.so.1
114 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libgl2ps.so
117 %{_includedir}/gl2ps.h
120 %defattr(644,root,root,755)
121 %{_libdir}/libgl2ps.a