diff --git a/.cvsignore b/.cvsignore index e69de29..f9c9575 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +zbase32-1.1.1.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..49cf7cd --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +python-zbase32-1_1_1-3_fc13:HEAD:python-zbase32-1.1.1-3.fc13.src.rpm:1265757115 diff --git a/python-zbase32.spec b/python-zbase32.spec new file mode 100644 index 0000000..205c326 --- /dev/null +++ b/python-zbase32.spec @@ -0,0 +1,66 @@ +%global libname zbase32 +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: python-%{libname} +Version: 1.1.1 +Release: 3%{?dist} +Summary: A base32 encoder/decoder + +Group: Development/Tools +License: BSD and LGPLv2 +URL: http://allmydata.org/trac/%{libname} +Source0: http://pypi.python.org/packages/source/z/%{libname}/%{libname}-%{version}.tar.gz +Patch0: zbase32-disable-darcs.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +# disabled until pyutil is approved +# Requires: pyutil +# BuildRequires: pyutil +BuildRequires: python-devel, python-argparse, python-setuptools + +%description +An alternate base32 encoder (not RFC 3548 compliant). + +%prep +%setup -q -n %{libname}-%{version} +# stop setuptools from looking for setuptools_darcs +%patch0 -p1 + + +%build +%{__python} setup.py build + + +%install +rm -rf %{buildroot} +python setup.py install -O1 --skip-build --root %{buildroot} + +chmod 0755 %{buildroot}%{python_sitelib}/%{libname}/test/test_%{libname}.py +chmod 0755 %{buildroot}%{python_sitelib}/%{libname}/%{libname}.py + + +%check +# disabled until pyutil is approved (#560457) +#python setup.py test + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc README +%{python_sitelib}/* + + +%changelog +* Tue Feb 09 2010 Ruben Kerkhof 1.1.1-2 +- Disable dependency on pyutil until that's approved (#560457) + +* Sun Jan 31 2010 Ruben Kerkhof 1.1.1-1 +- Initial import + diff --git a/sources b/sources index e69de29..b9a1495 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b46a97a869f4aa2932182cc555e2f7e1 zbase32-1.1.1.tar.gz diff --git a/zbase32-disable-darcs.patch b/zbase32-disable-darcs.patch new file mode 100644 index 0000000..eb225bb --- /dev/null +++ b/zbase32-disable-darcs.patch @@ -0,0 +1,16 @@ +diff -up zbase32-1.1.1/setup.py.orig zbase32-1.1.1/setup.py +--- zbase32-1.1.1/setup.py.orig 2010-02-09 17:13:42.000000000 +0100 ++++ zbase32-1.1.1/setup.py 2010-02-09 17:14:16.000000000 +0100 +@@ -70,12 +70,6 @@ else: + if 'darcsver' in sys.argv[1:]: + setup_requires.append('darcsver >= 1.0.0') + +-# setuptools_darcs is required to produce complete distributions (such as with +-# "sdist" or "bdist_egg"), unless there is a pyutil.egg-info/SOURCE.txt file +-# present which contains a complete list of files that should be included. +-# http://pypi.python.org/pypi/setuptools_darcs +-setup_requires.append('setuptools_darcs >= 1.1.0') +- + def _setup(test_suite): + setup(name=PKG, + version=verstr,