--- /dev/null
+--- abrt-2.1.7/src/python-problem/problem/Makefile.am.orig 2013-09-10 14:11:13.000000000 +0200
++++ abrt-2.1.7/src/python-problem/problem/Makefile.am 2013-09-27 19:40:42.648094557 +0200
+@@ -1,6 +1,6 @@
+ problem_PYTHON = __init__.py exception.py proxies.py tools.py watch.py config.py
+
+-problemdir = $(pythondir)/problem
++problemdir = $(pyexecdir)/problem
+
+ pyabrtdir = $(problemdir)
+ pyabrt_LTLIBRARIES = _pyabrt.la
Patch1: %{name}-rpm45.patch
Patch2: format_security.patch
Patch3: %{name}-link.patch
+Patch4: %{name}-pythondir.patch
URL: https://fedorahosted.org/abrt/
BuildRequires: asciidoc
BuildRequires: autoconf >= 2.50
Summary(pl.UTF-8): API Pythona do ABRT
Group: Libraries/Python
Requires: %{name} = %{version}-%{release}
-%if "%{_rpmversion}" >= "5.0"
-BuildArch: noarch
-%endif
%description python
High-level API for querying, creating and manipulating problems
%endif
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%build
%{__libtoolize}
/var/run/%{name} 0755 root root -
EOF
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/problem/*.la
# outdated copy of lt
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/lt_LT
%files python
%defattr(644,root,root,755)
-%{py_sitescriptdir}/problem
+%dir %{py_sitedir}/problem
+%attr(755,root,root) %{py_sitedir}/problem/_pyabrt.so
+%{py_sitedir}/problem/*.py[co]
%{_mandir}/man5/abrt-python.5*
%{_docdir}/abrt-python-%{version}