Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1bda5ea3bd | ||
|
|
b353576a95 | ||
|
|
6006a06b6b | ||
|
|
a9118fca87 | ||
|
|
18ae2d91c7 | ||
|
|
5fc36131e4 | ||
|
|
9e69c6dbb7 |
4 changed files with 56 additions and 21 deletions
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
21
Makefile
21
Makefile
|
|
@ -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 $$/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)
|
|
||||||
55
python-chardet.spec
Normal file
55
python-chardet.spec
Normal file
|
|
@ -0,0 +1,55 @@
|
||||||
|
# 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}.1
|
||||||
|
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 Apr 20 2009 Kushal Das <kushal@fedoraproject.org> 1.0.1-1.1
|
||||||
|
- fixing changelog
|
||||||
|
|
||||||
|
* Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.0.1-1
|
||||||
|
- Initial release
|
||||||
|
|
||||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
||||||
|
f8c510a6fac300fe0ac9a0c24a76a7ba chardet-1.0.1.tgz
|
||||||
Loading…
Add table
Add a link
Reference in a new issue