]> git.pld-linux.org Git - packages/gl2ps.git/blob - gl2ps.spec
88e9ca0b38062305e8f4f6649372aa57e8838ee8
[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:        0.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
33 %package devel
34 Summary:        Header files for GL2PS library
35 Summary(pl):    Pliki nag³ówkowe biblioteki GL2PS
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       OpenGL-devel
39
40 %description devel
41 Header files for GL2PS library.
42
43 %description devel -l pl
44 Pliki nag³ówkowe biblioteki GL2PS.
45
46 %package static
47 Summary:        Static GL2PS library
48 Summary(pl):    Statyczna biblioteka GL2PS
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 Static GL2PS library.
54
55 %description static -l pl
56 Statyczna biblioteka GL2PS.
57
58 %prep
59 %setup -q
60
61 %build
62 libtool --mode=compile %{__cc} %{rpmcflags} -c -o gl2ps.lo gl2ps.c
63 libtool --mode=link %{__cc} %{rpmldflags} -o libgl2ps.la gl2ps.lo -rpath %{_libdir} -lGL -lm
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
68
69 libtool --mode=install install libgl2ps.la $RPM_BUILD_ROOT%{_libdir}
70 install gl2ps.h $RPM_BUILD_ROOT%{_includedir}
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post   -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %files
79 %defattr(644,root,root,755)
80 %doc COPYING.GL2PS TODO
81 %attr(755,root,root) %{_libdir}/libgl2ps.so.*.*.*
82
83 %files devel
84 %defattr(644,root,root,755)
85 %doc gl2ps.pdf
86 %attr(755,root,root) %{_libdir}/libgl2ps.so
87 %{_libdir}/libgl2ps.la
88 %{_includedir}/gl2ps.h
89
90 %files static
91 %defattr(644,root,root,755)
92 %{_libdir}/libgl2ps.a
This page took 0.050492 seconds and 2 git commands to generate.