From 26385f4e334dfd54767d607b3281e646bd5b9507 Mon Sep 17 00:00:00 2001 From: Kushal Das Date: Sun, 12 Apr 2009 08:50:15 +0000 Subject: [PATCH] Found the long lost srpm, imported first time. --- .cvsignore | 1 + import.log | 1 + python-chardet.spec | 52 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 55 insertions(+) create mode 100644 import.log create mode 100644 python-chardet.spec diff --git a/.cvsignore b/.cvsignore index e69de29..339d719 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +chardet-1.0.1.tgz diff --git a/import.log b/import.log new file mode 100644 index 0000000..e1d33c6 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +python-chardet-1_0_1-1_fc9:HEAD:python-chardet-1.0.1-1.fc9.src.rpm:1239526287 diff --git a/python-chardet.spec b/python-chardet.spec new file mode 100644 index 0000000..16f9be5 --- /dev/null +++ b/python-chardet.spec @@ -0,0 +1,52 @@ +# sitelib for noarch packages, sitearch for others (remove the unneeded one) +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +Name: python-chardet +Version: 1.0.1 +Release: 1%{?dist} +Summary: Character encoding auto-detection in Python + +Group: Development/Languages +License: LGPLv2 +URL: http://chardet.feedparser.org +Source0: http://chardet.feedparser.org/download/chardet-%{version}.tgz +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} + + + +%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 +chmod -x COPYING + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc COPYING +# For noarch packages: sitelib +%{python_sitelib}/* + + +%changelog +* Mon Aug 04 2008 Kushal Das 1.0.1-1 +- Initial release + diff --git a/sources b/sources index e69de29..371cedf 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f8c510a6fac300fe0ac9a0c24a76a7ba chardet-1.0.1.tgz