forked from pool/python-exiv2
Initial package OBS-URL: https://build.opensuse.org/request/show/605161 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exiv2?expand=0&rev=1
66 lines
2.1 KiB
RPMSpec
66 lines
2.1 KiB
RPMSpec
#
|
||
# spec file for package python-py3exiv2
|
||
#
|
||
# Copyright (c) 2018 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/
|
||
|
||
|
||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||
|
||
# This is a python3 only package
|
||
%define skip_python2 1
|
||
|
||
Name: python-exiv2
|
||
Version: 0.2.1
|
||
Release: 0
|
||
License: GPL-3.0
|
||
Summary: Python3 bindings for the exiv2 library
|
||
Url: https://launchpad.net/py3exiv2
|
||
Group: Development/Languages/Python
|
||
Source: https://files.pythonhosted.org/packages/source/p/py3exiv2/py3exiv2-%{version}.tar.gz
|
||
|
||
BuildRequires: libboost_python3-devel
|
||
BuildRequires: libexiv2-devel
|
||
BuildRequires: gcc-c++
|
||
BuildRequires: python-rpm-macros
|
||
BuildRequires: %{python_module devel}
|
||
BuildRequires: %{python_module setuptools}
|
||
BuildRequires: fdupes
|
||
|
||
%python_subpackages
|
||
|
||
%description
|
||
python3-exiv2 is a Python 3 binding to exiv2, the C++ library for manipulation
|
||
of EXIF, IPTC and XMP image metadata. It is a python 3 module that allows your
|
||
scripts to read and write metadata (EXIF, IPTC, XMP, thumbnails) embedded in
|
||
image files (JPEG, TIFF, ...).
|
||
|
||
It is designed as a high-level interface to the functionalities offered by
|
||
libexiv2. Using python’s built-in data types and standard modules, it provides
|
||
easy manipulation of image metadata.
|
||
|
||
%prep
|
||
%setup -q -n py3exiv2-%{version}
|
||
|
||
%build
|
||
%python_build
|
||
|
||
%install
|
||
%python_install
|
||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||
|
||
%files %{python_files}
|
||
%{python_sitearch}/*
|
||
|
||
%changelog
|