pstoedit-vl.spec 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. Summary: Translator of PostScript and PDF graphics into various vector formats
  2. Summary(ja): ポストスクリプトやPDFを多種多様なベクタ形式に変換
  3. Name: pstoedit
  4. Version: 3.50
  5. Release: 1%{?_dist_release}
  6. Group: Applications/Graphics
  7. License: GPLv2
  8. URL: http://www.pstoedit.net/pstoedit
  9. Source0: http://prdownloads.sourceforge.net/pstoedit/%{name}-%{version}.tar.gz
  10. #Source1: http://www.helga-glunz.homepage.t-online.de/plugins/plugins_linux_350.tgz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: libemf-devel libpng-devel gd-devel
  13. BuildRequires: ImageMagick-c++-devel zlib-devel
  14. BuildRequires: libtool sed
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. %description
  18. pstoedit translates PostScript and PDF graphics into other vector
  19. formats. Currently pstoedit can generate the following formats:
  20. * Tgif .obj format (for tgif version >= 3)
  21. * .fig format for xfig
  22. * pdf - Adobe's Portable Document Format
  23. * gnuplot format
  24. * Flattened PostScript (with or without Bezier curves)
  25. * DXF - CAD exchange format
  26. * LWO - LightWave 3D
  27. * RIB - RenderMan
  28. * RPL - Real3D
  29. * Java 1 or Java 2 applet
  30. * Idraw format (in fact a special form of EPS that idraw can read)
  31. * Tcl/Tk
  32. * HPGL
  33. * AI (Adobe Illustrator) (based on ps2ai.ps - not a real pstoedit driver - see notes below and manual)
  34. * Windows Meta Files (WMF) (Windows 9x/NT only)
  35. * Enhanced Windows Meta Files (EMF) (Windows 9x/NT only)
  36. * OS/2 meta files (OS/2 only)
  37. * PIC format for troff/groff
  38. * MetaPost format for usage with TeX/LaTeX
  39. * LaTeX2e picture
  40. * Kontour
  41. * GNU Metafile (plotutils / libplot)
  42. * Sketch ( http://sketch.sourceforge.net )
  43. * Mathematica
  44. * via ImageMagick to any format supported by ImageMagick
  45. * SWF (beta release state - still lot's of features missing (fonts, dash handling, ...)
  46. %description -l ja
  47. pstoeditはポストスクリプトやPDFを多種多様なベクタ形式に変換します。サ
  48. ポートしている出力ファイル形式は下記の通りです。
  49. * Tgif .obj format (for tgif version >= 3)
  50. * .fig format for xfig
  51. * pdf - Adobe's Portable Document Format
  52. * gnuplot format
  53. * Flattened PostScript (with or without Bezier curves)
  54. * DXF - CAD exchange format
  55. * LWO - LightWave 3D
  56. * RIB - RenderMan
  57. * RPL - Real3D
  58. * Java 1 or Java 2 applet
  59. * Idraw format (in fact a special form of EPS that idraw can read)
  60. * Tcl/Tk
  61. * HPGL
  62. * AI (Adobe Illustrator) (based on ps2ai.ps - not a real pstoedit driver - see notes below and manual)
  63. * Windows Meta Files (WMF) (Windows 9x/NT only)
  64. * Enhanced Windows Meta Files (EMF) (Windows 9x/NT only)
  65. * OS/2 meta files (OS/2 only)
  66. * PIC format for troff/groff
  67. * MetaPost format for usage with TeX/LaTeX
  68. * LaTeX2e picture
  69. * Kontour
  70. * GNU Metafile (plotutils / libplot)
  71. * Sketch ( http://sketch.sourceforge.net )
  72. * Mathematica
  73. * via ImageMagick to any format supported by ImageMagick
  74. * SWF (beta release state - still lot's of features missing (fonts, dash handling, ...)
  75. %package devel
  76. Summary: pstoedit C Library developer.
  77. Summary(ja): pstoedit 開発ライブラリ
  78. Group: Development/Libraries
  79. URL: http://www.pstoedit.net/pstoedit
  80. Requires: pstoedit = %{version}-%{release}
  81. Requires: libpng-devel libstdc++-devel zlib-devel
  82. %description devel
  83. pstoedit library
  84. %description -l ja devel
  85. pstoedit 開発ライブラリ
  86. %prep
  87. %setup -q
  88. %{__perl} -p -i -e 's|BINDIR=/usr/local/bin||' autogen.sh
  89. %build
  90. ./autogen.sh
  91. libtoolize -c -f
  92. # needed because of definitions in imagemagick headers that break with -pedantic
  93. sed -ie 's/-pedantic//' configure
  94. %configure \
  95. --disable-static \
  96. --without-swf \
  97. --with-emf \
  98. --with-libemf-lib=%{_libdir} \
  99. --with-libemf-include=%{_includedir}/libEMF
  100. # don't use _smp_mflags
  101. %{__make}
  102. %install
  103. rm -rf $RPM_BUILD_ROOT
  104. %makeinstall
  105. #ifarch %{ix86}
  106. #{__install} -m 755 plugins_linux_350.so %{buildroot}%{_libdir}/%{name}
  107. #endif
  108. %{__mkdir_p} $RPM_BUILD_ROOT%{_mandir}/man1
  109. %{__install} -m 644 doc/%{name}.1 %{buildroot}%{_mandir}/man1
  110. %{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
  111. echo "%{_libdir}/%{name}" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/pstoedit.conf
  112. # %{__mkdir_p} %{buildroot}%{_bindir}
  113. # %{__install} -c config/pstoedit-config %{buildroot}%{_bindir}
  114. # %{__mkdir_p} %{buildroot}%{_datadir}
  115. # %{__install} -c -m 644 config/pstoedit.m4 %{buildroot}%{_datadir}/aclocal
  116. # %{__mkdir_p} %{buildroot}%{_datadir}/pstoedit/swffonts
  117. # %{__install} -c -m 644 misc/swffonts/default.fdb %{buildroot}%{_datadir}/pstoedit/swffonts
  118. # %{__install} -c -m 644 misc/latex2e.fmp %{buildroot}%{_datadir}/pstoedit
  119. # %{__install} -c -m 644 misc/mpost.fmp %{buildroot}%{_datadir}/pstoedit
  120. # %{__install} -c -m 644 misc/safer.ps %{buildroot}%{_datadir}/pstoedit
  121. # %{__install} -c -m 644 misc/svg.fmp %{buildroot}%{_datadir}/pstoedit
  122. # %{__install} -c -m 644 misc/wemf.fmp %{buildroot}%{_datadir}/pstoedit
  123. # %{__install} -c -m 644 misc/examplefigmap.fmp %{buildroot}%{_datadir}/pstoedit
  124. # ./libtool --mode=install %{__install} -c src/libpstoedit.la %{buildroot}%{_libdir}
  125. # ./libtool --mode=install %{__install} -c src/pstoedit %{buildroot}%{_bindir}
  126. # %{__mkdir_p} %{buildroot}%{_libdir}/pstoedit
  127. # ./libtool --mode=install %{__install} -c src/libp2edrvstd.la %{buildroot}%{_libdir}/pstoedit
  128. # ./libtool --mode=install %{__install} -c src/libp2edrvmagick++.la -inst-prefix %{buildroot} %{buildroot}%{_libdir}/pstoedit
  129. # %{__install} -c -m 644 src/pstoedit.h %{buildroot}%{_prefix}/include/pstoedit
  130. # %{__install} -c -m 644 src/pstoedll.h %{buildroot}%{_prefix}/include/pstoedit
  131. # %{__install} -c -m 644 src/pstoeditoutputlib.h %{buildroot}%{_prefix}/include/pstoedit
  132. # %{__install} -c -m 644 src/pstoeditoptions.h %{buildroot}%{_prefix}/include/pstoedit
  133. # %{__install} -c -m 644 src/pstoeditoptions.h %{buildroot}%{_prefix}/include/pstoedit
  134. # %{__install} -c -m 644 src/cppcomp.h %{buildroot}%{_prefix}/include/pstoedit
  135. # %{__install} -c -m 644 src/drvbase.h %{buildroot}%{_prefix}/include/pstoedit
  136. # %{__install} -c -m 644 src/drvfuncs.h %{buildroot}%{_prefix}/include/pstoedit
  137. # %{__install} -c -m 644 src/miscutil.h %{buildroot}%{_prefix}/include/pstoedit
  138. # %{__install} -c -m 644 src/base64writer.h %{buildroot}%{_prefix}/include/pstoedit
  139. # %{__install} -c -m 644 src/poptions.h %{buildroot}%{_prefix}/include/pstoedit
  140. # %{__install} -c -m 644 src/ordlist.h %{buildroot}%{_prefix}/include/pstoedit
  141. # %{__install} -c -m 644 src/psimage.h %{buildroot}%{_prefix}/include/pstoedit
  142. #
  143. # %{__install} -m 775 lib/pstoedit/plugins_linux.so %{buildroot}%{_libdir}/pstoedit
  144. # for i in %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/pstoedit/*.la
  145. # do cp -p $i $i~
  146. # sed s:%{buildroot}::g <$i~ >$i
  147. # rm $i~
  148. # done
  149. #
  150. %clean
  151. rm -rf $RPM_BUILD_ROOT
  152. %post -p /sbin/ldconfig
  153. %postun -p /sbin/ldconfig
  154. %files
  155. %defattr(-,root,root)
  156. %doc copying doc/*.htm
  157. %{_sysconfdir}/ld.so.conf.d/%{name}.conf
  158. %{_bindir}/pstoedit
  159. %{_libdir}/*.so.*
  160. %dir %{_libdir}/pstoedit
  161. %{_libdir}/%{name}/*.so
  162. %{_libdir}/%{name}/*.so.*
  163. %{_datadir}/%{name}
  164. %{_mandir}/*/*
  165. %files devel
  166. %defattr(-,root,root)
  167. %{_libdir}/*.so
  168. %{_includedir}/pstoedit/*
  169. %{_libdir}/pkgconfig/*.pc
  170. %{_datadir}/aclocal/*
  171. %exclude %{_libdir}/*.la
  172. %exclude %{_libdir}/pstoedit/*.la
  173. %changelog
  174. * Thu Apr 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.50-1
  175. - new upstream release
  176. - built with new toolchain and ImageMagick-6.6.1.5
  177. - used ld.so.conf.d instead of ld.so.conf
  178. * Sun Jun 14 2009 Shu KONNO <owa@bg.wakwak.com> 3.45-1
  179. - applied new versioning policy, and spec in utf-8
  180. - update pstoedit to 3.45
  181. - added --disable-static option to %%configure
  182. - added --without-swf option, because of fail to compile
  183. * Fri Oct 13 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.44-0vl2
  184. - install plugins_linux.3.42.so only on ix86 archs
  185. (what should we do with the intel binary file on other archs, huh?)
  186. * Thu Aug 17 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.44-0vl1
  187. - rebuilt for VineSeed (4.0)
  188. - updated to 3.44
  189. - fixed build dependancy
  190. * Wed Sep 28 2005 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  191. - Updated to 3.42
  192. * Tue Jan 11 2005 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  193. - Updated to 3.40
  194. * Fri Sep 24 2004 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  195. - Added plugins
  196. - Disable emf support
  197. * Wed Sep 22 2004 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  198. - Added buildrequires
  199. * Thu Oct 2 2003 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  200. - initial package