potrace-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. Name: potrace
  2. Summary: Transform bitmaps into vector graphics
  3. Summary(ja): ビットマップ画像をベクター画像に変換
  4. Version: 1.16
  5. Release: 1%{?_dist_release}
  6. Summary: Transform bitmaps into vector graphics
  7. Group: graphics
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. # README defines license as GPLv2+
  11. License: GPLv2+
  12. URL: http://potrace.sourceforge.net
  13. Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
  14. # Documentation
  15. Source1: http://potrace.sourceforge.net/potrace.pdf
  16. Source2: http://potrace.sourceforge.net/potracelib.pdf
  17. BuildRequires: zlib-devel
  18. %description
  19. Potrace is a utility for tracing a bitmap, which means, transforming a bitmap
  20. into a smooth, scalable image. The input is a bitmap (PBM, PGM, PPM, or BMP
  21. format), and the default output is an encapsulated PostScript file (EPS).
  22. A typical use is to create EPS files from scanned data, such as company or
  23. university logos, handwritten notes, etc. The resulting image is not "jaggy"
  24. like a bitmap, but smooth. It can then be rendered at any resolution.
  25. Potrace can currently produce the following output formats: EPS, PostScript,
  26. PDF, SVG (scalable vector graphics), Xfig, Gimppath, and PGM (for easy
  27. antialiasing). Additional backends might be added in the future.
  28. Mkbitmap is a program distributed with Potrace which can be used to pre-process
  29. the input for better tracing behavior on greyscale and color images.
  30. %description -l ja
  31. potrace はビットマップ画像をトレースするツールです.ビットマップ画像を
  32. 滑らかで拡大縮小できる画像に変換します.社章、校章、手書き図のスキャン
  33. 画像から滑らかなEPSを得るには,例えば,
  34. convert hoge.bmp pbm:- | mkbitmap -s 2 | potrace -a -1 -C "#202020" > hoge.eps
  35. とします.入力形式がPBMであることに注意してください.
  36. %package devel
  37. Summary: Potrace development library and headers
  38. Group: programming
  39. Requires: %{name} = %{version}-%{release}
  40. %description devel
  41. This package contains the potrace development library and headers.
  42. %package doc
  43. Summary: Documentation on how to use the potrace library
  44. Group: documentation
  45. %if 0%{?fedora} > 10 || 0%{?rhel} > 5
  46. BuildArch: noarch
  47. %endif
  48. %description doc
  49. This package contains documentation for the potrace algorithm and the potrace
  50. library.
  51. %debug_package
  52. %prep
  53. %setup -q
  54. cp -a %{SOURCE1} .
  55. cp -a %{SOURCE2} .
  56. %build
  57. %configure --enable-shared --disable-static \
  58. --enable-metric --with-libpotrace --with-pic
  59. %make_build
  60. %install
  61. rm -rf %{buildroot}
  62. %make_install
  63. find %{buildroot} -name *.la -exec rm -rf {} \;
  64. # Get rid of installed copy of placement.pdf
  65. rm -rf %{buildroot}%{_docdir}/%{name}
  66. %files
  67. %doc AUTHORS ChangeLog COPYING NEWS README doc/placement.pdf
  68. %{_bindir}/potrace
  69. %{_bindir}/mkbitmap
  70. %{_libdir}/libpotrace.so.*
  71. %{_mandir}/man1/potrace.1*
  72. %{_mandir}/man1/mkbitmap.1*
  73. %files devel
  74. %{_libdir}/libpotrace.so
  75. %{_includedir}/potracelib.h
  76. %files doc
  77. %doc potrace.pdf potracelib.pdf
  78. %changelog
  79. * Sat Feb 27 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.16-1
  80. - new upstream release.
  81. - made to built a shared library.
  82. - added subpackages: devel, doc.
  83. * Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.11-1
  84. - update to 1.11
  85. - remove Patch0
  86. * Fri Oct 10 2008 Shu KONNO <owa@bg.wakwak.com> 1.8-1vl5
  87. - applied new versioning policy, spec in utf-8
  88. * Fri Aug 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8-0vl1
  89. - new upstream release
  90. * Sat Jul 8 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.7-0vl2
  91. - rebuilt for VineSeed (4.0)
  92. - added Patch0 from upstream
  93. - added --enable-metric and --enable-a4 option at configure
  94. * Thu Apr 21 2005 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  95. - Updated to 1.7
  96. * Tue Feb 15 2005 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  97. - Updated to 1.5
  98. - Japanized this spec file
  99. - Rewrote build and install section
  100. * Wed May 19 2004 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  101. - initial package for VineLinux
  102. * Mon Aug 18 2003 Peter Selinger <selinger@users.sourceforge.net>
  103. - corrected Summary and Group information