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