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