Blame python-css-parser.spec

4322c5d
Name:           python-css-parser
6d2a5b2
Version:        1.0.7
528718b
Release:        %autorelease
4322c5d
Summary:        Parse and build Cascading Style Sheets
4322c5d
883423e
%global forgeurl https://github.com/ebook-utils/css-parser
883423e
%forgemeta
4322c5d
883423e
License:        LGPLv3
883423e
URL:            %{forgeurl}
883423e
Source0:        %{forgesource}
86cace9
6d2a5b2
Patch0:         https://github.com/ebook-utils/css-parser/pull/11.patch
73c304e
4322c5d
BuildArch:      noarch
4322c5d
BuildRequires:  python3-devel
a04180b
BuildRequires:  python3-setuptools
4322c5d
# for tests
4322c5d
BuildRequires:  python3-chardet
4322c5d
4322c5d
%global _description %{expand:
4322c5d
A fork of the cssutils project based on version 1.0.2. This fork includes
4322c5d
general bug fixes and extensions specific to editing and working with ebooks.}
4322c5d
4322c5d
%description %_description
4322c5d
4322c5d
%package -n python3-css-parser
4322c5d
Summary:        %{summary}
4322c5d
%{?python_provide:%python_provide python3-css-parser}
4322c5d
4322c5d
%description -n python3-css-parser %_description
4322c5d
4322c5d
%prep
73c304e
%forgeautosetup -p1
4322c5d
4322c5d
%build
4322c5d
sed -r -i '1{/.usr.bin.env python/d;}' src/css_parser/*py src/css_parser/*/*py
4322c5d
4322c5d
%py3_build
4322c5d
4322c5d
%install
4322c5d
%py3_install
4322c5d
4322c5d
%check
6d2a5b2
%python3 run_tests.py
4322c5d
4322c5d
%files -n python3-css-parser
4322c5d
%{python3_sitelib}/css_parser/
4322c5d
%{python3_sitelib}/css_parser-%{version}-py%{python3_version}.egg-info/
4322c5d
%doc README.md
4322c5d
%license COPYING COPYING.LESSER
4322c5d
4322c5d
%changelog
528718b
%autochangelog