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

Revision 9546, 2.4 KB checked in by kudoh, 9 years ago (diff)

new upstream release

Line 
1# sitelib for noarch packages, sitearch for others (remove the unneeded one)
2%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
4
5Name:           python-chardet
6Version:        2.3.0
7Release:        1%{?_dist_release}
8Summary:        Character encoding auto-detection in Python
9Summary(ja):    Python で文字エンコーディングを自動検出
10
11Group:          Development/Languages
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-devel, python-setuptools
19
20Vendor: Project Vine
21Distribution: Vine Linux
22
23%description
24Character encoding auto-detection in Python. As
25smart as your browser. Open source.
26
27%prep
28%setup -q -n chardet-%{version}
29
30
31
32%build
33# Remove CFLAGS=... for noarch packages (unneeded)
34%{__python} setup.py build
35
36
37%install
38rm -rf $RPM_BUILD_ROOT
39%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
40 
41%clean
42rm -rf $RPM_BUILD_ROOT
43
44
45%files
46%defattr(-,root,root,-)
47%doc LICENSE
48# For noarch packages: sitelib
49%{_bindir}/chardetect
50%{python_sitelib}/*
51
52
53%changelog
54* Wed May 06 2015 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.3.0-1
55- new upstream release
56
57* Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.1-1
58- new upstream release
59
60* Sun Apr 28 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.1.1-1
61- new upstream release
62- changed Source0 and URL
63
64* Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-4
65- rebuild with python-2.7.2
66
67* Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-3
68- rebuilt with rpm-4.8.1 for pkg-config
69
70* Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-2
71- rebuilt with python-2.6.4
72
73* Mon Nov 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-1
74- new upstream release
75- fixed Japanese summary
76
77* Mon Sep 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.1-1
78- initial build for VineSeed
79
80* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
81- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
82
83* Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.0.1-1
84- Initial release
85
Note: See TracBrowser for help on using the repository browser.