File pstoedit.spec of Package pstoedit

#
# spec file for package pstoedit (Version 3.45)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           pstoedit
BuildRequires:  ImageMagick-Magick++-devel gcc-c++ ghostscript-fonts-std ghostscript-x11 pkgconfig plotutils xfig
%ifarch %ix86 ppc
BuildRequires:  libEMF-devel
%endif
License:        GPL v2 or later
Group:          Productivity/Publishing/PS
Requires:       ghostscript_any
AutoReqProv:    on
Summary:        PostScript and PDF Converter
Version:        3.45
Release:        1
# URL for Source0: http://surfnet.dl.sourceforge.net/sourceforge/pstoedit/pstoedit-3.45.tar.gz
Source:         pstoedit-%{version}.tar.bz2
Patch0:         pstoedit-CXXFLAGS.patch
Patch1:         pstoedit-no_builddir_in_la_file.patch
#Patch2:       pstoedit-codecleanup.patch
Patch3:         pstoedit-manpages.patch
Patch4:         fixes-for-GCC43.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.pstoedit.net/

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

pstoedit supports:

* tgif: Tgif .obj format (for tgif version >= 3)

* rpl: Real3D Programming Language Format

* lwo: LightWave 3D Object Format

* rib: RenderMan Interface Bytestream

* mif: (Frame)Maker Intermediate Format

* fig: .fig format for xfig

* xfig: .fig format for xfig

* pdf: Adobe's Portable Document Format

* gnuplot: gnuplot format

* ps: Flattened PostScript

* debug: For test purposes

* dump: For test purposes (same as debug)

* dxf: CAD exchange format

* java 1 and 2: Java applet source code

* idraw: Interviews draw format

* tcl/tk: Tcl/Tk

* hpgl: HPGL

* AI: Adobe Illustrator

* wmf: Windows Meta Files (WMF) (Windows 9x/NT only)

* ewm: Enhanced Windows Meta Files (EMF) (Windows 9x/NT only)

* OS/2 meta files (OS/2 only)

* PIC format for troff/groff

* MetaPost format for use with TeX/LaTeX

* LaTeX2e picture

* Kontour

* GNU Metafile (plotutils or libplot)

* Skencil formerly known as sketch  (http://www.skencil.org)

* Mathematica

* Conversion through ImageMagick to any format supported by
   ImageMagick

* SWF (beta release state--still lots of features missing, such as
   fonts, dash handling, etc.)

pstoedit needs an installed Ghostscript interpreter.



Authors:
--------
    Wolfgang Glunz <Wolfgang.Glunz@mchp.siemens.de>

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

%description devel
Development files for pstoedit.



Authors:
--------
    Wolfgang Glunz <Wolfgang.Glunz@mchp.siemens.de>
    G. Edward Johnson <lorax@nist.gov>

%define INSTALL install -m755 -s
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644

%prep
%setup -q
%patch0 
%patch1
# %patch2
%patch3
%patch4
%{suse_update_config -f config}

%build
autoreconf -fi
export CFLAGS="%optflags -g"
export LDFLAGS="$LDFLAGS -g"
export CXXFLAGS="%optflags"
%ifarch axp %ix86 ppc sparc
CPPFLAGS="-I/usr/include/libEMF"
EMF_OPT=--with-libemf-include=/usr/include/libEMF
%endif
./configure --prefix=%{_prefix} --mandir=%{_mandir} --libdir=%{_libdir} $EMF_OPT
make CXXFLAGS="%optflags -g"

%install
make DESTDIR=%{buildroot} install
make clean
make DESTDIR=%{buildroot} install
DESTDIR=%{buildroot} libtool --finish %{_libdir}/pstoedit
#%clean
#rm -rf %{buildroot}

%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}
%{_mandir}/*/*

%files devel
%defattr(-, root, root)
#%{_bindir}/pstoedit-config
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pstoedit/*.*a
%{_prefix}/include/pstoedit
%{_libdir}/pkgconfig/*.pc
%{_datadir}/aclocal/*

%changelog
* Wed Sep 10 2008 jsmeix@suse.de
- fixes-for-GCC43.patch applies fixes for GCC 4.3,
  see http://en.opensuse.org/GCC_4.3_Transition
- Update to version 3.45;
  * Fixed a bug in the fig backend related to dotted lines.
  * Better support for pagesize handling.
  * Better handling of fonts using 0 encoded characters
  * Fixed endless loop issue of GhostScript
  (see Novell/Suse Bugzilla bnc#414188).
* Fri Aug 22 2008 meissner@suse.de
- build with optflags, some cleanups
* Wed Jul 18 2007 ke@suse.de
- Add plotutils to BuildRequires to fix SVG support; reported by
  Christian Morales Vega [# 292023].
* Tue Feb 27 2007 dmueller@suse.de
- reduce BuildRequires
* Tue Aug 01 2006 ke@suse.de
- Remove joe from BuildRequires; reported by Christoph Thiel.
* Mon Mar 13 2006 ke@suse.de
- Update to version 3.44:
  * Use secure versions of several functions where possible.
  * Add a driver for the OpenOffice metafile format.
- Add pkgconfig to BuildRequires.
- Drop obsolete codecleanup patch.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Oct 24 2005 ke@suse.de
- Update to version 3.42.
* Thu Sep 01 2005 pth@suse.de
- Update to version 3.41 which fixes the SIGSEGV (#113777)
- Fix LDFLAGS so that buildroot vanishes from .la file
- Fix CXXFLAGS.
- Handle man pages via Makefile instead of spec file.
* Tue Aug 02 2005 ke@suse.de
- Update to version 3.40.
- Adjust Requires.
* Tue Sep 14 2004 ro@suse.de
- added ImageMagick-Magick++-devel to neededforbuild
* Tue Jun 29 2004 ro@suse.de
- added libtiff to neededforbuild
* Wed Feb 04 2004 ro@suse.de
- libEMF does not compile with "-pedantic", remove
* Sat Jan 10 2004 adrian@suse.de
- add %%run_ldconfig
* Mon Jul 28 2003 meissner@suse.de
- Added libexif to nfb.
* Wed Jul 02 2003 ke@suse.de
- Update to version 3.33.
* Wed Jul 02 2003 ro@suse.de
- remove buildroot traces from installed files
* Thu Jun 12 2003 kukuk@suse.de
- Add lib directory to filelist
* Fri Jan 03 2003 ke@suse.de
- Add liblcms-devel to neededforbuild.
- Fix license tag.
- Fix description in PDB.
* Thu Nov 21 2002 sbrabec@suse.cz
- Turned on EMF/WMF support (needs libEMF).
* Mon Nov 11 2002 sbrabec@suse.cz
- Updated to version 3.32.
- Added dependencies for new features.
- Splitted to pstoedit and pstoedit-devel.
- Install root workaround for of plugins (LDFLAGS and sed script).
* Tue Apr 09 2002 ro@suse.de
- don't apply gcc-3 patch if running gcc-2.95
* Sun Apr 07 2002 schwab@suse.de
- Fix for gcc3.
* Fri Mar 22 2002 ke@suse.de
- Call suse_update_config and regenerate configure to make it build on
  architecture != x86.
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Thu Jan 03 2002 ke@suse.de
- Update to version 3.31:
  - Fixes and enhancements to EMF/WMF, HPGL, CGM, DXF, and SVG.
  - Data files are in /usr/share/pstoedit .
- Drop DESTDIR patch (it's in the original 3.31 release).
* Thu Nov 08 2001 ke@suse.de
- Make cgmdraw a package on its own.
- Cleanup spec file: enable %%clean; enable test suite; remove unused
  variables.
* Thu Nov 08 2001 ke@suse.de
- Update to version 3.30 (proposed by Wolfgang Glunz and Uwe Drechsel,
  [# 12218]):
  - Support more backends; lots of enhancements and cleanups.
  - Compatible with plotutils 2.4.1.
* Fri Jul 20 2001 kukuk@suse.de
- changed neededforbuild <gs_fonts> to <ghostscript-fonts-std>
- changed neededforbuild <gs_lib> to <ghostscript-library>
- changed neededforbuild <gs_x11> to <ghostscript-x11>
* Fri Nov 17 2000 ke@suse.de
- update to version 3.21.
- cleanup spec file; use macros, add group tag (#4246).
* Fri Jun 02 2000 ke@suse.de
- update to version 3.18.
- start to cleanup the spec file.
- use DESTDIR.
* Mon Sep 20 1999 ro@suse.de
- added requires ghostscript_any
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Mon Apr 05 1999 bs@suse.de
- fixed date strings in .changes.
* Tue Feb 23 1999 ke@suse.de
- update: version 3.03.
* Fri Nov 13 1998 bs@suse.de
- fixed spec file (double entries)
* Thu Nov 12 1998 bs@suse.de
- fixed spec file for new rpm.
* Mon Dec 08 1997 ke@suse.de
- rename the cd package: now its called cgmdraw.
- list /usr/include/cd.h and /usr/lib/libcd.a in %%files.
* Wed Dec 03 1997 ke@suse.de
- initial package: pstoedit 2.60 and cd 1.3.
openSUSE Build Service is sponsored by