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