python-cairocffi/python-cairocffi.spec

62 lines
1.8 KiB
RPMSpec
Raw Normal View History

Name: python-cairocffi
Version: 0.7.2
Release: 1mamba
Summary: A `CFFI`_-based drop-in replacement for Pycairo_
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypi.python.org/pypi/cairocffi
Source: https://pypi.python.org/packages/source/c/cairocffi/cairocffi-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
## note: run 'autospec -u -a6 python-cairocffi' to get the list of build requirements.
## AUTOBUILDREQ-END
BuildRequires: libpython-devel
Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
%{summary}.
%if "%{?with_pyver}"
%pyver_package
%endif
%prep
%setup -q -n cairocffi-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%{python_sitearch}/cairocffi/_ffi.py*
%{python_sitearch}/cairocffi/_ffi_pixbuf.py*
%if "%{?with_pyver}"
%{python_sitearch}/cairocffi/__pycache__/_ffi.cpython-*.py*
%{python_sitearch}/cairocffi/__pycache__/_ffi_pixbuf.cpython-*.py*
%endif
%doc LICENSE
%changelog
* Fri Aug 07 2015 Automatic Build System <autodist@mambasoft.it> 0.7.2-1mamba
- automatic version update by autodist
* Thu Aug 06 2015 Automatic Build System <autodist@mambasoft.it> 0.7.1-1mamba
- automatic version update by autodist
* Mon Jun 22 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7-1mamba
- package created using the webbuild interface