SPECS: python-encutils.spec (NEW) - initial PLD release

luzik luzik at pld-linux.org
Sun Aug 31 17:39:33 CEST 2008


Author: luzik                        Date: Sun Aug 31 15:39:33 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial PLD release

---- Files affected:
SPECS:
   python-encutils.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/python-encutils.spec
diff -u /dev/null SPECS/python-encutils.spec:1.1
--- /dev/null	Sun Aug 31 17:39:33 2008
+++ SPECS/python-encutils.spec	Sun Aug 31 17:39:28 2008
@@ -0,0 +1,60 @@
+# $Revision$, $Date$
+%define		module	encutils
+Summary:	A collection of helper functions to detect encodings of text files
+Summary(pl.UTF-8):	Kolekcja funkcji wykrywającej kodowanie plików tekstowych
+Name:		python-%{module}
+Version:	0.8.3
+Release:	1
+License:	LGPL v2.1
+Group:		Libraries/Python
+Source0:	http://cheeseshop.python.org/packages/source/e/encutils/%{module}-%{version}.zip
+# Source0-md5:	691785da7babf1af4c051977a4c97a1f
+URL:		http://cthedot.de/encutils/
+BuildRequires:	python-devel >= 1:2.5
+BuildRequires:	python-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.174
+%pyrequires_eq	python-modules
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A collection of helper functions to detect encodings of text files
+(like HTML, XHTML, XML, CSS, etc.) retrieved via HTTP, file or string.
+
+%description -l pl.UTF-8
+Kolekcja funkcji wykrywającej kodowanie plików tekstowych (HTML,
+XHTML, XML, CSS, etc.) pobranych przez HTTP, plik lub ciąg znaków.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+python setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+python setup.py install \
+        --single-version-externally-managed \
+	--optimize=2 \
+	--root $RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt
+%dir %{py_sitescriptdir}/encutils
+%attr(755,root,root) %{py_sitescriptdir}/encutils/*.py[co]
+%{py_sitescriptdir}/*.egg-info
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008/08/31 15:39:28  luzik
+- initial PLD release
+
================================================================


More information about the pld-cvs-commit mailing list