034cc43
%global pypi_name micawber
034cc43
034cc43
Name:           python-%{pypi_name}
5a35c37
Version:        0.5.0
5a35c37
Release:        1%{?dist}
034cc43
Summary:        a small library for extracting rich content from urls
034cc43
034cc43
License:        MIT
034cc43
URL:            http://github.com/coleifer/micawber/
034cc43
Source0:        %{pypi_source}
034cc43
BuildArch:      noarch
034cc43
034cc43
BuildRequires:  python3-devel
034cc43
BuildRequires:  python3dist(setuptools)
034cc43
034cc43
%description
034cc43
A small library for extracting rich content from urls. what does it do?
034cc43
-micawber supplies a few methods for retrieving rich metadata about a variety
034cc43
of links, such as links to youtube videos. micawber also provides functions for
034cc43
parsing blocks of text and html and replacing links to videos with rich
034cc43
embedded --here is a quick example:.. code-block:: python import micawber load
034cc43
up rules for...
034cc43
034cc43
%package -n     python3-%{pypi_name}
034cc43
Summary:        %{summary}
034cc43
%{?python_provide:%python_provide python3-%{pypi_name}}
034cc43
034cc43
%description -n python3-%{pypi_name}
034cc43
A small library for extracting rich content from urls. what does it do?
034cc43
-micawber supplies a few methods for retrieving rich metadata about a variety
034cc43
of links, such as links to youtube videos. micawber also provides functions for
034cc43
parsing blocks of text and html and replacing links to videos with rich
034cc43
embedded --here is a quick example:.. code-block:: python import micawber load
034cc43
up rules for...
034cc43
034cc43
034cc43
%prep
034cc43
%autosetup -n %{pypi_name}-%{version}
034cc43
# Remove bundled egg-info
034cc43
rm -rf %{pypi_name}.egg-info
034cc43
034cc43
%build
034cc43
%py3_build
034cc43
034cc43
%install
034cc43
%py3_install
034cc43
034cc43
%check
034cc43
# the tests fail with ImportError: cannot import name 'bs_kwargs' from 'micawber.parsers'
034cc43
# so disabling for now
034cc43
# %{__python3} setup.py test
034cc43
034cc43
%files -n python3-%{pypi_name}
034cc43
%license LICENSE
034cc43
%doc README.rst
034cc43
%{python3_sitelib}/%{pypi_name}
034cc43
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
034cc43
034cc43
%changelog
5a35c37
* Fri Jul 12 2019 José Matos <jamatos@fedoraproject.org> - 0.5.0-1
5a35c37
- update to 0.5.0
5a35c37
034cc43
* Tue Jun 11 2019 José Matos <jamatos@fedoraproject.org> - 0.4.1-2
034cc43
- Change the source url to standard path name (%%{pypi_source})
034cc43
034cc43
* Sun Jun  9 2019 José Matos <jamatos@fedoraproject.org> - 0.4.1-1
034cc43
- update to 0.4.1
034cc43
034cc43
* Sat Sep  1 2018 José Matos <jamatos@fedoraproject.org> - 0.3.5-1
034cc43
- Initial package.