source: projects/specs/branches/6/p/python-chardet/python-chardet-vl.spec @ 1951

Revision 1951, 2.0 KB checked in by kudoh, 14 years ago (diff)
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.0.1
7Release:        3%{?_dist_release}
8Summary:        Character encoding auto-detection in Python
9Summary(ja):    Python で文字エンコーディングを自動検出
10
11Group:          Development/Languages
12License:        LGPLv2
13URL:            http://chardet.feedparser.org
14Source0:        http://chardet.feedparser.org/download/python2-chardet-%{version}.tgz
15BuildRoot:      %{_tmppath}/%{name}-%{version}-root
16
17BuildArch:      noarch
18BuildRequires:  python-devel, python-setuptools
19
20%description
21Character encoding auto-detection in Python. As
22smart as your browser. Open source.
23
24%prep
25%setup -q -n python2-chardet-%{version}
26
27
28
29%build
30# Remove CFLAGS=... for noarch packages (unneeded)
31%{__python} setup.py build
32
33
34%install
35rm -rf $RPM_BUILD_ROOT
36%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
37chmod -x COPYING
38 
39%clean
40rm -rf $RPM_BUILD_ROOT
41
42
43%files
44%defattr(-,root,root,-)
45%doc COPYING
46# For noarch packages: sitelib
47%{python_sitelib}/*
48
49
50%changelog
51* Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-3
52- rebuilt with rpm-4.8.1 for pkg-config
53
54* Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-2
55- rebuilt with python-2.6.4
56
57* Mon Nov 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-1
58- new upstream release
59- fixed Japanese summary
60
61* Mon Sep 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.1-1
62- initial build for VineSeed
63
64* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
65- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
66
67* Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.0.1-1
68- Initial release
69
Note: See TracBrowser for help on using the repository browser.