123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- %global pypi_name chardet
- Name: python-chardet
- Version: 3.0.4
- Release: 2%{?_dist_release}
- Summary: Character encoding auto-detection in Python
- Summary(ja): Python で文字エンコーディングを自動検出
- Group: programming
- Vendor: Project Vine
- Distribution: Vine Linux
- License: LGPLv2
- URL: https://pypi.python.org/pypi/chardet
- Source0: https://pypi.python.org/packages/source/c/chardet/chardet-%{version}.tar.gz
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildArch: noarch
- BuildRequires: python-rpm-macros
- BuildRequires: python-devel, python-setuptools, python2-rpm-macros
- BuildRequires: python3-devel, python3-setuptools, python3-rpm-macros
- %description
- Character encoding auto-detection in Python. As
- smart as your browser. Open source.
- %package -n python3-%{pypi_name}
- Summary: Character encoding auto-detection in Python 3
- Summary(ja): Python で文字エンコーディングを自動検出
- Group: programming
- %description -n python3-%{pypi_name}
- Character encoding auto-detection in Python. As
- smart as your browser. Open source.
- %prep
- %setup -q -n chardet-%{version}
- sed -ie '1d' %{pypi_name}/cli/chardetect.py
- %build
- %py2_build
- %py3_build
- %install
- rm -rf $RPM_BUILD_ROOT
- %py2_install
- mv $RPM_BUILD_ROOT%{_bindir}/{,python2-}chardetect
- %py3_install
-
- %clean
- rm -rf $RPM_BUILD_ROOT
- %files
- %defattr(-,root,root,-)
- %{!?_licensedir:%global license %%doc}
- %license LICENSE
- %doc README.rst
- # For noarch packages: sitelib
- %{_bindir}/python2-chardetect
- %{python_sitelib}/*
- %files -n python3-%{pypi_name}
- %{!?_licensedir:%global license %%doc}
- %license LICENSE
- %doc README.rst
- %{python3_sitelib}/*
- %{_bindir}/chardetect
- %changelog
- * Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.4-2
- - rebuilt with python-3.8.
- * Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.4-1
- - new upstream release.
- - added python3 support.
- * Wed May 06 2015 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.3.0-1
- - new upstream release
- * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.1-1
- - new upstream release
- * Sun Apr 28 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.1.1-1
- - new upstream release
- - changed Source0 and URL
- * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-4
- - rebuild with python-2.7.2
- * Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-3
- - rebuilt with rpm-4.8.1 for pkg-config
- * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-2
- - rebuilt with python-2.6.4
- * Mon Nov 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-1
- - new upstream release
- - fixed Japanese summary
- * Mon Sep 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.1-1
- - initial build for VineSeed
- * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
- * Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.0.1-1
- - Initial release
|