]>
Commit | Line | Data |
---|---|---|
cbc0f056 | 1 | Summary: Convert PostScript and PDF files into various vector-graphic formats |
badfaf18 | 2 | Summary(pl.UTF-8): Konwerter PostScriptu i PDF do różnych formatów wektorowych |
cbc0f056 | 3 | Name: pstoedit |
df9d56e1 | 4 | Version: 3.50 |
6b0883a5 | 5 | Release: 3 |
b55c349a | 6 | License: GPL v2+ |
cbc0f056 | 7 | Group: Applications/Graphics |
94944e1f | 8 | Source0: http://dl.sourceforge.net/pstoedit/%{name}-%{version}.tar.gz |
df9d56e1 | 9 | # Source0-md5: 97d649305ad90fab7a569154f17e0916 |
96d1cc96 | 10 | Patch0: %{name}-opt.patch |
df9d56e1 PS |
11 | Patch1: %{name}-link.patch |
12 | Patch2: %{name}-am18.patch | |
79b6aaa2 | 13 | Patch3: ming04.patch |
94944e1f | 14 | URL: http://www.helga-glunz.homepage.t-online.de/pstoedit/ |
df9d56e1 | 15 | BuildRequires: ImageMagick-c++-devel |
cbc0f056 | 16 | BuildRequires: autoconf |
96d1cc96 | 17 | BuildRequires: automake |
ec1391e6 | 18 | BuildRequires: bzip2-devel |
4986296f | 19 | BuildRequires: ghostscript |
7528c9d3 | 20 | BuildRequires: libEMF-devel |
cbc0f056 | 21 | BuildRequires: libplotter-devel >= 2.3 |
1800675c JB |
22 | BuildRequires: libpng-devel >= 1.0.8 |
23 | BuildRequires: libstdc++-devel >= 3.0 | |
96d1cc96 JB |
24 | BuildRequires: libtool >= 2:1.4d-3 |
25 | BuildRequires: ming-devel | |
4986296f | 26 | BuildRequires: pkgconfig |
cbc0f056 JB |
27 | Requires: ghostscript |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | pstoedit converts PostScript and PDF files into a wide variety of | |
32 | editable (and not-so-editable) formats: gnuplot, idraw, xfig, tgif, | |
33 | Tcl/Tk, HPGL, PIC, LaTeX2e, MetaPost, Sketch, KIllustrator, PDF, GNU | |
34 | metafile, Java, DXF, Real3D, RenderMan, LightWave, Adobe Illustrator, | |
35 | simplified PostScript, and any format that Ghostscript or the GNU | |
36 | plotting utilities can output, such as Tektronix, CGM, and various | |
37 | bitmap formats. | |
38 | ||
a4596559 JR |
39 | %description -l pl.UTF-8 |
40 | pstoedit konwertuje pliki PostScript i PDF do wielu różnych mniej lub | |
41 | bardziej zdatnych do edycji formatów: gnuplot, idraw, xfig, tgif, | |
cbc0f056 JB |
42 | Tcl/Tk, HPGL, PIC, LaTeX2e, MetaPost, Sketch, KIllustrator, PDF, GNU |
43 | metafile, Java, DXF, Real3D, RenderMan, LightWave, Adobe Illustrator, | |
a4596559 JR |
44 | uproszczony PostScript i dowolny format jaki mogą zapisywać |
45 | ghostscript lub GNU plotutils - np. Tektronix, CGM, różne formaty | |
cbc0f056 JB |
46 | rastrowe. |
47 | ||
b55c349a JB |
48 | %package devel |
49 | Summary: pstoedit library header files | |
50 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki pstoedit | |
51 | Group: Development/Libraries | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | Requires: libstdc++-devel | |
54 | ||
55 | %description devel | |
56 | pstoedit library header files. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Pliki nagłówkowe biblioteki pstoedit. | |
60 | ||
61 | %package static | |
62 | Summary: pstoedit static library | |
63 | Summary(pl.UTF-8): Statyczna biblioteka pstoedit | |
64 | Group: Development/Libraries | |
65 | Requires: %{name}-devel = %{version}-%{release} | |
66 | ||
67 | %description static | |
68 | pstoedit static library. | |
69 | ||
70 | %description static -l pl.UTF-8 | |
71 | Statyczna biblioteka pstoedit. | |
72 | ||
96d1cc96 JB |
73 | %package drv-lplot |
74 | Summary: lplot plugin for pstoedit library | |
badfaf18 | 75 | Summary(pl.UTF-8): Wtyczka lplot dla biblioteki pstoedit |
96d1cc96 | 76 | Group: Libraries |
f1ef07a7 | 77 | Requires: %{name} = %{version}-%{release} |
96d1cc96 JB |
78 | |
79 | %description drv-lplot | |
80 | lplot plugin for pstoedit library. It uses libplotter library. | |
81 | ||
a4596559 JR |
82 | %description drv-lplot -l pl.UTF-8 |
83 | Wtyczka lplot dla biblioteki pstoedit. Używa biblioteki libplotter. | |
96d1cc96 JB |
84 | |
85 | %package drv-magick | |
86 | Summary: magick plugin for pstoedit library | |
badfaf18 | 87 | Summary(pl.UTF-8): Wtyczka magick dla biblioteki pstoedit |
96d1cc96 | 88 | Group: Libraries |
f1ef07a7 | 89 | Requires: %{name} = %{version}-%{release} |
96d1cc96 JB |
90 | |
91 | %description drv-magick | |
92 | magick plugin for pstoedit library. It uses Magick++ library. | |
93 | ||
a4596559 JR |
94 | %description drv-magick -l pl.UTF-8 |
95 | Wtyczka magick (libplotter) dla biblioteki pstoedit. Używa biblioteki | |
96d1cc96 JB |
96 | Magick++. |
97 | ||
98 | %package drv-swf | |
99 | Summary: swf plugin for pstoedit library | |
badfaf18 | 100 | Summary(pl.UTF-8): Wtyczka swf dla biblioteki pstoedit |
96d1cc96 | 101 | Group: Libraries |
f1ef07a7 | 102 | Requires: %{name} = %{version}-%{release} |
96d1cc96 JB |
103 | |
104 | %description drv-swf | |
105 | swf plugin for pstoedit library. It uses Ming library. | |
106 | ||
a4596559 JR |
107 | %description drv-swf -l pl.UTF-8 |
108 | Wtyczka swf dla biblioteki pstoedit. Używa biblioteki Ming. | |
96d1cc96 | 109 | |
7528c9d3 JB |
110 | %package drv-wmf |
111 | Summary: wmf plugin for pstoedit library | |
badfaf18 | 112 | Summary(pl.UTF-8): Wtyczka wmf dla biblioteki pstoedit |
7528c9d3 | 113 | Group: Libraries |
f1ef07a7 | 114 | Requires: %{name} = %{version}-%{release} |
7528c9d3 JB |
115 | |
116 | %description drv-wmf | |
117 | wmf plugin for pstoedit library. It uses libEMF library. | |
118 | ||
a4596559 JR |
119 | %description drv-wmf -l pl.UTF-8 |
120 | Wtyczka wmf dla biblioteki pstoedit. Używa biblioteki libEMF. | |
7528c9d3 | 121 | |
cbc0f056 | 122 | %prep |
96d1cc96 | 123 | %setup -q |
ec1391e6 TP |
124 | %patch0 -p1 |
125 | %patch1 -p1 | |
5e2b0fb5 | 126 | %patch2 -p1 |
79b6aaa2 | 127 | %patch3 -p1 |
cbc0f056 JB |
128 | |
129 | %build | |
7528c9d3 | 130 | # need to rebuild - supplied libtool is broken (relink and C++) |
96d1cc96 JB |
131 | %{__libtoolize} |
132 | %{__aclocal} | |
c1d1f46c | 133 | %{__autoconf} |
96d1cc96 | 134 | %{__automake} |
7528c9d3 | 135 | %configure \ |
4986296f | 136 | GS=%{_bindir}/gs \ |
1800675c | 137 | --enable-static \ |
df9d56e1 | 138 | --with-magick \ |
4986296f | 139 | --with-libemf-include=%{_includedir}/libEMF |
df9d56e1 | 140 | %{__make} -j1 |
cbc0f056 JB |
141 | |
142 | %install | |
143 | rm -rf $RPM_BUILD_ROOT | |
96d1cc96 JB |
144 | install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_aclocaldir}} |
145 | ||
cbc0f056 | 146 | %{__make} install \ |
96d1cc96 JB |
147 | DESTDIR=$RPM_BUILD_ROOT |
148 | ||
149 | install doc/pstoedit.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
96d1cc96 | 150 | |
df9d56e1 | 151 | cp -af contrib/java $RPM_BUILD_ROOT%{_datadir}/pstoedit |
1800675c JB |
152 | rm -f $RPM_BUILD_ROOT%{_datadir}/pstoedit/java/*/{readme*,Makefile*} \ |
153 | $RPM_BUILD_ROOT%{_datadir}/pstoedit/java/Makefile* \ | |
f63c1920 | 154 | $RPM_BUILD_ROOT%{_libdir}/pstoedit/lib*.{la,a} |
cbc0f056 | 155 | |
cbc0f056 | 156 | %clean |
f1eb9690 | 157 | rm -rf $RPM_BUILD_ROOT |
cbc0f056 | 158 | |
96d1cc96 JB |
159 | %post -p /sbin/ldconfig |
160 | %postun -p /sbin/ldconfig | |
161 | ||
cbc0f056 JB |
162 | %files |
163 | %defattr(644,root,root,755) | |
df9d56e1 | 164 | %doc doc/{readme.txt,*.htm} contrib/java/java1/readme_java1.txt contrib/java/java2/readme_java2.html |
7528c9d3 | 165 | %attr(755,root,root) %{_bindir}/pstoedit |
b55c349a JB |
166 | %attr(755,root,root) %{_libdir}/libpstoedit.so.*.*.* |
167 | %attr(755,root,root) %ghost %{_libdir}/libpstoedit.so.0 | |
96d1cc96 JB |
168 | %dir %{_libdir}/pstoedit |
169 | %attr(755,root,root) %{_libdir}/pstoedit/libp2edrvstd.so* | |
cbc0f056 | 170 | %{_datadir}/pstoedit |
7528c9d3 | 171 | %{_mandir}/man1/pstoedit.1* |
96d1cc96 JB |
172 | |
173 | %files drv-lplot | |
174 | %defattr(644,root,root,755) | |
175 | %attr(755,root,root) %{_libdir}/pstoedit/libp2edrvlplot.so* | |
176 | ||
177 | %files drv-magick | |
178 | %defattr(644,root,root,755) | |
179 | %attr(755,root,root) %{_libdir}/pstoedit/libp2edrvmagick++.so* | |
180 | ||
181 | %files drv-swf | |
182 | %defattr(644,root,root,755) | |
183 | %attr(755,root,root) %{_libdir}/pstoedit/libp2edrvswf.so* | |
184 | ||
7528c9d3 JB |
185 | %files drv-wmf |
186 | %defattr(644,root,root,755) | |
187 | %attr(755,root,root) %{_libdir}/pstoedit/libp2edrvwmf.so* | |
188 | ||
96d1cc96 JB |
189 | %files devel |
190 | %defattr(644,root,root,755) | |
191 | %attr(755,root,root) %{_libdir}/libpstoedit.so | |
192 | %{_libdir}/libpstoedit.la | |
193 | %{_includedir}/pstoedit | |
b55c349a JB |
194 | %{_pkgconfigdir}/pstoedit.pc |
195 | %{_aclocaldir}/pstoedit.m4 | |
96d1cc96 JB |
196 | |
197 | %files static | |
198 | %defattr(644,root,root,755) | |
199 | %{_libdir}/libpstoedit.a |