pstoedit-vl.spec 9.2 KB

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