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