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