File pstoedit.spec of Package pstoedit

#
# spec file for package pstoedit (Version 3.50)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           pstoedit
BuildRequires:  ImageMagick-Magick++-devel gcc-c++ gd-devel ghostscript-fonts-std ghostscript-x11 pkg-config plotutils-devel xfig
%ifarch %ix86 ppc
BuildRequires:  libEMF-devel
%endif
# FIXME: Not yet in openSUSE:
#BuildRequires:  libming-devel
License:        GPLv2+
Group:          Productivity/Publishing/PS
Requires:       ghostscript_any
Summary:        PostScript and PDF Converter
Version:        3.50
Release:        9
Url:            http://www.pstoedit.net/
# URL for Source: http://prdownloads.sourceforge.net/pstoedit/pstoedit-3.50.tar.gz?download
Source:         %{name}-%{version}.tar.bz2
Patch1:         pstoedit-no_builddir_in_la_file.patch
Patch2:         pstoedit-cxxflags.patch
Patch3:         pstoedit-3.50-plugin-close.patch
Patch4:         pstoedit-3.50-libadd.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
pstoedit converts PostScript and PDF files to other vector graphic
formats so that they can be edited graphically.

pstoedit supports:

* Tgif .obj format (for tgif version >= 3)
* .fig format for xfig
* pdf - Adobe's Portable Document Format
* gnuplot format
* Flattened PostScript (with or without Bezier curves)
* DXF - CAD exchange format
* LWO - LightWave 3D
* RIB - RenderMan
* RPL - Real3D
* Java 1 or Java 2 applet
* Idraw format (in fact a special form of EPS that idraw can read)
* Tcl/Tk
* HPGL
* AI (Adobe Illustrator) (based on ps2ai.ps - not a real pstoedit driver - see notes below and manual)
* Windows Meta Files (WMF) (Windows  only)
* Enhanced Windows Meta Files (EMF) (Windows, but also Linux/Unix if libemf is available)
* OS/2 meta files (OS/2 only)
* PIC format for troff/groff
* MetaPost format for usage with TeX/LaTeX
* LaTeX2e picture
* Kontour
* GNU Metafile (plotutils / libplot)
* Skencil ( http://www.skencil.org )
* Mathematica
* via ImageMagick to any format supported by ImageMagick
* SWF
* CNC G code
* VTK files for ParaView and similar visualization tools

%package devel
License:        GPLv2+
Summary:        PostScript and PDF converter (development files)
Group:          Productivity/Publishing/PS
Requires:       %{name} = %{version}
Requires:       ImageMagick-devel ImageMagick-Magick++-devel

%description devel
Development files for pstoedit.

%prep
%setup -q
%patch1
%patch2 -p1
%patch3 -p1
%patch4 -p1
chmod -x examples/*.ps examples/Makefile* doc/*.* copying

%build
autoreconf -f -i
export
%configure\
%ifarch axp %ix86 ppc sparc
	--with-libemf-include=%{_includedir}/libEMF
%endif

make %{?jobs:-j%jobs}

%install
%makeinstall
rm $RPM_BUILD_ROOT%{_libdir}/pstoedit/*.*a

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc copying
%doc examples
%doc doc/*.htm
%{_bindir}/pstoedit
%{_libdir}/*.so.*
%dir %{_libdir}/pstoedit
%{_libdir}/pstoedit/*.so
%{_libdir}/pstoedit/*.so.*
%{_datadir}/%{name}
%doc %{_mandir}/man?*/*.*

%files devel
%defattr(-, root, root)
%{_libdir}/*.so
%{_libdir}/*.*a
%{_includedir}/pstoedit
%{_libdir}/pkgconfig/*.pc
%{_datadir}/aclocal/*.m4

%changelog
openSUSE Build Service is sponsored by