Summary: GL2PS - an OpenGL to PostScript printing library
-Summary(pl): GL2PS - biblioteka drukowania z OpenGL-a do PostScriptu
+Summary(pl.UTF-8): GL2PS - biblioteka drukowania z OpenGL-a do PostScriptu
Name: gl2ps
-Version: 1.2.6
-Release: 0.1
+Version: 1.3.6
+Release: 1
License: LGPL v2+ or GP2PS License v2+ (see COPYING.GL2PS)
Group: Libraries
Source0: http://www.geuz.org/gl2ps/src/%{name}-%{version}.tgz
-# Source0-md5: 0fe27cf84d8bc4691982d8d5c6b2496f
+# Source0-md5: 41eb8f4a143ef83de2fd8cd3423acf7a
+Patch0: %{name}-link.patch
URL: http://www.geuz.org/gl2ps/
BuildRequires: OpenGL-devel
-BuildRequires: libtool
+BuildRequires: cmake >= 2.4
+BuildRequires: libpng-devel
+BuildRequires: rpmbuild(macros) >= 1.603
+BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
pstoedit program to transform the PostScript files generated by GL2PS
into many other vector formats such as xfig, cgm, wmf, etc.
-#%description -l pl
+%description -l pl.UTF-8
+GL2PS to biblioteka C zapewniająca wysokiej jakości wyjście wektorowe
+dla dowolnej aplikacji OpenGL. Główna różnica między GL2PS a innymi
+podobnymi bibliotekami polega na użyciu algorytmów sortujących
+potrafiących obsłużyć przecinające się i rozciągnięte wielokąty, a
+także obiekty nie będące rozmaitościami. GL2PS zapewnia zaawansowane
+gładkie cieniowanie i renderowanie tekstu, usuwanie niewidocznych
+prymitywów, mieszane wyjście wektorowo-bitmapowe i wiele więcej.
+
+GL2PS aktualnie potrafi tworzyć pliki PostScript (PS), Encapsulated
+PostScript (EPS) oraz Portable Document Format (PDF), a także pliki
+LaTeXa dla fragmentów tekstowych. Dodanie nowych wyjściowych formatów
+wektorowych powinno być względnie łatwe (a spośród formatów, których
+dodanie zainteresowani byliby autorzy, pierwszym jest SVG). Tymczasem
+można używać świetnego programu pstoedit do przekształcania plików
+PostScript generowanych przez GL2PS na wiele innych formatów
+wektorowych, takich jak xfig, cgm, wmf itp.
%package devel
Summary: Header files for GL2PS library
-Summary(pl): Pliki nag³ówkowe biblioteki GL2PS
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GL2PS
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: OpenGL-devel
%description devel
Header files for GL2PS library.
-%description devel -l pl
-Pliki nag³ówkowe biblioteki GL2PS.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki GL2PS.
%package static
Summary: Static GL2PS library
-Summary(pl): Statyczna biblioteka GL2PS
+Summary(pl.UTF-8): Statyczna biblioteka GL2PS
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static GL2PS library.
-%description static -l pl
+%description static -l pl.UTF-8
Statyczna biblioteka GL2PS.
%prep
-%setup -q
+%setup -q -n %{name}-%{version}-source
+%patch0 -p1
%build
-libtool --mode=compile %{__cc} %{rpmcflags} -c -o gl2ps.lo gl2ps.c
-libtool --mode=link %{__cc} %{rpmldflags} -o libgl2ps.la gl2ps.lo -rpath %{_libdir} -lGL -lm
+%cmake .
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
+install -d $RPM_BUILD_ROOT%{_libdir}
-libtool --mode=install install libgl2ps.la $RPM_BUILD_ROOT%{_libdir}
-install gl2ps.h $RPM_BUILD_ROOT%{_includedir}
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc COPYING.GL2PS TODO
+%doc COPYING.GL2PS README.txt TODO.txt
%attr(755,root,root) %{_libdir}/libgl2ps.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgl2ps.so.1
%files devel
%defattr(644,root,root,755)
%doc gl2ps.pdf
%attr(755,root,root) %{_libdir}/libgl2ps.so
-%{_libdir}/libgl2ps.la
%{_includedir}/gl2ps.h
%files static