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: 22e51ff57ecd35cb1cc22497a178a017
10 URL: http://www.geuz.org/gl2ps/
11 BuildRequires: OpenGL-devel
13 BuildRequires: libpng-devel
14 BuildRequires: zlib-devel
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 GL2PS is a C library providing high quality vector output for any
19 OpenGL application. The main difference between GL2PS and other
20 similar libraries is the use of sorting algorithms capable of handling
21 intersecting and stretched polygons, as well as non manifold objects.
22 GL2PS provides advanced smooth shading and text rendering, culling of
23 invisible primitives, mixed vector/bitmap output, and much more...
25 GL2PS can currently create PostScript (PS), Encapsulated PostScript
26 (EPS) and Portable Document Format (PDF) files, as well as LaTeX files
27 for the text fragments. Adding new vector output formats should be
28 relatively easy (and amongst the formats we would be interested in
29 adding, SVG is first in line). Meanwhile, you can use the excellent
30 pstoedit program to transform the PostScript files generated by GL2PS
31 into many other vector formats such as xfig, cgm, wmf, etc.
33 %description -l pl.UTF-8
34 GL2PS to biblioteka C zapewniająca wysokiej jakości wyjście wektorowe
35 dla dowolnej aplikacji OpenGL. Główna różnica między GL2PS a innymi
36 podobnymi bibliotekami polega na użyciu algorytmów sortujących
37 potrafiących obsłużyć przecinające się i rozciągnięte wielokąty, a
38 także obiekty nie będące rozmaitościami. GL2PS zapewnia zaawansowane
39 gładkie cieniowanie i renderowanie tekstu, usuwanie niewidocznych
40 prymitywów, mieszane wyjście wektorowo-bitmapowe i wiele więcej.
42 GL2PS aktualnie potrafi tworzyć pliki PostScript (PS), Encapsulated
43 PostScript (EPS) oraz Portable Document Format (PDF), a także pliki
44 LaTeXa dla fragmentów tekstowych. Dodanie nowych wyjściowych formatów
45 wektorowych powinno być względnie łatwe (a spośród formatów, których
46 dodanie zainteresowani byliby autorzy, pierwszym jest SVG). Tymczasem
47 można używać świetnego programu pstoedit do przekształcania plików
48 PostScript generowanych przez GL2PS na wiele innych formatów
49 wektorowych, takich jak xfig, cgm, wmf itp.
52 Summary: Header files for GL2PS library
53 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GL2PS
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
56 Requires: OpenGL-devel
59 Header files for GL2PS library.
61 %description devel -l pl.UTF-8
62 Pliki nagłówkowe biblioteki GL2PS.
65 Summary: Static GL2PS library
66 Summary(pl.UTF-8): Statyczna biblioteka GL2PS
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}-%{release}
73 %description static -l pl.UTF-8
74 Statyczna biblioteka GL2PS.
77 %setup -q -n %{name}-%{version}-source
80 export CFLAGS="%{rpmcflags}"
81 export CXXFLAGS="%{rpmcflags}"
83 -DCMAKE_INSTALL_PREFIX="%{_prefix}"
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT%{_libdir}
91 DESTDIR=$RPM_BUILD_ROOT
93 mv $RPM_BUILD_ROOT{%{_prefix}/lib/libgl2ps.so,%{_libdir}/libgl2ps.so.0.0.0}
94 ln -s libgl2ps.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libgl2ps.so
97 rm -rf $RPM_BUILD_ROOT
99 %post -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
103 %defattr(644,root,root,755)
104 %doc COPYING.GL2PS README.txt TODO.txt
105 %attr(755,root,root) %{_libdir}/libgl2ps.so.*.*.*
108 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libgl2ps.so
111 %{_includedir}/gl2ps.h
114 %defattr(644,root,root,755)
115 %{_libdir}/libgl2ps.a