python-gphoto2/python-gphoto2.spec
Luigi Baldoni 5f8746bf65 Accepting request 696751 from home:alois:branches:graphics
- Update to version 2.0.0
  * COMPATIBILITY CHANGE: gp_log_add_func and use_python_logging
    now return a Python object which must be stored until logging
    is no longer needed.
  * Added cam-conf-view-gui & wait-for-event examples. Thanks to
    the users who contributed these.
  * Various minor bug fixes and improvements.
  version 1.9.0:
  * Enabled use of context callback functions such as
    gp_context_set_progress_funcs.
  * Added a time lapse movie example script.
  version 1.8.5:
  * Fix memory leak in gp_camera_get_config.
  version 1.8.4:
  * Fix segfault if camera disconnected before calling
    get_storageinfo.
  version 1.8.3:
  * Fix Qt5 usage in examples (thanks fatzh).
  * Handle GP_EVENT_FILE_CHANGED (new in libgphoto2 2.5.17).
  * Allow Python threads during gp_camera_init.

OBS-URL: https://build.opensuse.org/request/show/696751
OBS-URL: https://build.opensuse.org/package/show/graphics/python-gphoto2?expand=0&rev=7
2019-04-22 11:27:54 +00:00

63 lines
2.0 KiB
RPMSpec

#
# spec file for package python-gphoto2
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-gphoto2
Version: 2.0.0
Release: 0
Summary: Python interface to libgphoto2
License: GPL-3.0-or-later
Group: Development/Languages/Python
URL: https://github.com/jim-easterbrook/python-gphoto2
Source0: https://files.pythonhosted.org/packages/source/g/gphoto2/gphoto2-%{version}.tar.gz
# PATCH-FIX-OPENSUSE python-gphoto2-do_not_install_data.patch
Patch0: %{name}-do_not_install_data.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(libgphoto2)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages
%description
Python bindings to libgphoto2. The module is built using SWIG to
automatically generate the interface code. This gives direct
access to nearly all of the libgphoto2 functions, although sometimes
in a nonstandard manner.
%prep
%setup -q -n gphoto2-%{version}
%patch0 -p1
# remove unwanted shebang
sed -e '1d' -i examples/*.py
%build
%python_build
%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitearch}
%files %{python_files}
%license LICENSE.txt
%doc CHANGELOG.txt README.rst examples
%{python_sitearch}/*
%changelog