[11940] | 1 | %global pypi_name chardet |
---|
[521] | 2 | |
---|
| 3 | Name: python-chardet |
---|
[11940] | 4 | Version: 3.0.4 |
---|
[12469] | 5 | Release: 2%{?_dist_release} |
---|
[521] | 6 | Summary: Character encoding auto-detection in Python |
---|
| 7 | Summary(ja): Python で文字エンコーディングを自動検出 |
---|
[12469] | 8 | Group: programming |
---|
| 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
[521] | 11 | |
---|
| 12 | License: LGPLv2 |
---|
[7634] | 13 | URL: https://pypi.python.org/pypi/chardet |
---|
| 14 | Source0: https://pypi.python.org/packages/source/c/chardet/chardet-%{version}.tar.gz |
---|
[521] | 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | |
---|
| 17 | BuildArch: noarch |
---|
[12469] | 18 | BuildRequires: python-rpm-macros |
---|
| 19 | BuildRequires: python-devel, python-setuptools, python2-rpm-macros |
---|
[11940] | 20 | BuildRequires: python3-devel, python3-setuptools, python3-rpm-macros |
---|
[521] | 21 | |
---|
| 22 | %description |
---|
| 23 | Character encoding auto-detection in Python. As |
---|
| 24 | smart as your browser. Open source. |
---|
| 25 | |
---|
[12469] | 26 | |
---|
[11940] | 27 | %package -n python3-%{pypi_name} |
---|
| 28 | Summary: Character encoding auto-detection in Python 3 |
---|
| 29 | Summary(ja): Python で文字エンコーディングを自動検出 |
---|
[12469] | 30 | Group: programming |
---|
[11940] | 31 | |
---|
| 32 | %description -n python3-%{pypi_name} |
---|
| 33 | Character encoding auto-detection in Python. As |
---|
| 34 | smart as your browser. Open source. |
---|
| 35 | |
---|
[12469] | 36 | |
---|
[521] | 37 | %prep |
---|
[7634] | 38 | %setup -q -n chardet-%{version} |
---|
[11940] | 39 | sed -ie '1d' %{pypi_name}/cli/chardetect.py |
---|
[521] | 40 | |
---|
| 41 | |
---|
| 42 | %build |
---|
[12469] | 43 | %py2_build |
---|
| 44 | %py3_build |
---|
[521] | 45 | |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | rm -rf $RPM_BUILD_ROOT |
---|
[12469] | 49 | %py2_install |
---|
| 50 | mv $RPM_BUILD_ROOT%{_bindir}/{,python2-}chardetect |
---|
| 51 | %py3_install |
---|
[11940] | 52 | |
---|
[521] | 53 | |
---|
| 54 | %clean |
---|
| 55 | rm -rf $RPM_BUILD_ROOT |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | %files |
---|
| 59 | %defattr(-,root,root,-) |
---|
[11940] | 60 | %{!?_licensedir:%global license %%doc} |
---|
| 61 | %license LICENSE |
---|
| 62 | %doc README.rst |
---|
[521] | 63 | # For noarch packages: sitelib |
---|
[12469] | 64 | %{_bindir}/python2-chardetect |
---|
[521] | 65 | %{python_sitelib}/* |
---|
| 66 | |
---|
[11940] | 67 | %files -n python3-%{pypi_name} |
---|
| 68 | %{!?_licensedir:%global license %%doc} |
---|
| 69 | %license LICENSE |
---|
| 70 | %doc README.rst |
---|
| 71 | %{python3_sitelib}/* |
---|
[12469] | 72 | %{_bindir}/chardetect |
---|
[521] | 73 | |
---|
[12469] | 74 | |
---|
[521] | 75 | %changelog |
---|
[12469] | 76 | * Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.4-2 |
---|
| 77 | - rebuilt with python-3.8. |
---|
| 78 | |
---|
[11940] | 79 | * Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.4-1 |
---|
| 80 | - new upstream release. |
---|
| 81 | - added python3 support. |
---|
| 82 | |
---|
[9546] | 83 | * Wed May 06 2015 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.3.0-1 |
---|
| 84 | - new upstream release |
---|
| 85 | |
---|
[8154] | 86 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.1-1 |
---|
| 87 | - new upstream release |
---|
| 88 | |
---|
[7634] | 89 | * Sun Apr 28 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.1.1-1 |
---|
| 90 | - new upstream release |
---|
| 91 | - changed Source0 and URL |
---|
| 92 | |
---|
[5701] | 93 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-4 |
---|
| 94 | - rebuild with python-2.7.2 |
---|
| 95 | |
---|
[1951] | 96 | * Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-3 |
---|
| 97 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 98 | |
---|
[521] | 99 | * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-2 |
---|
| 100 | - rebuilt with python-2.6.4 |
---|
| 101 | |
---|
| 102 | * Mon Nov 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-1 |
---|
| 103 | - new upstream release |
---|
| 104 | - fixed Japanese summary |
---|
| 105 | |
---|
| 106 | * Mon Sep 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.1-1 |
---|
| 107 | - initial build for VineSeed |
---|
| 108 | |
---|
| 109 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2 |
---|
| 110 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 111 | |
---|
| 112 | * Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.0.1-1 |
---|
| 113 | - Initial release |
---|
| 114 | |
---|