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