Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmltodict?expand=0&rev=8
This commit is contained in:
parent
6a3f5a063c
commit
514531bcb6
@ -24,18 +24,17 @@ Release: 0
|
|||||||
Summary: Makes working with XML feel like you are working with JSON
|
Summary: Makes working with XML feel like you are working with JSON
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/martinblech/xmltodict
|
URL: https://github.com/martinblech/xmltodict
|
||||||
Source: https://files.pythonhosted.org/packages/source/x/xmltodict/xmltodict-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/x/xmltodict/xmltodict-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module xml}
|
BuildRequires: %{python_module xml}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-xml
|
||||||
|
BuildArch: noarch
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module nose >= 1.0}
|
BuildRequires: %{python_module nose >= 1.0}
|
||||||
%endif
|
%endif
|
||||||
Requires: python-xml
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -45,7 +44,7 @@ http://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n xmltodict-%{version}
|
%setup -q -n xmltodict-%{version}
|
||||||
sed -i '1{\@^#!/usr/bin/env python@d}' xmltodict.py
|
sed -i '1{\@^#!%{_bindir}/env python@d}' xmltodict.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -60,8 +59,8 @@ sed -i '1{\@^#!/usr/bin/env python@d}' xmltodict.py
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE
|
||||||
%doc README.md LICENSE
|
%doc README.md
|
||||||
%{python_sitelib}/xmltodict.py*
|
%{python_sitelib}/xmltodict.py*
|
||||||
%pycache_only %{python_sitelib}/__pycache__/xmltodict.*.py*
|
%pycache_only %{python_sitelib}/__pycache__/xmltodict.*.py*
|
||||||
%{python_sitelib}/xmltodict-%{version}-py*.egg-info
|
%{python_sitelib}/xmltodict-%{version}-py*.egg-info
|
||||||
|
Loading…
Reference in New Issue
Block a user