-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython3-xmp-toolkit.spec
More file actions
102 lines (85 loc) · 2.82 KB
/
python3-xmp-toolkit.spec
File metadata and controls
102 lines (85 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#
# Conditional build:
%bcond_without doc # API documentation
%bcond_without tests # unit tests
Summary: XMP I/O wrapping Exempi
Summary(pl.UTF-8): We/wy XMP obudowujące Exempi
Name: python3-xmp-toolkit
Version: 2.1.0
Release: 1
License: BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/python-xmp-toolkit/
Source0: https://files.pythonhosted.org/packages/source/p/python-xmp-toolkit/python_xmp_toolkit-%{version}.tar.gz
# Source0-md5: 9afc883ed5db8e5812b5324be9a41a8b
URL: https://pypi.org/project/python-xmp-toolkit/
BuildRequires: python3-build
BuildRequires: python3-flit_core >= 3.2
BuildRequires: python3-flit_core < 4
BuildRequires: python3-installer
BuildRequires: python3-modules >= 1:3.7
%if %{with tests}
BuildRequires: exempi >= 2.2.0
BuildRequires: python3-pytest >= 2.7.3
BuildRequires: python3-pytest-cov
BuildRequires: python3-pytz
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 2.044
%if %{with doc}
BuildRequires: sphinx-pdg-3
%endif
Requires: exempi >= 2.2.0
Requires: python3-modules >= 1:3.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Python XMP Toolkit is a library for working with XMP metadata, as well
as reading/writing XMP metadata stored in many different file formats.
Python XMP Toolkit is wrapping (using ctypes) Exempi, a C/C++ XMP
library based on Adobe XMP Toolkit, ensuring that future updates to
the XMP standard are easily incorporated into the library with a
minimum amount of work.
%description -l pl.UTF-8
Python XMP Toolkit to biblioteka do pracy z metadanymi XMP oraz
czytania/zapisu medatanych XMP, zapisywanych w wielu różnych formatach
plików.
Python XMP Toolkit (przy użyciu ctypes) obudowuje Exempi - bibliotekę
C/C++ XMP, opartą na Adobe XMP Toolkit, zapewniając, że późniejsze
aktualizacje standardu XMP będą mogły być minimalnym nakładem prac
włączone do biblioteki.
%package apidocs
Summary: API documentation for Python python-xmp-toolkit module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona python-xmp-toolkit
Group: Documentation
%description apidocs
API documentation for Python python-xmp-toolkit module.
%description apidocs -l pl.UTF-8
Dokumentacja API modułu Pythona python-xmp-toolkit.
%prep
%setup -q -n python_xmp_toolkit-%{version}
%build
%py3_build_pyproject
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__python3} -m pytest test
%endif
%if %{with doc}
%{__make} -C docs html \
SPHINXBUILD=sphinx-build-3
%endif
%install
rm -rf $RPM_BUILD_ROOT
%py3_install_pyproject
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS CHANGELOG LICENSE README.rst
%{py3_sitescriptdir}/libxmp
%{py3_sitescriptdir}/python_xmp_toolkit-%{version}.dist-info
%if %{with doc}
%files apidocs
%defattr(644,root,root,755)
%doc docs/.build/html/{_static,*.html,*.js}
%endif