]> git.pld-linux.org Git - packages/abrt.git/commitdiff
- added pythondir patch (install python module to arch-specific dir); no longer noarch
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 27 Sep 2013 17:57:18 +0000 (19:57 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 27 Sep 2013 17:57:18 +0000 (19:57 +0200)
abrt-pythondir.patch [new file with mode: 0644]
abrt.spec

diff --git a/abrt-pythondir.patch b/abrt-pythondir.patch
new file mode 100644 (file)
index 0000000..d51e3c2
--- /dev/null
@@ -0,0 +1,10 @@
+--- 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
index 14d4f242ecce95c6988ea6128f9a35176c621db0..d46e8c57e9b34e48f5781fd7fb19c8a0f13a36f0 100644 (file)
--- a/abrt.spec
+++ b/abrt.spec
@@ -17,6 +17,7 @@ Patch0:               %{name}-rpm5.patch
 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
@@ -261,9 +262,6 @@ Summary:    ABRT Python API
 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
@@ -398,6 +396,7 @@ się do powłoki.
 %endif
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 %{__libtoolize}
@@ -431,6 +430,7 @@ cat >$RPM_BUILD_ROOT/usr/lib/tmpfiles.d/abrt.conf <<EOF
 /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
 
@@ -684,7 +684,9 @@ fi
 
 %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}
 
This page took 0.149348 seconds and 4 git commands to generate.