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