Use %{expand} and add missing %{python_provide}

epel9
Zbigniew Jędrzejewski-Szmek 6 years ago
parent 6f91d1c140
commit f2fed72721

@ -27,24 +27,24 @@ BuildRequires: python3-setuptools
BuildRequires: python3-soupsieve BuildRequires: python3-soupsieve
BuildRequires: python3-lxml BuildRequires: python3-lxml
%global _description\ %global _description %{expand:
Beautiful Soup is a Python HTML/XML parser designed for quick\ Beautiful Soup is a Python HTML/XML parser designed for quick
turnaround projects like screen-scraping. Three features make it\ turnaround projects like screen-scraping. Three features make it
powerful:\ powerful:
\
Beautiful Soup wont choke if you give it bad markup.\ Beautiful Soup won't choke if you give it bad markup.
\
Beautiful Soup provides a few simple methods and Pythonic idioms for\ Beautiful Soup provides a few simple methods and Pythonic idioms for
navigating, searching, and modifying a parse tree.\ navigating, searching, and modifying a parse tree.
\
Beautiful Soup automatically converts incoming documents to Unicode\ Beautiful Soup automatically converts incoming documents to Unicode
and outgoing documents to UTF-8.\ and outgoing documents to UTF-8.
\
Beautiful Soup parses anything you give it.\ Beautiful Soup parses anything you give it.
\
Valuable data that was once locked up in poorly-designed websites is\ Valuable data that was once locked up in poorly-designed websites is
now within your reach. Projects that would have taken hours take only\ now within your reach. Projects that would have taken hours take only
minutes with Beautiful Soup. minutes with Beautiful Soup.}
%description %_description %description %_description
@ -54,6 +54,7 @@ Summary: %summary
Requires: python2-lxml Requires: python2-lxml
Requires: python2-soupsieve Requires: python2-soupsieve
%{?python_provide:%python_provide python2-beautifulsoup4} %{?python_provide:%python_provide python2-beautifulsoup4}
%description -n python2-beautifulsoup4 %_description %description -n python2-beautifulsoup4 %_description
%endif %endif
@ -62,6 +63,8 @@ Summary: %summary
Requires: python3-lxml Requires: python3-lxml
Requires: python3-soupsieve Requires: python3-soupsieve
Obsoletes: python3-BeautifulSoup < 1:3.2.1-2 Obsoletes: python3-BeautifulSoup < 1:3.2.1-2
%{?python_provide:%python_provide python3-beautifulsoup4}
%description -n python3-beautifulsoup4 %_description %description -n python3-beautifulsoup4 %_description
%prep %prep

Loading…
Cancel
Save