Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2
sk1
sk1.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sk1.spec of Package sk1
# # spec file for package sk1 # # Copyright (c) 2016 SUSE LINUX 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: sk1 BuildRequires: freetype2-devel BuildRequires: liblcms-devel BuildRequires: python-devel BuildRequires: python-imaging BuildRequires: tk-devel >= 8.5 BuildRequires: xorg-x11-devel BuildRequires: xorg-x11-libXext-devel BuildRequires: pkgconfig(cairo) %if 0%{?suse_version} BuildRequires: fdupes BuildRequires: update-desktop-files Requires: python-lcms %endif %define svnrev 730 Version: 0.9.1pre_rev%{svnrev} Release: 0 Summary: Python-Based Vector Drawing Program License: GPL-2.0 and LGPL-2.0+ Group: Productivity/Graphics/Vector Editors Url: http://www.sk1project.org/ Source: %{name}-0.9.1pre_rev%{svnrev}.tar.bz2 Source1: %{name}.desktop #patch grabbed from newer sK1-0.9.1pre_rev905 release bnc#555676, fix crash Patch1: %{name}-svg_crash.diff #patch grabbed from newer sK1-0.9.1pre_rev905 release bnc#555677, fix focus of dialogue window Patch2: %{name}-dialog_open.diff Requires: python-imaging Requires: python-imaging-tk Provides: skencil Provides: sketch Obsoletes: skencil BuildRoot: %{_tmppath}/%{name}-%{version}-build %py_requires %description The program sK1 is an open source vector graphics editor similar to CorelDRAW, Adobe Illustrator, or Freehand. First of all sK1 is oriented for PostScript processing. It features CMYK colorspace support, CMYK support in Postscript, a Cairo-based engine, color managment, universal CDR importer (7-X3 versions), and a modern Ttk based (former Tile widgets) user interface. %prep %setup -q -n sK1-0.9.1pre %patch1 %patch2 sed -ri 's/(tcl|tk)8.5/\1'%tcl_version'/g' setup.cfg setup.py chmod +x setup.py #%if "%(pkg-config --variable=prefix xft)" == "/usr" #%endif %build #./setup.py configure --with-nls --prefix=%{_prefix} CFLAGS="-DUSE_INTERP_RESULT" ./setup.py build %install ./setup.py install --prefix=%{_prefix} --root=%{buildroot} --compile --optimize=2 # install icons mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps for i in 16 32 48 64; do \ install -m 0644 src/share/icons/CrystalSVG/icon_sk1_$i.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png done %if 0%{?suse_version} %suse_update_desktop_file -i -G "Scalable Graphics" %{name} %fdupes -s %{buildroot} %endif %files %defattr(-,root,root) %doc src/COPYRIGHTS src/GNU_GPL_v2 src/GNU_LGPL_v2 %{_bindir}/%{name} %py_sitedir/%{name} %attr(755,root,root) %py_sitedir/%{name}/__init__.py %py_sitedir/sK1-0.9.1pre-py2.?.egg-info %{_datadir}/icons/hicolor/*/apps/%{name}.png %dir %{_datadir}/icons/hicolor %dir %{_datadir}/icons/hicolor/* %dir %{_datadir}/icons/hicolor/*/apps %if 0%{?suse_version} %{_datadir}/applications/%{name}.desktop %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor