File uniconvertor.spec of Package uniconvertor
#
# spec file for package uniconvertor
#
# Copyright (c) 2019 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define realver 2.0rc5
Name: uniconvertor
Version: 2.0git.20200305T160837~b4f6dc6
Release: 0
Summary: Universal Vector Graphics Translator
# uniconvertor is AGPL-3.0-or-later. Only the build scripts are GPL-3.0-or-later (not installed)
License: AGPL-3.0-or-later
Group: Productivity/Graphics/Convertors
URL: https://sk1project.net
Source0: %{name}-%{version}.tar.xz
Source1: sk1project-build-utils-0.1.tar.xz
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(ImageMagick)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(pycairo)
BuildRequires: pkgconfig(python)
Requires: python2-cairo
Requires: python2-Pillow
Requires: python2-reportlab
%description
UniConvertor is a multiplatform universal vector graphics translator.
It uses sK1 engine 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 -a 1
# Build scripts
mkdir subproj
mv sk1project-build-utils-0.1 subproj/build-utils
# lib vs. lib64
sed -i 's#lib#%{_lib}#' setup.py
%build
env CFLAGS="%{optflags}" python setup.py build
%install
python setup.py install --skip-build --root=%{buildroot}
rm %{buildroot}%{_libdir}/uniconvertor-%{realver}/LICENSE
%files
%license LICENSE
%doc README.*
%{_bindir}/uc2
%{_bindir}/uniconvertor
%{_libdir}/uniconvertor-%{realver}/
%changelog