You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.4 KiB
80 lines
2.4 KiB
5 years ago
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||
|
|
||
|
Name: python-chardet
|
||
|
Version: 2.2.1
|
||
|
Release: 1%{?dist}
|
||
|
Summary: Character encoding auto-detection in Python
|
||
|
|
||
|
Group: Development/Languages
|
||
|
License: LGPLv2
|
||
|
URL: http://chardet.feedparser.org
|
||
|
Source0: https://pypi.python.org/packages/source/c/chardet/chardet-2.2.1.tar.gz
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
|
|
||
|
BuildArch: noarch
|
||
|
BuildRequires: python-devel, python-setuptools
|
||
|
|
||
|
%description
|
||
|
Character encoding auto-detection in Python. As
|
||
|
smart as your browser. Open source.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n chardet-%{version}
|
||
|
sed -ie '1d' chardet/chardetect.py
|
||
|
|
||
|
|
||
|
|
||
|
%build
|
||
|
# Remove CFLAGS=... for noarch packages (unneeded)
|
||
|
%{__python} setup.py build
|
||
|
|
||
|
|
||
|
%install
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc LICENSE README.rst
|
||
|
# For noarch packages: sitelib
|
||
|
%{python_sitelib}/*
|
||
|
%{_bindir}/chardetect
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Mon Jun 01 2015 Matej Stuchlik <mstuchli@redhat.com> - 2.2.1-1
|
||
|
- Update to 2.2.1
|
||
|
Resolves: rhbz#1233113
|
||
|
|
||
|
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0.1-7
|
||
|
- Mass rebuild 2013-12-27
|
||
|
|
||
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-6
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||
|
|
||
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-5
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||
|
|
||
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-4
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||
|
|
||
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||
|
|
||
|
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 2.0.1-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||
|
|
||
|
* Wed Jan 13 2010 Kushal Das <kushal@fedoraproject.org> 2.0.1-1
|
||
|
- New release
|
||
|
|
||
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||
|
|
||
|
* Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.0.1-1
|
||
|
- Initial release
|
||
|
|