[packages/python3-pycairo] - updated python3 package from python-pycairo.spec

qboosh qboosh at pld-linux.org
Fri Mar 4 20:33:14 CET 2022


commit 538c8396d16101df40ac5d38bb73b7c9ec8dfc78
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Mar 4 20:01:34 2022 +0100

    - updated python3 package from python-pycairo.spec

 python3-pycairo.spec | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 129 insertions(+)
---
diff --git a/python3-pycairo.spec b/python3-pycairo.spec
new file mode 100644
index 0000000..b789ebd
--- /dev/null
+++ b/python3-pycairo.spec
@@ -0,0 +1,129 @@
+#
+# Conditional build:
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
+
+%define		module	pycairo
+Summary:	Python 3 Cairo bindings
+Summary(pl.UTF-8):	Dowiązania Pythona 3 dla Cairo
+Name:		python-%{module}
+Version:	1.18.2
+Release:	1
+License:	LGPL v2.1 or MPL v1.1
+Group:		Libraries/Python
+#Source0Download: https://github.com/pygobject/pycairo/releases
+Source0:	https://github.com/pygobject/pycairo/releases/download/v%{version}/%{module}-%{version}.tar.gz
+# Source0-md5:	be2ba51f234270dec340f28f1695a95e
+URL:		https://www.cairographics.org/
+BuildRequires:	cairo-devel >= 1.13.1
+BuildRequires:	pkgconfig
+BuildRequires:	python3 >= 1:3.4
+BuildRequires:	python3-devel >= 1:3.4
+%if %{with tests}
+BuildRequires:	python3-hypothesis
+BuildRequires:	python3-numpy
+BuildRequires:	python3-pytest
+%endif
+BuildRequires:	rpm-build >= 4.6
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	python3-Sphinx
+BuildRequires:	python3-sphinx_rtd_theme
+%endif
+Requires:	python3-libs >= 1:3.4
+Requires:	cairo >= 1.13.1
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python 3 Cairo bindings.
+
+%description -l pl.UTF-8
+Dowiązania Pythona 3 dla Cairo.
+
+%package devel
+Summary:	Development files for Python 3 pycairo
+Summary(pl.UTF-8):	Pliki programistyczne pycairo dla Pythona 3
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	cairo-devel >= 1.13.1
+Requires:	python3-devel >= 1:3.4
+
+%description devel
+Development files for Python 3 pycairo.
+
+%description devel -l pl.UTF-8
+Pliki programistyczne pycairo dla Pythona 3.
+
+%package apidocs
+Summary:	API documentation for Python Cairo bindings
+Summary(pl.UTF-8):	Dokumentacja API dla wiązań Pythona do Cairo
+Group:		Documentation
+BuildArch:	noarch
+
+%description apidocs
+API documentation for Python Cairo bindings.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API dla wiązań Pythona do Cairo.
+
+%package examples
+Summary:	Example programs using Python Cairo bindings
+Summary(pl.UTF-8):	Przykładowe programy w Pythonie używające Cairo
+Group:		Libraries/Python
+BuildArch:	noarch
+
+%description examples
+Example programs using Python Cairo bindings.
+
+%description examples -l pl.UTF-8
+Przykładowe programy w Pythonie używające Cairo.
+
+%prep
+%setup -q -n pycairo-%{version}
+
+%build
+%py3_build %{?with_tests:test}
+
+%if %{with doc}
+%{__make} -C docs
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}
+
+%py3_install
+
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING NEWS README.rst
+%dir %{py3_sitedir}/cairo
+%attr(755,root,root) %{py3_sitedir}/cairo/_cairo.cpython-*.so
+%{py3_sitedir}/cairo/__init__.py
+%{py3_sitedir}/cairo/__init__.pyi
+%{py3_sitedir}/cairo/__pycache__
+%{py3_sitedir}/cairo/include
+%{py3_sitedir}/cairo/py.typed
+%{py3_sitedir}/pycairo-%{version}-py*.egg-info
+
+%files devel
+%defattr(644,root,root,755)
+%dir %{_includedir}/pycairo
+%{_includedir}/pycairo/py3cairo.h
+%{_pkgconfigdir}/py3cairo.pc
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/{_images,_static,reference,*.html,*.js}
+%endif
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pycairo.git/commitdiff/00e40d9da83ba29b86417cfa99eab5385e7dc635



More information about the pld-cvs-commit mailing list