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
f11230b
Release:        2%{?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
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
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
bb08109
%{__python3} setup.py test
bb08109
bb08109
bb08109
%files -n python3-%{srcname}
bb08109
%license LICENSE
bb08109
%doc README.rst
bb08109
%{python3_sitelib}/libxmp
bb08109
%{python3_sitelib}/python_xmp_toolkit-%{version}-py?.?.egg-info
bb08109
bb08109
%files -n python-%{srcname}-doc
bb08109
%doc html
bb08109
%license LICENSE
bb08109
bb08109
bb08109
%changelog
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.