File python-OpenEXR.spec of Package python-OpenEXR

#
# spec file for package python-OpenEXR (Version 1.0.3)
#
# Copyright (c) 2009 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:           python-OpenEXR
Version:        1.0.3
Release:        1
Summary:        Python bindings for OpenEXR
Group:          Development/Libraries/Python
License:        BSD 3-clause (or similar)
Url:            http://excamera.com/articles/26/openexr.html
Source0:        http://pypi.python.org/packages/source/O/OpenEXR/OpenEXR-%{version}.tar.bz2
Source1:        http://excamera.com/files/OpenEXR.pdf
# license will be included in future release
# see http://www.mail-archive.com/openexr-devel@nongnu.org/msg00844.html
Source1000:     license.txt
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel
BuildRequires:  OpenEXR-devel
BuildRequires:  gcc-c++
%{py_requires}

%description
OpenEXR is an image format developed by ILM. Its main innovation is
support for high dynamic range: it supports floating point pixels.

These modules provide Python bindings for the OpenEXR libraries: it
allows you to read and write OpenEXR files from Python.

Note that this module only loads and stores images: it does not do
any image manipulation operations. For that you might want to use
one of:
 * PIL
 * NumPy
 * vop
 * OpenCV
 * HALF
 * UINT
 * FLOAT

%package doc
License:        BSD 3-clause (or similar)
Summary:        Documentation for %{name}
Group:          Documentation/Other

%description doc
OpenEXR is an image format developed by ILM. Its main innovation is
support for high dynamic range: it supports floating point pixels.

These modules provide Python bindings for the OpenEXR libraries: it
allows you to read and write OpenEXR files from Python.

Note that this module only loads and stores images: it does not do
any image manipulation operations. For that you might want to use
one of:
 * PIL
 * NumPy
 * vop
 * OpenCV
 * HALF
 * UINT
 * FLOAT


%prep
%setup -q -n OpenEXR-%{version}
cp %{SOURCE1} %{SOURCE1000} .

%build
export CFLAGS="%{optflags}"
python setup.py build

%install
python setup.py install \
  --root=%{buildroot} \
  --prefix=%{_prefix} \
  --install-data=%{_datadir}/%{name}-%{version} \
  --record-rpm=INSTALLED_FILES

%clean
rm -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-,root,root,0755)
%doc license.txt
%dir %{_datadir}/%{name}-%{version}/

%files doc
%defattr(-,root,root,0755)
%doc OpenEXR.pdf

%changelog
openSUSE Build Service is sponsored by