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