pstoedit-vl.spec 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. Name: pstoedit
  2. Summary: Translator of PostScript and PDF graphics into various vector formats
  3. Summary(ja): ポストスクリプトやPDFを多種多様なベクタ形式に変換
  4. Version: 3.75
  5. Release: 1%{?_dist_release}
  6. Group: Applications/Graphics
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: GPLv2
  10. URL: http://www.calvina.de/pstoedit/
  11. Source0: https://prdownloads.sourceforge.net/pstoedit/%{name}-%{version}.tar.gz
  12. #Source1: http://www.helga-glunz.homepage.t-online.de/plugins/plugins_linux_350.tgz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: libemf-devel libpng-devel gd-devel
  15. BuildRequires: ImageMagick-c++-devel zlib-devel
  16. BuildRequires: ghostscript
  17. BuildRequires: libtool sed
  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. autoreconf -fiv
  92. #./autogen.sh
  93. #libtoolize -c -f
  94. # needed because of definitions in imagemagick headers that break with -pedantic
  95. sed -ie 's/-pedantic//' configure
  96. %configure \
  97. --disable-static \
  98. --without-swf \
  99. --with-emf \
  100. --with-libemf-lib=%{_libdir} \
  101. --with-libemf-include=%{_includedir}/libEMF
  102. # don't use _smp_mflags
  103. %{__make}
  104. %install
  105. rm -rf $RPM_BUILD_ROOT
  106. %makeinstall
  107. #ifarch %{ix86}
  108. #{__install} -m 755 plugins_linux_350.so %{buildroot}%{_libdir}/%{name}
  109. #endif
  110. %{__mkdir_p} $RPM_BUILD_ROOT%{_mandir}/man1
  111. %{__install} -m 644 doc/%{name}.1 %{buildroot}%{_mandir}/man1
  112. %{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
  113. echo "%{_libdir}/%{name}" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/pstoedit.conf
  114. rm -rf %{buildroot}%{_docdir}/%{name}
  115. # %{__mkdir_p} %{buildroot}%{_bindir}
  116. # %{__install} -c config/pstoedit-config %{buildroot}%{_bindir}
  117. # %{__mkdir_p} %{buildroot}%{_datadir}
  118. # %{__install} -c -m 644 config/pstoedit.m4 %{buildroot}%{_datadir}/aclocal
  119. # %{__mkdir_p} %{buildroot}%{_datadir}/pstoedit/swffonts
  120. # %{__install} -c -m 644 misc/swffonts/default.fdb %{buildroot}%{_datadir}/pstoedit/swffonts
  121. # %{__install} -c -m 644 misc/latex2e.fmp %{buildroot}%{_datadir}/pstoedit
  122. # %{__install} -c -m 644 misc/mpost.fmp %{buildroot}%{_datadir}/pstoedit
  123. # %{__install} -c -m 644 misc/safer.ps %{buildroot}%{_datadir}/pstoedit
  124. # %{__install} -c -m 644 misc/svg.fmp %{buildroot}%{_datadir}/pstoedit
  125. # %{__install} -c -m 644 misc/wemf.fmp %{buildroot}%{_datadir}/pstoedit
  126. # %{__install} -c -m 644 misc/examplefigmap.fmp %{buildroot}%{_datadir}/pstoedit
  127. # ./libtool --mode=install %{__install} -c src/libpstoedit.la %{buildroot}%{_libdir}
  128. # ./libtool --mode=install %{__install} -c src/pstoedit %{buildroot}%{_bindir}
  129. # %{__mkdir_p} %{buildroot}%{_libdir}/pstoedit
  130. # ./libtool --mode=install %{__install} -c src/libp2edrvstd.la %{buildroot}%{_libdir}/pstoedit
  131. # ./libtool --mode=install %{__install} -c src/libp2edrvmagick++.la -inst-prefix %{buildroot} %{buildroot}%{_libdir}/pstoedit
  132. # %{__install} -c -m 644 src/pstoedit.h %{buildroot}%{_prefix}/include/pstoedit
  133. # %{__install} -c -m 644 src/pstoedll.h %{buildroot}%{_prefix}/include/pstoedit
  134. # %{__install} -c -m 644 src/pstoeditoutputlib.h %{buildroot}%{_prefix}/include/pstoedit
  135. # %{__install} -c -m 644 src/pstoeditoptions.h %{buildroot}%{_prefix}/include/pstoedit
  136. # %{__install} -c -m 644 src/pstoeditoptions.h %{buildroot}%{_prefix}/include/pstoedit
  137. # %{__install} -c -m 644 src/cppcomp.h %{buildroot}%{_prefix}/include/pstoedit
  138. # %{__install} -c -m 644 src/drvbase.h %{buildroot}%{_prefix}/include/pstoedit
  139. # %{__install} -c -m 644 src/drvfuncs.h %{buildroot}%{_prefix}/include/pstoedit
  140. # %{__install} -c -m 644 src/miscutil.h %{buildroot}%{_prefix}/include/pstoedit
  141. # %{__install} -c -m 644 src/base64writer.h %{buildroot}%{_prefix}/include/pstoedit
  142. # %{__install} -c -m 644 src/poptions.h %{buildroot}%{_prefix}/include/pstoedit
  143. # %{__install} -c -m 644 src/ordlist.h %{buildroot}%{_prefix}/include/pstoedit
  144. # %{__install} -c -m 644 src/psimage.h %{buildroot}%{_prefix}/include/pstoedit
  145. #
  146. # %{__install} -m 775 lib/pstoedit/plugins_linux.so %{buildroot}%{_libdir}/pstoedit
  147. # for i in %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/pstoedit/*.la
  148. # do cp -p $i $i~
  149. # sed s:%{buildroot}::g <$i~ >$i
  150. # rm $i~
  151. # done
  152. #
  153. %clean
  154. rm -rf $RPM_BUILD_ROOT
  155. %post -p /sbin/ldconfig
  156. %postun -p /sbin/ldconfig
  157. %files
  158. %defattr(-,root,root)
  159. %license copying
  160. %doc doc/*.htm doc/*.pdf doc/*.txt
  161. %{_sysconfdir}/ld.so.conf.d/%{name}.conf
  162. %{_bindir}/pstoedit
  163. %{_libdir}/*.so.*
  164. %dir %{_libdir}/pstoedit
  165. %{_libdir}/%{name}/*.so
  166. %{_libdir}/%{name}/*.so.*
  167. %{_datadir}/%{name}
  168. %{_mandir}/*/*
  169. %files devel
  170. %defattr(-,root,root)
  171. %{_libdir}/*.so
  172. %{_includedir}/pstoedit/*
  173. %{_libdir}/pkgconfig/*.pc
  174. %{_datadir}/aclocal/*
  175. %exclude %{_libdir}/*.la
  176. %exclude %{_libdir}/pstoedit/*.la
  177. %changelog
  178. * Sun May 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.75-1
  179. - new upstream release.
  180. * Sun Oct 27 2019 Toshiaki Ara <ara_t@384.jp> 3.60-7
  181. - rebuild under current VineSeed environment
  182. * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 3.60-6
  183. - rebuild with gcc-5.4.0
  184. * Sun Aug 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.60-5
  185. - rebuild with ImageMagick-6.9.1.4
  186. * Wed Jul 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.60-4
  187. - rebuild with ImageMagick-6.8.9.5
  188. * Sun Nov 10 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.60-3
  189. - rebuild with ImageMagick-6.8.7.5
  190. * Wed Aug 14 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.60-2
  191. - rebuild with ImageMagick-6.8.6.8
  192. * Sun Mar 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.60-1
  193. - update to 3.60
  194. - add BuildRequires: ghostscript
  195. * Sat Oct 2 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.50-3
  196. - rebuilt with ImageMagick-6.6.4.8
  197. * Thu Sep 30 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.50-2
  198. - rebuilt with rpm-4.8.1 for pkg-config
  199. * Thu Apr 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.50-1
  200. - new upstream release
  201. - built with new toolchain and ImageMagick-6.6.1.5
  202. - used ld.so.conf.d instead of ld.so.conf
  203. * Sun Jun 14 2009 Shu KONNO <owa@bg.wakwak.com> 3.45-1
  204. - applied new versioning policy, and spec in utf-8
  205. - update pstoedit to 3.45
  206. - added --disable-static option to %%configure
  207. - added --without-swf option, because of fail to compile
  208. * Fri Oct 13 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.44-0vl2
  209. - install plugins_linux.3.42.so only on ix86 archs
  210. (what should we do with the intel binary file on other archs, huh?)
  211. * Thu Aug 17 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.44-0vl1
  212. - rebuilt for VineSeed (4.0)
  213. - updated to 3.44
  214. - fixed build dependancy
  215. * Wed Sep 28 2005 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  216. - Updated to 3.42
  217. * Tue Jan 11 2005 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  218. - Updated to 3.40
  219. * Fri Sep 24 2004 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  220. - Added plugins
  221. - Disable emf support
  222. * Wed Sep 22 2004 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  223. - Added buildrequires
  224. * Thu Oct 2 2003 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  225. - initial package