rebuilt with distdeps [release 1.20.0-2mamba;Sat Apr 10 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 10:37:19 +01:00
parent 1ef0c3d245
commit b277a7d230
2 changed files with 19 additions and 38 deletions

View File

@ -1,4 +1,4 @@
# pycairo # pycairo
Python 2/3 bindings for cairo. Python bindings for cairo.

View File

@ -1,62 +1,35 @@
Name: pycairo Name: pycairo
Version: 1.18.1 Version: 1.20.0
Release: 1mamba Release: 2mamba
Summary: Python 2/3 bindings for cairo Summary: Python bindings for cairo
Group: System/Libraries/Python Group: System/Libraries/Python
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://cairographics.org/ URL: https://cairographics.org/
Source: https://github.com/pygobject/pycairo/releases/download/v%{version}/pycairo-%{version}.tar.gz Source: https://github.com/pygobject/pycairo/releases/download/v%{version}/pycairo-%{version}.tar.gz
License: LGPL, MPL 1.1 License: LGPL, MPL 1.1
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libcairo-devel BuildRequires: libcairo-devel
BuildRequires: libpython-devel BuildRequires: libpython3-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libpython3-devel >= 3.7.4 #Provides: py2cairo
BuildRequires: python3 #Obsoletes: py2cairo
#BuildRequires: pygtk-devel
Provides: py2cairo
Obsoletes: py2cairo
Provides: python-cairo
Provides: python-pycairo
Requires: python3 >= %python3_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
Python 2/3 bindings for cairo. Python bindings for cairo.
%package devel %package devel
Summary: Static libraries and headers for %{name} Summary: Static libraries and headers for %{name}
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}
%description devel %description devel
Python 3 bindings for cairo. Python 3 bindings for cairo.
This package contains static libraries and header files need for development. This package contains static libraries and header files need for development.
%if "%{?with_pyver}" %if "%{?with_pyver}"
%define pyver %{with_pyver} %pyver_package
%define pyappend py%{with_pyver}
%define __python %(rpm --eval %{__python%{pyver}})
%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch})
%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib})
%define python_inc %(rpm --eval %{python%{with_pyver}_inc})
%define python_version %(rpm --eval %{python%{with_pyver}_version})
%define python_provides %(rpm --eval %{python%{with_pyver}_provides})
%define python_requires %(rpm --eval %{python%{with_pyver}_requires})
%define py_requires %(rpm --eval %{py%{with_pyver}_requires})
%package %{pyappend}
Group: System/Libraries/Python
Summary: %{summary}
Provides: py%{with_pyver}cairo
Obsoletes: py%{with_pyver}cairo
%py_requires
%description %{pyappend}
%{summary}
%endif %endif
%prep %prep
@ -74,13 +47,15 @@ CFLAGS="%{optflags}" %{__python} setup.py build
--install-lib=%{python_sitearch} \ --install-lib=%{python_sitearch} \
--record=%{name}.filelist --record=%{name}.filelist
sed -i "s,.*/man/.*,&.gz," %{name}.filelist sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?pyappend} -f %{name}.filelist %files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root) %defattr(-,root,root)
%dir %{python_sitearch}/pycairo-%{version}-py*.egg-info
%{python_sitearch}/pycairo-%{version}-py*.egg-info/*
%{python_sitearch}/cairo/include/py*cairo.h %{python_sitearch}/cairo/include/py*cairo.h
%doc COPYING %doc COPYING
@ -91,6 +66,12 @@ sed -i "s,.*/man/.*,&.gz," %{name}.filelist
%doc NEWS %doc NEWS
%changelog %changelog
* Sat Apr 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.20.0-2mamba
- rebuilt with distdeps
* Sun Feb 21 2021 Automatic Build System <autodist@mambasoft.it> 1.20.0-1mamba
- automatic version update by autodist
* Thu Aug 08 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.18.1-1mamba * Thu Aug 08 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.18.1-1mamba
- update to 1.18.1 - update to 1.18.1