diff --git a/python-reportlab.changes b/python-reportlab.changes index ac5e92c..9f4265e 100644 --- a/python-reportlab.changes +++ b/python-reportlab.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 20 13:57:44 UTC 2011 - saschpe@suse.de + +- Fix non-executable bit rpmlint warning + ------------------------------------------------------------------- Mon May 30 15:16:43 UTC 2011 - alexandre@exatati.com.br diff --git a/python-reportlab.spec b/python-reportlab.spec index 6082b9c..715384a 100644 --- a/python-reportlab.spec +++ b/python-reportlab.spec @@ -11,24 +11,18 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. - +# # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} - -%define mod_name reportlab - -Name: python-%{mod_name} +Name: python-reportlab Version: 2.5 -Release: 3 +Release: 0 Url: http://www.reportlab.com/ Summary: The Reportlab Toolkit License: BSD Group: Development/Languages/Python -Source: %{mod_name}-%{version}.tar.bz2 +Source: reportlab-%{version}.tar.bz2 Patch0: reportlab-missing-includes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: freetype2-devel @@ -36,23 +30,24 @@ BuildRequires: python-devel BuildRequires: python-imaging BuildRequires: python-xml Requires: python-imaging -Provides: python-ReportLab = %{version}-%{release} +Provides: python-ReportLab = %{version} Obsoletes: python-ReportLab < %{version} %if 0%{?suse_version} %py_requires %endif +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %description The ReportLab Toolkit. An Open Source Python library for generating PDFs and graphics. %prep -%setup -q -n %{mod_name}-%{version} +%setup -q -n reportlab-%{version} %patch0 +sed -i "1d" src/reportlab/lib/{formatters,fonts,set_ops,corp,units,pagesizes,__init__,randomtext,logger,normalDate}.py +sed -i "1d" src/reportlab/graphics/{widgets/table,barcode/test,testdrawings,testshapes}.py # Fix non-executable bits %build -export CFLAGS="%{optflags}" -python setup.py tests-preinstall -python setup.py build +CFLAGS="%{optflags}" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} @@ -60,16 +55,9 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} %check python setup.py tests -%clean -rm -rf %{buildroot} - %files %defattr(-,root,root,-) %doc CHANGES.txt README.txt -%python_sitearch/%{mod_name}* -%python_sitearch/_rl_accel.so -%python_sitearch/pyHnj.so -%python_sitearch/sgmlop.so -%python_sitearch/_renderPM.so +%{python_sitearch}/* %changelog