/[packages]/cauldron/pstoedit/current/SPECS/pstoedit.spec
ViewVC logotype

Contents of /cauldron/pstoedit/current/SPECS/pstoedit.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2021007 - (show annotations) (download)
Sat Dec 23 03:52:55 2023 UTC (5 months ago) by danf
File size: 2879 byte(s)
(SILENT) Switch URLs to https:
1 %define major 0
2 %define libname %mklibname pstoedit %{major}
3 %define develname %mklibname pstoedit -d
4
5 Summary: Translates PostScript/PDF graphics into other vector formats
6 Name: pstoedit
7 Version: 4.00
8 Release: %mkrel 1
9 License: GPLv2
10 Group: Graphics/Editors and Converters
11 URL: http://www.pstoedit.net/
12 Source0: https://prdownloads.sourceforge.net/pstoedit/%{name}-%{version}.tar.gz
13 # Fix cflags of the pkg-config file
14 Patch0: pstoedit-pkglibdir.patch
15 BuildRequires: bison
16 BuildRequires: ghostscript
17 BuildRequires: imagemagick-devel
18 BuildRequires: plotutils-devel
19 BuildRequires: multiarch-utils >= 1.0.3
20 BuildRequires: pkgconfig(gdlib)
21 BuildRequires: pkgconfig(libzip)
22
23 # not compatible
24 BuildConflicts: ming-devel
25
26 %description
27 pstoedit translates PostScript and PDF graphics into other vector formats.
28 Currently pstoedit can generate the following formats:
29
30 - Tgif .obj format (for tgif version >= 3)
31 - fig format for xfig
32 - pdf Adobe Portable Document Format
33 - gnuplot format
34 - Flattened PostScript (with or without Bezier curves)
35 - DXF - CAD exchange format
36 - LWO - LightWave 3D
37 - RIB - RenderMan
38 - RPL - Real3D
39 - Idraw format (a special format of EPS that Idraw can read)
40 - Tcl/Tk
41 - HPGL
42 - AI - Adobe Illustrator Format (based on ps2ai.ps, not a real pstoedit)
43 - WMF - Windows Meta Files
44 - PIC format for troff/groff
45 - MetaPost format per usage with TeX/LaTeX
46 - LaTeX2e picture
47 - Kontour
48 - GNU Metafile (plotutils/libplot)
49 - Sketch (https://sketch.sourceforge.net)
50 - Mathematica
51 - through ImageMagick to any format supported by ImageMagick
52
53 %package -n %{libname}
54 Summary: Pstoedit libraries
55 Group: System/Libraries
56
57 %description -n %{libname}
58 This package contains the libraries needed to run programs dynamically
59 linked with pstoedit libraries.
60
61 %package -n %{develname}
62 Summary: Static libraries and header files for pstoedit development
63 Group: Development/C
64 Provides: lib%{name}-devel = %{version}-%{release}
65 Provides: %{name}-devel = %{version}-%{release}
66 Requires: %{libname} = %{version}
67
68 %description -n %{develname}
69 If you want to create applications that will use pstoedit code or
70 APIs, you'll need to install these packages as well as pstoedit. This
71 additional package isn't necessary if you simply want to use pstoedit.
72
73 %prep
74 %autosetup -p1
75
76 %build
77 autoreconf -fi
78 %configure --disable-static --with-libplot --with-magick
79 %make_build
80
81 %install
82 %make_install
83
84 # remove unneeded files
85 find %{buildroot} -name '*.la' -delete
86
87 %files
88 %doc doc/changelog.htm doc/readme.txt doc/pstoedit.htm doc/pstoedit.pdf
89 %doc examples
90 %license copying
91 %{_bindir}/pstoedit
92 %{_datadir}/pstoedit
93 %{_mandir}/man1/*.1*
94
95 %files -n %{libname}
96 %license copying
97 %{_libdir}/*.so.%{major}{,.*}
98 %{_libdir}/pstoedit/
99
100 %files -n %{develname}
101 %doc doc/changelog.htm
102 %{_includedir}/pstoedit/
103 %{_libdir}/*.so
104 %{_libdir}/pkgconfig/*.pc
105 %{_datadir}/aclocal/*.m4

  ViewVC Help
Powered by ViewVC 1.1.30