pstoedit-vl.spec 8.9 KB

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