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