Search
SailfishOS Open Build Service
>
Projects
>
home:maikoool
:
borg
>
python3-chardet
> python3-chardet.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File python3-chardet.spec of Package python3-chardet
%define python_version python3 %define pkgname chardet %define pypkgname chardet Name: %{python_version}-%{pkgname} Version: 3.0.3 Summary: Universal encoding detector for Python 2 and 3 License: LGPL Release: 1 Group: Development/Languages URL: http://pypi.python.org/pypi/%{pkgname} Source0: %{pkgname}-%{version}.tar.gz BuildRequires: %{python_version}-devel BuildRequires: %{python_version}-pytest-runner Requires: %{python_version}-base %description Universal encoding detector for Python 2 and 3 %prep %setup -q -n %{pkgname}-%{version} %build CFLAGS="$RPM_OPT_FLAGS" %{python_version} setup.py build %install rm -rf $RPM_BUILD_ROOT %{python_version} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_libdir}/%{python_version}.*/site-packages/%{pypkgname} %{_libdir}/%{python_version}.*/site-packages/%{pkgname}-%{version}-*.egg-info/* /usr/bin/chardetect %changelog * Mon Jun 05 2017 Maikel Wever <maikel@maikelwever.nl> - 3.0.3-1 - Initial Packaging for Python 3 on SailfishOS