]>
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 |
dc53c907 | 5 | Release: 4 |
b55c349a | 6 | License: GPL v2+ |
cbc0f056 | 7 | Group: Applications/Graphics |
646104d3 | 8 | Source0: http://downloads.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 |
646104d3 | 16 | BuildRequires: autoconf >= 2.50 |
96d1cc96 | 17 | BuildRequires: automake |
646104d3 | 18 | BuildRequires: gd-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} | |
646104d3 | 53 | Requires: gd-devel |
b55c349a JB |
54 | Requires: libstdc++-devel |
55 | ||
56 | %description devel | |
57 | pstoedit library header files. | |
58 | ||
59 | %description devel -l pl.UTF-8 | |
60 | Pliki nagłówkowe biblioteki pstoedit. | |
61 | ||
62 | %package static | |
63 | Summary: pstoedit static library | |
64 | Summary(pl.UTF-8): Statyczna biblioteka pstoedit | |
65 | Group: Development/Libraries | |
66 | Requires: %{name}-devel = %{version}-%{release} | |
67 | ||
68 | %description static | |
69 | pstoedit static library. | |
70 | ||
71 | %description static -l pl.UTF-8 | |
72 | Statyczna biblioteka pstoedit. | |
73 | ||
96d1cc96 JB |
74 | %package drv-lplot |
75 | Summary: lplot plugin for pstoedit library | |
badfaf18 | 76 | Summary(pl.UTF-8): Wtyczka lplot dla biblioteki pstoedit |
96d1cc96 | 77 | Group: Libraries |
f1ef07a7 | 78 | Requires: %{name} = %{version}-%{release} |
96d1cc96 JB |
79 | |
80 | %description drv-lplot | |
81 | lplot plugin for pstoedit library. It uses libplotter library. | |
82 | ||
a4596559 JR |
83 | %description drv-lplot -l pl.UTF-8 |
84 | Wtyczka lplot dla biblioteki pstoedit. Używa biblioteki libplotter. | |
96d1cc96 JB |
85 | |
86 | %package drv-magick | |
87 | Summary: magick plugin for pstoedit library | |
badfaf18 | 88 | Summary(pl.UTF-8): Wtyczka magick dla biblioteki pstoedit |
96d1cc96 | 89 | Group: Libraries |
f1ef07a7 | 90 | Requires: %{name} = %{version}-%{release} |
96d1cc96 JB |
91 | |
92 | %description drv-magick | |
93 | magick plugin for pstoedit library. It uses Magick++ library. | |
94 | ||
a4596559 JR |
95 | %description drv-magick -l pl.UTF-8 |
96 | Wtyczka magick (libplotter) dla biblioteki pstoedit. Używa biblioteki | |
96d1cc96 JB |
97 | Magick++. |
98 | ||
99 | %package drv-swf | |
100 | Summary: swf plugin for pstoedit library | |
badfaf18 | 101 | Summary(pl.UTF-8): Wtyczka swf dla biblioteki pstoedit |
96d1cc96 | 102 | Group: Libraries |
f1ef07a7 | 103 | Requires: %{name} = %{version}-%{release} |
96d1cc96 JB |
104 | |
105 | %description drv-swf | |
106 | swf plugin for pstoedit library. It uses Ming library. | |
107 | ||
a4596559 JR |
108 | %description drv-swf -l pl.UTF-8 |
109 | Wtyczka swf dla biblioteki pstoedit. Używa biblioteki Ming. | |
96d1cc96 | 110 | |
7528c9d3 JB |
111 | %package drv-wmf |
112 | Summary: wmf plugin for pstoedit library | |
badfaf18 | 113 | Summary(pl.UTF-8): Wtyczka wmf dla biblioteki pstoedit |
7528c9d3 | 114 | Group: Libraries |
f1ef07a7 | 115 | Requires: %{name} = %{version}-%{release} |
7528c9d3 JB |
116 | |
117 | %description drv-wmf | |
118 | wmf plugin for pstoedit library. It uses libEMF library. | |
119 | ||
a4596559 JR |
120 | %description drv-wmf -l pl.UTF-8 |
121 | Wtyczka wmf dla biblioteki pstoedit. Używa biblioteki libEMF. | |
7528c9d3 | 122 | |
cbc0f056 | 123 | %prep |
96d1cc96 | 124 | %setup -q |
ec1391e6 TP |
125 | %patch0 -p1 |
126 | %patch1 -p1 | |
5e2b0fb5 | 127 | %patch2 -p1 |
79b6aaa2 | 128 | %patch3 -p1 |
cbc0f056 JB |
129 | |
130 | %build | |
7528c9d3 | 131 | # need to rebuild - supplied libtool is broken (relink and C++) |
96d1cc96 JB |
132 | %{__libtoolize} |
133 | %{__aclocal} | |
c1d1f46c | 134 | %{__autoconf} |
646104d3 | 135 | %{__autoheader} |
96d1cc96 | 136 | %{__automake} |
7528c9d3 | 137 | %configure \ |
4986296f | 138 | GS=%{_bindir}/gs \ |
1800675c | 139 | --enable-static \ |
df9d56e1 | 140 | --with-magick \ |
4986296f | 141 | --with-libemf-include=%{_includedir}/libEMF |
df9d56e1 | 142 | %{__make} -j1 |
cbc0f056 JB |
143 | |
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
96d1cc96 JB |
146 | install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_aclocaldir}} |
147 | ||
cbc0f056 | 148 | %{__make} install \ |
96d1cc96 JB |
149 | DESTDIR=$RPM_BUILD_ROOT |
150 | ||
151 | install doc/pstoedit.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
96d1cc96 | 152 | |
df9d56e1 | 153 | cp -af contrib/java $RPM_BUILD_ROOT%{_datadir}/pstoedit |
1800675c JB |
154 | rm -f $RPM_BUILD_ROOT%{_datadir}/pstoedit/java/*/{readme*,Makefile*} \ |
155 | $RPM_BUILD_ROOT%{_datadir}/pstoedit/java/Makefile* \ | |
f63c1920 | 156 | $RPM_BUILD_ROOT%{_libdir}/pstoedit/lib*.{la,a} |
cbc0f056 | 157 | |
cbc0f056 | 158 | %clean |
f1eb9690 | 159 | rm -rf $RPM_BUILD_ROOT |
cbc0f056 | 160 | |
96d1cc96 JB |
161 | %post -p /sbin/ldconfig |
162 | %postun -p /sbin/ldconfig | |
163 | ||
cbc0f056 JB |
164 | %files |
165 | %defattr(644,root,root,755) | |
df9d56e1 | 166 | %doc doc/{readme.txt,*.htm} contrib/java/java1/readme_java1.txt contrib/java/java2/readme_java2.html |
7528c9d3 | 167 | %attr(755,root,root) %{_bindir}/pstoedit |
b55c349a JB |
168 | %attr(755,root,root) %{_libdir}/libpstoedit.so.*.*.* |
169 | %attr(755,root,root) %ghost %{_libdir}/libpstoedit.so.0 | |
96d1cc96 JB |
170 | %dir %{_libdir}/pstoedit |
171 | %attr(755,root,root) %{_libdir}/pstoedit/libp2edrvstd.so* | |
cbc0f056 | 172 | %{_datadir}/pstoedit |
7528c9d3 | 173 | %{_mandir}/man1/pstoedit.1* |
96d1cc96 JB |
174 | |
175 | %files drv-lplot | |
176 | %defattr(644,root,root,755) | |
177 | %attr(755,root,root) %{_libdir}/pstoedit/libp2edrvlplot.so* | |
178 | ||
179 | %files drv-magick | |
180 | %defattr(644,root,root,755) | |
181 | %attr(755,root,root) %{_libdir}/pstoedit/libp2edrvmagick++.so* | |
182 | ||
183 | %files drv-swf | |
184 | %defattr(644,root,root,755) | |
185 | %attr(755,root,root) %{_libdir}/pstoedit/libp2edrvswf.so* | |
186 | ||
7528c9d3 JB |
187 | %files drv-wmf |
188 | %defattr(644,root,root,755) | |
189 | %attr(755,root,root) %{_libdir}/pstoedit/libp2edrvwmf.so* | |
190 | ||
96d1cc96 JB |
191 | %files devel |
192 | %defattr(644,root,root,755) | |
193 | %attr(755,root,root) %{_libdir}/libpstoedit.so | |
194 | %{_libdir}/libpstoedit.la | |
195 | %{_includedir}/pstoedit | |
b55c349a JB |
196 | %{_pkgconfigdir}/pstoedit.pc |
197 | %{_aclocaldir}/pstoedit.m4 | |
96d1cc96 JB |
198 | |
199 | %files static | |
200 | %defattr(644,root,root,755) | |
201 | %{_libdir}/libpstoedit.a |