%ifnos darwin %define __soext so %define __defattr %defattr(-,root,root) %else %define __defattr %defattr(-,root,wheel) %define __soext dylib %endif Summary: converts Postscript(TM) and PDF files to other vector graphic formats Name: pstoedit Version: 3.40 Release: 1a License: GPL Group: Applications/Publishing Source0: http://home.t-online.de/home/helga.glunz/wglunz/pstoedit/pstoedit-%{version}.tar.gz Requires: ghostscript Buildroot: %{_tmppath}/%{name}-root URL: http://www.pstoedit.net/ %ifnos darwin Vendor: Project Vine(Vine Plus) Distribution: Vine Plus %endif Summary(ja): PostScript(TM) や PDF ファイルをベクタグラフィックに変換する %description pstoedit translates PostScript and PDF graphics into other vector formats. Currently pstoedit can generate the following formats: * Tgif .obj format (for tgif version >= 3) * .fig format for xfig * pdf - Adobe's Portable Document Format * gnuplot format * Flattened PostScript (with or without Bezier curves) * DXF - CAD exchange format * LWO - LightWave 3D * RIB - RenderMan * RPL - Real3D * Java applet * Idraw format * Tcl/Tk * HPGL * AI (Adobe Illustrator) (base on ps2ai.ps - not a real pstoedit * PIC format for troff/groff * MetaPost format for usage with TeX/LaTeX * Killustrator * GNU Metafile (plotutils / libplot) %description -l ja pstoedit は PostScript や PDF グラフィックを他のベクタ形式のグラフィック に変換する。今のところ pstoedit は次の形式のファイルを生成する。 * Tgif .obj 形式 (tgif バージョン 3 以上) * xfig で使われる .fig 形式 * pdf - Adobe's Portable Document Format * gnuplot 形式 * フラットな PostScript (ベジエ曲線に対応していない場合がある) * DXF - CAD exchange format * LWO - LightWave 3D * RIB - RenderMan * RPL - Real3D * Java applet * Idraw 形式 * Tcl/Tk * HPGL * AI (Adobe Illustrator) (ps2ai.ps に基づく- 実際は pstoedit が変換してない * troff/groff で使われる PIC 形式 * Tex/LaTeX で使われる MetaPost 形式 * Killustrator * GNU Metafile (plotutils / libplot) %package devel Summary: Files for developing applications that use %{name} Requires: %{name} = %{version} Group: Development/Libraries %description devel The header files for developing applications that use %{name} %prep %setup mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 %build cp /usr/share/libtool/config.* . cp /usr/share/libtool/ltmain.sh . sh configure --prefix=%{_prefix} %ifos darwin cp /usr/bin/glibtool libtool %endif make CXXFLAGS='-g -O2 -DINTERNALBOOL -D__linux' %install make install DESTDIR=$RPM_BUILD_ROOT cp doc/pstoedit.1 $RPM_BUILD_ROOT%{_mandir}/man1/ cp doc/*.htm . %clean rm -rf $RPM_BUILD_ROOT %files %{__defattr} %doc COPYING *.htm examples %{_bindir}/* %ifnos darwin %{_libdir}/libpstoedit.%{__soext}.* %else %{_libdir}/libpstoedit.*.%{__soext} %endif %{_libdir}/pstoedit/*.so %{_libdir}/pkgconfig/* %{_datadir}/aclocal/* %{_datadir}/pstoedit %{_mandir}/man1/* %files devel %{__defattr} %{_includedir}/pstoedit %{_libdir}/libpstoedit.%{__soext} %{_libdir}/lib*.a %{_libdir}/lib*.la %{_libdir}/pstoedit/lib*.a %{_libdir}/pstoedit/lib*.la %changelog * Wed May 5 2005 Keisuke Fujii 3.40-1a - 1st release on MacOSX 10.4. * Mon Jan 5 2004 Keisuke Fujii 3.33-1b - 1st release on MacOSX 10.3. * Thu May 8 2003 Keisuke Fujii - updated to v.3.33 * Thu Oct 10 2002 Keisuke Fujii - 1st release on MacOS X Release 10.2 * Thu Oct 11 2001 Keisuke Fujii - 1st release on MacOS X Release 10.1 * Tue Apr 24 2001 Keisuke Fujii - 1st release on MacOS X Release 10.0.01 * Thu Dec 23 1999 Keisuke Fujii - updated to v.3.16 * Sat Nov 13 1999 Keisuke Fujii - updated to v.3.15 * Fri Jun 21 1999 Norihito Ohmori - first release