projects
/
packages
/
python-Cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
61ccb09
)
- updated to 0.27.3
auto/th/python-Cython-0.27.3-1
author
Jakub Bogusz
<qboosh@pld-linux.org>
Sun, 26 Nov 2017 17:06:25 +0000
(18:06 +0100)
committer
Jakub Bogusz
<qboosh@pld-linux.org>
Sun, 26 Nov 2017 17:06:25 +0000
(18:06 +0100)
- separated -apidocs
python-Cython.spec
patch
|
blob
|
blame
|
history
diff --git
a/python-Cython.spec
b/python-Cython.spec
index 5470ebdca171bb46a667ae1cd0d54c8e85323c2d..88f13b779439d214c938a704a0c5b6b8f5b81b25 100644
(file)
--- a/
python-Cython.spec
+++ b/
python-Cython.spec
@@
-2,19
+2,20
@@
# Conditional build:
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
# Conditional build:
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
+%bcond_without apidocs # Sphinx documentation
%define module Cython
Summary: Language for writing Python Extension Modules (Python 2.x version)
Summary(pl.UTF-8): Język służący do pisania modułów rozszerzających Pythona (wersja dla Pythona 2.x)
Name: python-%{module}
%define module Cython
Summary: Language for writing Python Extension Modules (Python 2.x version)
Summary(pl.UTF-8): Język służący do pisania modułów rozszerzających Pythona (wersja dla Pythona 2.x)
Name: python-%{module}
-Version: 0.2
5.2
+Version: 0.2
7.3
Release: 1
License: Apache v2.0
Group: Libraries/Python
#Source0Download: https://pypi.python.org/simple/cython/
Release: 1
License: Apache v2.0
Group: Libraries/Python
#Source0Download: https://pypi.python.org/simple/cython/
-Source0: https://
pypi.python.org/packages/b7/67/7e2a817f9e9c773ee3995c1e15204f5d01c8da71882016cac10342ef031b
/%{module}-%{version}.tar.gz
-# Source0-md5: 6
42c81285e1bb833b14ab3f439964086
+Source0: https://
files.pythonhosted.org/packages/source/c/cython
/%{module}-%{version}.tar.gz
+# Source0-md5: 6
149238287d662bd5d5e572482252493
URL: http://cython.org/
BuildRequires: rpmbuild(macros) >= 1.710
%if %{with python2}
URL: http://cython.org/
BuildRequires: rpmbuild(macros) >= 1.710
%if %{with python2}
@@
-30,6
+31,7
@@
BuildRequires: python3-modules >= 1:3.2
BuildRequires: python3-setuptools
%endif
BuildRequires: rpm-pythonprov
BuildRequires: python3-setuptools
%endif
BuildRequires: rpm-pythonprov
+%{?with_apidocs:BuildRequires: sphinx-pdg}
Requires: python-devel >= 1:2.6
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Requires: python-devel >= 1:2.6
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@
-69,6
+71,17
@@
Cython jest oparty na Pyreksie.
Ten pakiet zawiera moduł Cython dla Pythona 3.x.
Ten pakiet zawiera moduł Cython dla Pythona 3.x.
+%package apidocs
+Summary: API documentation for Cython module
+Summary(pl.UTF-8): Dokumentacja API modułu Cython
+Group: Documentation
+
+%description apidocs
+API documentation for Cython module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Cython.
+
%package examples
Summary: Examples for Cython language
Summary(pl.UTF-8): Przykłady programów w języku Cython
%package examples
Summary: Examples for Cython language
Summary(pl.UTF-8): Przykłady programów w języku Cython
@@
-93,6
+106,10
@@
Pakiet zawierający przykładowe programy napisane w języku Cython.
%py3_build
%endif
%py3_build
%endif
+%if %{with apidocs}
+%{__make} -C docs html
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
@@
-119,7
+136,7
@@
rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc COPYING.txt README.txt ToDo.txt USAGE.txt
Doc/*.html Doc/*.c
+%doc COPYING.txt README.txt ToDo.txt USAGE.txt
%attr(755,root,root) %{_bindir}/cython
%attr(755,root,root) %{_bindir}/cythonize
%attr(755,root,root) %{_bindir}/cygdb
%attr(755,root,root) %{_bindir}/cython
%attr(755,root,root) %{_bindir}/cythonize
%attr(755,root,root) %{_bindir}/cygdb
@@
-132,7
+149,7
@@
rm -rf $RPM_BUILD_ROOT
%if %{with python3}
%files -n python3-Cython
%defattr(644,root,root,755)
%if %{with python3}
%files -n python3-Cython
%defattr(644,root,root,755)
-%doc COPYING.txt README.txt ToDo.txt USAGE.txt
Doc/*.html Doc/*.c
+%doc COPYING.txt README.txt ToDo.txt USAGE.txt
%attr(755,root,root) %{_bindir}/cython3
%attr(755,root,root) %{_bindir}/cythonize3
%attr(755,root,root) %{_bindir}/cygdb3
%attr(755,root,root) %{_bindir}/cython3
%attr(755,root,root) %{_bindir}/cythonize3
%attr(755,root,root) %{_bindir}/cygdb3
@@
-143,6
+160,12
@@
rm -rf $RPM_BUILD_ROOT
%{py3_sitedir}/Cython-%{version}-py*.egg-info
%endif
%{py3_sitedir}/Cython-%{version}-py*.egg-info
%endif
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/build/html/{_images,_static,src,*.html,*.js}
+%endif
+
%files examples
%defattr(644,root,root,755)
%{_examplesdir}/%{name}-%{version}
%files examples
%defattr(644,root,root,755)
%{_examplesdir}/%{name}-%{version}
This page took
0.069639 seconds
and
4
git commands to generate.