Blame python-xmp-toolkit.spec

bb08109
%global pypi_name python-xmp-toolkit
bb08109
%global srcname xmp-toolkit
bb08109
bb08109
Name:           python-%{srcname}
bb08109
Version:        2.0.1
d624359
Release:        11%{?dist}
bb08109
Summary:        Python XMP Toolkit for working with metadata
bb08109
bb08109
License:        BSD
bb08109
URL:            https://github.com/python-xmp-toolkit/python-xmp-toolkit
bb08109
Source0:        %{pypi_source %{pypi_name}}
bb08109
# https://github.com/python-xmp-toolkit/python-xmp-toolkit/pull/68
bb08109
Patch0001:      2f94011ab789d1d2cabc41db7a708a19a62bb573.patch
ce456db
# https://github.com/python-xmp-toolkit/python-xmp-toolkit/pull/84
ce456db
Source1:        https://github.com/python-xmp-toolkit/python-xmp-toolkit/raw/e0f42af4a731ac1eea2977895f2c8dd0264304c3/test/samples/BlueSquare.gif
bb08109
bb08109
BuildArch:      noarch
bb08109
bb08109
BuildRequires:  exempi
bb08109
BuildRequires:  python3-devel
bb08109
BuildRequires:  python3dist(pytz)
bb08109
BuildRequires:  python3dist(setuptools)
bb08109
BuildRequires:  python3dist(sphinx)
bb08109
bb08109
%description
bb08109
Python XMP Toolkit Python XMP Toolkit is a library for working with XMP
bb08109
metadata, as well as reading/writing XMP metadata stored in many different file
bb08109
formats.
bb08109
bb08109
%package -n     python3-%{srcname}
bb08109
Summary:        %{summary}
bb08109
%{?python_provide:%python_provide python3-%{srcname}}
bb08109
bb08109
Requires:       exempi
bb08109
%{?python_enable_dependency_generator}
bb08109
bb08109
%description -n python3-%{srcname}
bb08109
Python XMP Toolkit Python XMP Toolkit is a library for working with XMP
bb08109
metadata, as well as reading/writing XMP metadata stored in many different file
bb08109
formats.
bb08109
bb08109
bb08109
%package -n python-%{srcname}-doc
bb08109
Summary:        python-xmp-toolkit documentation
bb08109
bb08109
%description -n python-%{srcname}-doc
bb08109
Documentation for python-xmp-toolkit
bb08109
bb08109
bb08109
%prep
bb08109
%autosetup -n %{pypi_name}-%{version} -p1
ce456db
cp %SOURCE1 test/samples/
bb08109
bb08109
# Remove bundled egg-info
bb08109
rm -rf %{pypi_name}.egg-info
bb08109
bb08109
bb08109
%build
bb08109
%py3_build
bb08109
bb08109
# generate html docs
bb08109
PYTHONPATH=${PWD} sphinx-build-3 docs html
bb08109
# remove the sphinx-build leftovers
bb08109
rm -rf html/.{doctrees,buildinfo}
bb08109
bb08109
bb08109
%install
bb08109
%py3_install
bb08109
bb08109
bb08109
%check
ce456db
%{python3} setup.py test
bb08109
bb08109
bb08109
%files -n python3-%{srcname}
bb08109
%license LICENSE
bb08109
%doc README.rst
bb08109
%{python3_sitelib}/libxmp
ce456db
%{python3_sitelib}/python_xmp_toolkit-%{version}-py%{python3_version}.egg-info
bb08109
bb08109
%files -n python-%{srcname}-doc
bb08109
%doc html
bb08109
%license LICENSE
bb08109
bb08109
bb08109
%changelog
d624359
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.1-11
d624359
- Rebuilt for Python 3.10
d624359
a75b7bd
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-10
a75b7bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a75b7bd
d58766f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-9
d58766f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d58766f
ce456db
* Mon Jun 22 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.1-8
ce456db
- Backport fixed GIF89a test file for new exempi
ce456db
8aa6e00
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-7
8aa6e00
- Rebuilt for Python 3.9
8aa6e00
57915c1
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-6
57915c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
57915c1
4a423ff
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-5
4a423ff
- Rebuilt for Python 3.8.0rc1 (#1748018)
4a423ff
af7ce00
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-4
af7ce00
- Rebuilt for Python 3.8
af7ce00
bd3612c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
bd3612c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bd3612c
f11230b
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
f11230b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f11230b
bb08109
* Tue Aug 21 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.1-1
bb08109
- Initial package.