diff --git a/python-bugzilla.changes b/python-bugzilla.changes index 05c8938..eb414ba 100644 --- a/python-bugzilla.changes +++ b/python-bugzilla.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed May 22 12:13:06 UTC 2013 - speilicke@suse.com + +- Apply python-bugzilla-0.6.2-section.patch +- Cleanup spec file +- Package README + ------------------------------------------------------------------- Thu May 16 13:01:19 UTC 2013 - werner@suse.de diff --git a/python-bugzilla.spec b/python-bugzilla.spec index 80f5543..db6ec5a 100644 --- a/python-bugzilla.spec +++ b/python-bugzilla.spec @@ -28,13 +28,13 @@ Source: %{name}-%{version}-openSUSE-1.tar.bz2 # https://gitorious.org/opensuse/python-bugzilla Patch0: %{name}-0.6.2-novell-default.patch Patch1: %{name}-0.6.2-backtraces.patch - +Patch2: %{name}-0.6.2-section.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel -%if 0%{?suse_version} && 0%{?suse_version} > 1110 -BuildArch: noarch +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else -%{py_requires} +BuildArch: noarch %endif %description @@ -52,22 +52,22 @@ but gosh - why not just write something in Python instead? %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build -export CFLAGS="%{optflags}" -%{__python} setup.py build +CFLAGS="%{optflags}" python setup.py build %install -%{__python} setup.py install \ - --root=%{buildroot} \ - --prefix=%{_prefix} \ - --record-rpm=INSTALLED_FILES -sed -i 's#%{_mandir}/man1/bugzilla.1#%{_mandir}/man1/bugzilla.1.gz#' INSTALLED_FILES +python setup.py install --root=%{buildroot} --prefix=%{_prefix} +#\ --record-rpm=INSTALLED_FILES +#sed -i 's#%{_mandir}/man1/bugzilla.1#%{_mandir}/man1/bugzilla.1.gz#' INSTALLED_FILES -%clean -rm -rf %{buildroot} - -%files -f INSTALLED_FILES -%defattr(-,root,root,0755) +%files +%defattr(-,root,root,-) +%doc README +%{_bindir}/bugzilla +%{python_sitelib}/bugzilla +%{python_sitelib}/python_bugzilla-%{version}-py%{py_ver}.egg-info +%{_mandir}/man1/bugzilla.1.gz %changelog