From f7e9f4517b73b644d177ef8f0a72653b38588912 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 11 Aug 2008 17:16:53 +0000 Subject: [PATCH 1/4] Initialize branch EL-5 for python-chardet --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..42f697a --- /dev/null +++ b/branch @@ -0,0 +1 @@ +EL-5 From e92bf0b5b4404e7692db118b670d70c6a43e845c Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:50:25 +0000 Subject: [PATCH 2/4] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6b7cfc1..90baab2 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NAME := python-chardet SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 143f32b9e6e58f6b3974a9f6ec8f83936c72d524 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 10:14:17 +0000 Subject: [PATCH 3/4] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 90baab2..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: python-chardet -# $Id$ -NAME := python-chardet -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index 42f697a..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -EL-5 From 2e8c3c354f435d4f88d4b638d214b5fa292acb17 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Tue, 5 Aug 2014 13:02:59 -0500 Subject: [PATCH 4/4] initial el5 build --- .gitignore | 1 + python-chardet.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 70 insertions(+) create mode 100644 python-chardet.spec diff --git a/.gitignore b/.gitignore index e69de29..6c0cf55 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/python2-chardet-2.0.1.tgz diff --git a/python-chardet.spec b/python-chardet.spec new file mode 100644 index 0000000..f651fd2 --- /dev/null +++ b/python-chardet.spec @@ -0,0 +1,68 @@ +%global __python2 /usr/bin/python2.6 +%global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") + +%global srcname python2-chardet +%global realname chardet + +Name: python-%{realname} +Version: 2.0.1 +Release: 2%{?dist} +Summary: Character encoding auto-detection in Python + +Group: Development/Languages +License: LGPLv2 +URL: http://chardet.feedparser.org +Source0: http://chardet.feedparser.org/download/%{srcname}-%{version}.tgz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: python26-devel +BuildRequires: python26-distribute +Requires: python26 + +%description +Character encoding auto-detection in Python. As smart as your browser. Open +source. + +%package -n python26-%{realname} +Summary: Character encoding auto-detection in Python +Group: Development/Languages +Requires: python26 + +%description -n python26-%{realname} +Character encoding auto-detection in Python. As smart as your browser. Open +source. + +%prep +%setup -q -n %{srcname}-%{version} + +%build +%{__python2} setup.py build + +%install +rm -rf %{buildroot} +%{__python2} setup.py install -O1 --skip-build --root %{buildroot} +chmod -x COPYING + +%clean +rm -rf %{buildroot} + +%files -n python26-%{realname} +%defattr(-,root,root,-) +%doc COPYING +%{python2_sitelib}/* + +%changelog +* Tue Aug 5 2010 Erik Johnson 2.0.1-2 +- Initial EL5 build + +* Wed Jan 13 2010 Kushal Das 2.0.1-1 +- New release + +* Sun Jul 26 2009 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Mon Aug 04 2008 Kushal Das 1.0.1-1 +- Initial release + diff --git a/sources b/sources index e69de29..6ba688c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ec771971bab5dd1943a10362ebd2fd4c python2-chardet-2.0.1.tgz