remove empty double-lines

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2017-11-03 18:35:44 +01:00
parent 7423b82ee0
commit 418efd07be

View File

@ -18,7 +18,6 @@ BuildArch: noarch
%description %description
py.test provides simple, yet powerful testing for Python. py.test provides simple, yet powerful testing for Python.
%package -n python2-%{name} %package -n python2-%{name}
Summary: Simple powerful testing with Python Summary: Simple powerful testing with Python
BuildRequires: python2-devel BuildRequires: python2-devel
@ -47,7 +46,6 @@ Obsoletes: %{name} < 2.8.7-3
%description -n python2-%{name} %description -n python2-%{name}
py.test provides simple, yet powerful testing for Python. py.test provides simple, yet powerful testing for Python.
%package -n python3-%{name} %package -n python3-%{name}
Summary: Simple powerful testing with Python Summary: Simple powerful testing with Python
BuildRequires: python3-devel BuildRequires: python3-devel
@ -74,11 +72,9 @@ Obsoletes: platform-python-%{name} < 3.2.3-2
%description -n python3-%{name} %description -n python3-%{name}
py.test provides simple, yet powerful testing for Python. py.test provides simple, yet powerful testing for Python.
%prep %prep
%autosetup %autosetup
%build %build
%py2_build %py2_build
%py3_build %py3_build
@ -89,7 +85,6 @@ for f in README CHANGELOG CONTRIBUTING ; do
rst2html ${f}.rst > ${f}.html rst2html ${f}.rst > ${f}.html
done done
%install %install
%py2_install %py2_install
mv %{buildroot}%{_bindir}/pytest %{buildroot}%{_bindir}/pytest-%{python2_version} mv %{buildroot}%{_bindir}/pytest %{buildroot}%{_bindir}/pytest-%{python2_version}
@ -118,7 +113,6 @@ find %{buildroot}{%{python2_sitelib},%{python3_sitelib}} \
-name '*.py' \ -name '*.py' \
-exec sed -i -e '1{/^#!/d}' {} \; -exec sed -i -e '1{/^#!/d}' {} \;
%check %check
PATH=%{buildroot}%{_bindir}:${PATH} \ PATH=%{buildroot}%{_bindir}:${PATH} \
PYTHONPATH=%{buildroot}%{python2_sitelib} \ PYTHONPATH=%{buildroot}%{python2_sitelib} \
@ -134,7 +128,6 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \
--timeout=30 --timeout=30
%endif %endif
%files -n python2-%{name} %files -n python2-%{name}
%doc CHANGELOG.html %doc CHANGELOG.html
%doc README.html %doc README.html
@ -149,7 +142,6 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \
%{_bindir}/py.test-%{python2_version} %{_bindir}/py.test-%{python2_version}
%{python2_sitelib}/* %{python2_sitelib}/*
%files -n python3-%{name} %files -n python3-%{name}
%doc CHANGELOG.html %doc CHANGELOG.html
%doc README.html %doc README.html
@ -163,7 +155,6 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \
%{python3_sitelib}/* %{python3_sitelib}/*
%exclude %dir %{python3_sitelib}/__pycache__ %exclude %dir %{python3_sitelib}/__pycache__
%changelog %changelog
* Fri Nov 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.2.3-2 * Fri Nov 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.2.3-2
- Remove platform-python subpackage - Remove platform-python subpackage