%define pkg_name gl2ps %define pkg_version 1.4.0 %define pkg_release 1%{?_dist_release} Summary: An OpenGL to PostScript printing library Summary(ja): OpenGL から PostScript を出力するライブラリ Summary(pl): Biblioteka drukowania z OpenGL-a do PostScriptu Name: %{pkg_name} Version: %{pkg_version} Release: %{pkg_release} License: LGPLv2+ or GL2PS Group: System Environment/Libraries URL: http://www.geuz.org/gl2ps/ Source0: http://www.geuz.org/gl2ps/src/%{name}-%{version}.tgz # # Vine Patch # Patch700: gl2ps-1.3.8-nostatic.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: cmake >= 2.4 BuildRequires: mesa-libGL-devel BuildRequires: libpng-devel BuildRequires: zlib-devel %description GL2PS is a C library providing high quality vector output for any OpenGL application. The main difference between GL2PS and other similar libraries is the use of sorting algorithms capable of handling intersecting and stretched polygons, as well as non manifold objects. GL2PS provides advanced smooth shading and text rendering, culling of invisible primitives, mixed vector/bitmap output, and much more... GL2PS can currently create PostScript (PS), Encapsulated PostScript (EPS) and Portable Document Format (PDF) files, as well as LaTeX files for the text fragments. Adding new vector output formats should be relatively easy (and amongst the formats we would be interested in adding, SVG is first in line). Meanwhile, you can use the excellent pstoedit program to transform the PostScript files generated by GL2PS into many other vector formats such as xfig, cgm, wmf, etc. %description -l ja GL2PSはOpenGLアプリケーションの高品質のベクトル出力を提供するCライブラリです。 GL2PSは高度なスムーズなシェーディングとテキストのレンダリング、 混在ベクター/ビットマップ出力、目に見えないプリミティブのカリングを提供して います。 現在、PostScript (PS)、カプセル化PostScript (EPS)、ポータブルドキュメント フォーマット (PDF)、スケーラブルベクターグラフィックス (SVG) ファイルと LaTeXファイルを作成することができます。 %description -l pl 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(ja): GL2PS ライブラリのヘッダファイル Summary(pl): Pliki nagłówkowe biblioteki GL2PS Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: mesa-libGL-devel %description devel Header files for GL2PS library. %description devel -l ja GL2PSのヘッダーファイル %description devel -l pl Pliki nagłówkowe biblioteki GL2PS. %prep %setup -q -n %{name}-%{version}-source # %patch700 -p1 -b .nostatic %build %cmake . %{__make} %{?_smp_mflags} %install %{__rm} -rf ${RPM_BUILD_ROOT} %{make_install} %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/libgl2ps.a %{__rm} -rf ${RPM_BUILD_ROOT}%{_docdir}/gl2ps %clean %{__rm} -rf ${RPM_BUILD_ROOT} %post -p %{_syssbindir}/ldconfig %postun -p %{_syssbindir}/ldconfig %files %defattr(644,root,root,755) %doc COPYING.GL2PS COPYING.LGPL README.txt gl2psTest*.c %attr(755,root,root) %{_libdir}/libgl2ps.so.* %files devel %defattr(644,root,root,755) %doc gl2ps.pdf gl2psTest*.c %{_libdir}/libgl2ps.so %{_includedir}/gl2ps.h %changelog * Sat Jul 07 2018 Toshiaki Ara 1.4.0-1 - update to 1.4.0 - delete BuildRequires: texlive * Mon Apr 11 2016 Toshiaki Ara 1.3.9-3 - merge with previous SPEC file * Mon Apr 11 2016 Toshiaki Ara 1.3.9-2 - correct SPEC file * Fri Mar 18 2016 Toshiaki Ara 1.3.9-1 - update to 1.3.9 * Sun Jan 25 2015 Ryoichi INAGAKI 1.3.8-6 - Initial build for Vine Linux - added Patch700 * Sat Aug 16 2014 Fedora Release Engineering - 1.3.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.3.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.3.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Feb 13 2013 Fedora Release Engineering - 1.3.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Nov 27 2012 Orion Poplawski 1.3.8-1 - Updated to 1.3.8 - Dropped soversion patch applied upstream - Don't need to move library on 64bit anymore * Sat Sep 01 2012 Dominik Mierzejewski 1.3.6-1 - updated to 1.3.6 * Thu Jul 19 2012 Fedora Release Engineering - 1.3.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 1.3.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 06 2011 Adam Jackson - 1.3.5-3 - Rebuild for new libpng * Tue Feb 08 2011 Fedora Release Engineering - 1.3.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Dec 26 2009 Dominik Mierzejewski 1.3.5-1 - updated to 1.3.5 - dropped upstreamed patches - fixed install in libdir - fixed missing SO version * Sun Aug 23 2009 Dominik Mierzejewski 1.3.3-1 - updated to 1.3.3 - removed calls to exit(3) - added a simple build system (Makefile) - dropped libtool dependency - 1.3.3 added a new symbol, so made it versioned - added examples to -devel docs * Fri Jul 24 2009 Fedora Release Engineering - 1.3.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering - 1.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Jun 13 2008 Dominik Mierzejewski 1.3.2-1 - adapted PLD spec r1.2 - dropped static package