From 407b16ffc56021ef2e110e00f492a89d0c8b7430 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Jun 19 2009 07:16:08 +0000 Subject: Initial commit. --- diff --git a/.cvsignore b/.cvsignore index e69de29..aae4771 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +urllib2_kerberos-0.1.6.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..3ef8055 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +python-urllib2_kerberos-0_1_6-3_fc11:HEAD:python-urllib2_kerberos-0.1.6-3.fc11.src.rpm:1245395575 diff --git a/python-urllib2_kerberos.spec b/python-urllib2_kerberos.spec new file mode 100644 index 0000000..4f4a46a --- /dev/null +++ b/python-urllib2_kerberos.spec @@ -0,0 +1,54 @@ +# sitelib for noarch packages, sitearch for others (remove the unneeded one) +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%define srcname urllib2_kerberos + +Name: python-%{srcname} +Version: 0.1.6 +Release: 3%{?dist} +Summary: Kerberos over HTTP Negotiate/SPNEGO support for urllib2 + +Group: Development/Languages +License: ASL 2.0 +URL: http://pypi.python.org/pypi/%{srcname}/ +Source0: http://pypi.python.org/packages/source/u/%{srcname}/%{srcname}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: python-devel +BuildRequires: python-setuptools-devel + +%description +urllib2 with kerberos authentication. + +%prep +%setup -q -n %{srcname}-%{version} +tail -n +2 urllib2_kerberos.py >patched-urllib2_kerberos.py +mv patched-urllib2_kerberos.py urllib2_kerberos.py + +%build +%{__python} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{python_sitelib}/* + + +%changelog +* Thu Jun 18 2009 Matěj Cepl - 0.1.6-3 +- don't preserve attributes of the file you modified. + +* Wed Jun 17 2009 Matěj Cepl - 0.1.6-2 +- add BuildRequires: python-setuptools-devel. + +* Thu Jun 11 2009 Matěj Cepl - 0.1.6-1 +- Initial packaging effort diff --git a/sources b/sources index e69de29..0420f79 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9a22d5d243103e17ca0ccf64b51f54ec urllib2_kerberos-0.1.6.tar.gz