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

Revision 7634, 2.2 KB checked in by kudoh, 11 years ago (diff)

--force-log

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.1.1
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
20%description
21Character encoding auto-detection in Python. As
22smart as your browser. Open source.
23
24%prep
25%setup -q -n 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%{_bindir}/chardetect.py
48%{python_sitelib}/*
49
50
51%changelog
52* Sun Apr 28 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.1.1-1
53- new upstream release
54- changed Source0 and URL
55
56* Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-4
57- rebuild with python-2.7.2
58
59* Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-3
60- rebuilt with rpm-4.8.1 for pkg-config
61
62* Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-2
63- rebuilt with python-2.6.4
64
65* Mon Nov 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-1
66- new upstream release
67- fixed Japanese summary
68
69* Mon Sep 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.1-1
70- initial build for VineSeed
71
72* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
73- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
74
75* Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.0.1-1
76- Initial release
77
Note: See TracBrowser for help on using the repository browser.