source: projects/specs/trunk/p/python-chardet/python-chardet-vl.spec @ 12545

Revision 12545, 3.0 KB checked in by tomop, 3 years ago (diff)

rpm-4.16.1.2-1 and requirements

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