More improvements to the spec file
This commit is contained in:
parent
4642dcb6bc
commit
1bd9c0d694
@ -108,34 +108,21 @@ It has lots of other features though:
|
|||||||
* A powerful unrepr mode for storing basic datatypes
|
* A powerful unrepr mode for storing basic datatypes
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{pypi_name}-%{version}
|
%setup -n %{pypi_name}-%{version}
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python} setup.py build
|
%py2_build
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
%py3_build
|
||||||
%{__python3} setup.py build
|
%endif # with_python3
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
%py3_install
|
||||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
%endif # with_python3
|
||||||
popd
|
%py2_install
|
||||||
%endif
|
|
||||||
|
|
||||||
#%check
|
#%check
|
||||||
# this needs to be set for tests.test_configobj.test_options_deprecation
|
# this needs to be set for tests.test_configobj.test_options_deprecation
|
||||||
@ -153,24 +140,20 @@ popd
|
|||||||
#popd
|
#popd
|
||||||
#%endif
|
#%endif
|
||||||
|
|
||||||
%clean
|
%files -n python2-%{pypi_name}
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%{!?_licensedir:%global license %doc}
|
||||||
|
%doc
|
||||||
%files
|
|
||||||
# no docs untile upstream puts them in sdist again:
|
|
||||||
# https://github.com/DiffSK/configobj/issues/63
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{!?_licensedir:%global license %%doc}
|
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python2_sitelib}/*
|
||||||
|
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%files -n python3-configobj
|
%files -n python3-%{pypi_name}
|
||||||
%defattr(-,root,root,-)
|
%doc
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
%endif
|
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||||
|
%endif # with_python3
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jan 06 2016 Fabio Alessandro Locati <fabio@locati.cc> - 5.0.6-1
|
* Wed Jan 06 2016 Fabio Alessandro Locati <fabio@locati.cc> - 5.0.6-1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user