]> git.pld-linux.org Git - packages/gl2ps.git/blob - gl2ps.spec
- pl desc, release 1
[packages/gl2ps.git] / gl2ps.spec
1 Summary:        GL2PS - an OpenGL to PostScript printing library
2 Summary(pl):    GL2PS - biblioteka drukowania z OpenGL-a do PostScriptu
3 Name:           gl2ps
4 Version:        1.2.6
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:  0fe27cf84d8bc4691982d8d5c6b2496f
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
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):    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
60 Pliki nag³ówkowe biblioteki GL2PS.
61
62 %package static
63 Summary:        Static GL2PS library
64 Summary(pl):    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
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.090932 seconds and 3 git commands to generate.