|
|
@ -1,9 +1,15 @@
|
|
|
|
# Created by pyp2rpm-1.1.1
|
|
|
|
# Created by pyp2rpm-1.1.1
|
|
|
|
%global sname wrapt
|
|
|
|
%global sname wrapt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{!?_licensedir: %global license %%doc}
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{sname}
|
|
|
|
Name: python-%{sname}
|
|
|
|
Version: 1.10.4
|
|
|
|
Version: 1.10.4
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Summary: A Python module for decorators, wrappers and monkey patching
|
|
|
|
Summary: A Python module for decorators, wrappers and monkey patching
|
|
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
@ -12,6 +18,10 @@ Source0: https://github.com/GrahamDumpleton/%{sname}/archive/%{version}.t
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
The aim of the wrapt module is to provide a transparent object proxy
|
|
|
|
The aim of the wrapt module is to provide a transparent object proxy
|
|
|
|
for Python, which can be used as the basis for the construction of
|
|
|
|
for Python, which can be used as the basis for the construction of
|
|
|
@ -26,17 +36,45 @@ BuildRequires: python-sphinx_rtd_theme
|
|
|
|
%description doc
|
|
|
|
%description doc
|
|
|
|
Documentation for the wrapt module
|
|
|
|
Documentation for the wrapt module
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
%package -n python3-wrapt
|
|
|
|
|
|
|
|
Summary: A Python module for decorators, wrappers and monkey patching
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-wrapt
|
|
|
|
|
|
|
|
The aim of the wrapt module is to provide a transparent object proxy
|
|
|
|
|
|
|
|
for Python, which can be used as the basis for the construction of
|
|
|
|
|
|
|
|
function wrappers and decorator functions.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{sname}-%{version}
|
|
|
|
%setup -q -n %{sname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove bundled egg-info in case it exists
|
|
|
|
|
|
|
|
rm -rf %{sname}.egg-info
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%{__python2} setup.py build
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# for docs
|
|
|
|
# for docs
|
|
|
|
pushd docs
|
|
|
|
pushd docs
|
|
|
|
sphinx-build -b html -d build/doctrees . build/html
|
|
|
|
sphinx-build -b html -d build/doctrees . build/html
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
|
|
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
@ -48,7 +86,18 @@ popd
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%doc docs/build/html
|
|
|
|
%doc docs/build/html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
%files -n python3-wrapt
|
|
|
|
|
|
|
|
%doc README
|
|
|
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%{python3_sitearch}/%{sname}
|
|
|
|
|
|
|
|
%{python3_sitearch}/%{sname}-%{version}-py?.?.egg-info
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sat Apr 11 2015 Ralph Bean <rbean@redhat.com> - 1.10.4-5
|
|
|
|
|
|
|
|
- Add python3 subpackage
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 25 2015 Chandan Kumar <chkumar246@gmail.com> - 1.10.4-4
|
|
|
|
* Wed Mar 25 2015 Chandan Kumar <chkumar246@gmail.com> - 1.10.4-4
|
|
|
|
- Added doc files for doc subpackage
|
|
|
|
- Added doc files for doc subpackage
|
|
|
|
|
|
|
|
|
|
|
|