From 6ea76c1b0a6e22a9c067437fe9c6cd898565db8041ab14a642a3f6e211292600 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 25 May 2012 10:05:40 +0000 Subject: [PATCH] Accepting request 122328 from devel:languages:python3 - Fix building on openSUSE 11.4 - spec file cleanups (forwarded request 122327 from TheBlackCat) OBS-URL: https://build.opensuse.org/request/show/122328 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-decorator?expand=0&rev=14 --- python3-decorator.changes | 6 ++++++ python3-decorator.spec | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/python3-decorator.changes b/python3-decorator.changes index 4b5f782..a4e9612 100644 --- a/python3-decorator.changes +++ b/python3-decorator.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 25 08:33:12 UTC 2012 - toddrme2178@gmail.com + +- Fix building on openSUSE 11.4 +- spec file cleanups + ------------------------------------------------------------------- Wed May 23 07:56:47 UTC 2012 - highwaystar.ru@gmail.com diff --git a/python3-decorator.spec b/python3-decorator.spec index f64d818..6c019ec 100644 --- a/python3-decorator.spec +++ b/python3-decorator.spec @@ -65,12 +65,17 @@ python3 setup.py build %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +%if 0%{?suse_version} > 1210 +rm -r %{buildroot}%{python3_sitelib}/__pycache__/ +%endif %files %defattr(-,root,root,-) %doc README.txt -%{python3_sitelib}/decorator.py -%{python3_sitelib}/decorator.pyc +%{python3_sitelib}/decorator.py* %{python3_sitelib}/decorator-%{version}-py%{py3_ver}.egg-info +%if 0%{?suse_version} <= 1140 +%dir %{_prefix}/lib/python%{py3_ver} +%endif %changelog