File python-sk1libs.spec of Package python-sk1libs
#
# spec file for package python-sk1libs
#
# Copyright (c) 2014 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: python-sk1libs
Version: 0.9.1
Release: 0
License: LGPL-2.0
Summary: Set of Python Non-GUI Extensions for sK1 Project
Url: http://sk1project.org/
Group: Development/Libraries/Python
Source0: http://uniconvertor.googlecode.com/files/sk1libs-%{version}.tar.gz
# PATCH-FIX-UPSTREAM python-sk1libs-use-recommended-freetype-include.patch lazy.kent@opensuse.org -- use freetype recommended include style
Patch0: python-sk1libs-use-recommended-freetype-include.patch
BuildRequires: libjpeg-devel
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(lcms)
BuildRequires: pkgconfig(zlib)
Provides: sk1libs = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
sk1libs is a set of python non-GUI extensions for sK1 Project.
The package includes multiplatform non-GUI extensions which are usually
native extensions.
%prep
%setup -qn sk1libs-%{version}
%patch0 -p1
# Remove '/bin/env python' from scripts (rpmlint warnings).
sed -i '/\/bin\/env python/d' src/libpdf/lib/*.py
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
python setup.py build
%install
python setup.py install \
--root=%{buildroot} \
--prefix=%{_prefix}
%files
%defattr(-,root,root,-)
%doc GNU_LGPL_v2 README
%{python_sitearch}/*
%changelog