File uniconvertor.spec of Package uniconvertor
#
# spec file for package uniconvertor
#
# Copyright (c) 2012 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: uniconvertor
Version: 1.1.5
Release: 0
License: LGPL-2.0 ; GPL-2.0
Summary: Universal Vector Graphics Translator
Url: http://sk1project.org/
Group: Productivity/Graphics/Convertors
Source0: http://uniconvertor.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires: python-devel
%if 0%{?suse_version} >= 1210
BuildRequires: python-distribute
%else
BuildRequires: python-setuptools
%endif
Requires: python-sk1libs
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%description
UniConvertor is a universal vector graphics translator. It is a command
line tool which uses sK1 object model to convert one format to another.
Import filters:
* CorelDRAW ver.7-X3,X4 (CDR/CDT/CCX/CDRX/CMX)
* Adobe Illustrator up to 9 ver. (AI postscript based)
* Postscript (PS)
* Encapsulated Postscript (EPS)
* Computer Graphics Metafile (CGM)
* Windows Metafile (WMF)
* XFIG
* Scalable Vector Graphics (SVG)
* Skencil/Sketch/sK1 (SK and SK1)
* Acorn Draw (AFF)
* HPGL for cutting plotter files (PLT)
* Autocad Drawing Exchange Format (DXF)
* Design format (Tajima) (DST)
* Embroidery file format (Brother) (PES)
* Embroidery file format (Melco) (EXP)
* Design format (Pfaff home) (PCS)
Export filters:
* AI - Postscript based Adobe Illustrator 5.0 format
* SVG - Scalable Vector Graphics
* SK - Sketch/Skencil format
* SK1 - sK1 format
* CGM - Computer Graphics Metafile
* WMF - Windows Metafile
* PDF - Portable Document Format
* PS - PostScript
* PLT - HPGL for cutting plotter files
%prep
%setup -q
# Need to delete export_raster.py
# http://sk1project.org/forum/viewthread.php?thread_id=125
rm -f src/app/scripts/export_raster.py
# Remove '/usr/bin/python' from scripts (rpmlint warnings).
sed -i '/\/usr\/bin\/python/d' src/__init__.py
%build
export CFLAGS="%{optflags}"
python setup.py build
%install
python setup.py install \
--root=%{buildroot} \
--prefix=%{_prefix} \
--record-rpm=INSTALLED_FILES
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README
%changelog