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