diff --git a/python-urlgrabber.changes b/python-urlgrabber.changes index 314bcd1..e19046f 100644 --- a/python-urlgrabber.changes +++ b/python-urlgrabber.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Aug 12 20:10:37 CEST 2009 - matejcik@suse.cz + +- build as noarch on newer distros +- switched filelist to --record-rpm + ------------------------------------------------------------------- Mon Aug 10 14:06:55 CEST 2009 - coolo@novell.com diff --git a/python-urlgrabber.spec b/python-urlgrabber.spec index 4abcee1..7b34c06 100644 --- a/python-urlgrabber.spec +++ b/python-urlgrabber.spec @@ -23,7 +23,7 @@ Name: python-urlgrabber # error message: AttributeError: 'module' object has no attribute 'HTTPSHandler' BuildRequires: python python-devel Version: 3.1.0 -Release: 179 +Release: 180 Summary: A high-level cross-protocol url-grabber Group: Development/Libraries/Python License: LGPL @@ -33,6 +33,9 @@ Patch: %{name}-2.9.9.patch Patch1: %{name}-3.1.0.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %py_requires +%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} +BuildArch: noarch +%endif %description A high-level cross-protocol url-grabber for python supporting HTTP, FTP @@ -56,21 +59,13 @@ export CFLAGS="$RPM_OPT_FLAGS" python setup.py build %install -python setup.py install --prefix=%{_prefix} --root $RPM_BUILD_ROOT +python setup.py install --prefix=%{_prefix} --root $RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES %clean rm -rf $RPM_BUILD_ROOT -%files +%files -f INSTALLED_FILES %defattr(-,root,root,-) %doc ChangeLog LICENSE README TODO -%{_bindir}/urlgrabber -%if %suse_version > 1110 -%{python_sitelib}/urlgrabber -%{python_sitelib}/*.egg-info -%else -%{py_sitedir}/urlgrabber -%{py_sitedir}/*.egg-info -%endif %changelog