]>
Commit | Line | Data |
---|---|---|
03a042be JB |
1 | # |
2 | # Conditional build: | |
11bdae2f | 3 | %bcond_with tests # "make check" run (some pylint false positive?) |
e4d779b7 | 4 | |
03a042be JB |
5 | Summary: A utility for viewing problems that have occurred with the system |
6 | Summary(pl.UTF-8): Narzędzie do przeglądania problemów, które wystąpiły w systemie | |
7 | Name: gnome-abrt | |
23131381 | 8 | Version: 1.2.0 |
44e1f915 | 9 | Release: 1 |
03a042be JB |
10 | License: GPL v2+ |
11 | Group: Applications/System | |
12 | Source0: https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz | |
23131381 | 13 | # Source0-md5: 9b2d3e364e735f6a7401a84462951232 |
11bdae2f | 14 | Patch0: %{name}-pylint.patch |
f4c1c4a3 | 15 | URL: https://github.com/abrt/abrt/wiki/ABRT-Project |
a4b53cf6 | 16 | BuildRequires: abrt-gui-devel >= 2.1.7 |
03a042be | 17 | BuildRequires: asciidoc |
b2c3a5da | 18 | BuildRequires: gettext-tools >= 0.17 |
03a042be JB |
19 | BuildRequires: gtk+3-devel >= 3.0 |
20 | BuildRequires: intltool >= 0.35.0 | |
77732c33 | 21 | BuildRequires: libreport-gtk-devel >= 2.0.20 |
03a042be JB |
22 | BuildRequires: pkgconfig |
23 | %{?with_tests:BuildRequires: pylint} | |
23131381 | 24 | BuildRequires: python3-devel >= 1:3.4 |
44e1f915 JB |
25 | %{?with_tests:BuildRequires: python3-libreport} |
26 | BuildRequires: python3-pygobject3-devel >= 3.0 | |
ad30d5d2 | 27 | BuildRequires: rpmbuild(macros) >= 1.596 |
e8510905 | 28 | BuildRequires: sed >= 4.0 |
03a042be | 29 | BuildRequires: xmlto |
23131381 | 30 | BuildRequires: xorg-lib-libX11-devel |
ad30d5d2 | 31 | Requires(post,postun): gtk-update-icon-cache |
5eec88c3 | 32 | Requires: abrt-dbus |
a4b53cf6 | 33 | Requires: abrt-gui-libs >= 2.1.7 |
ad30d5d2 | 34 | Requires: hicolor-icon-theme |
44e1f915 JB |
35 | Requires: python3-dbus |
36 | Requires: python3-libreport | |
37 | Requires: python3-pygobject3 >= 3.0 | |
38 | Requires: python3-pyinotify | |
03a042be JB |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %description | |
42 | A GNOME application allows users to browse through detected problems | |
43 | and provides them with convenient way for managing these problems. | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | Aplikacja GNOME pozwalająca użytkownikom przeglądać wykryte problemy i | |
47 | zapewniająca wygodny sposób zarządzania tymi problemami. | |
48 | ||
49 | %prep | |
50 | %setup -q | |
11bdae2f | 51 | %patch0 -p1 |
03a042be | 52 | |
e8510905 JB |
53 | %{__sed} -i -e '1s,#!/usr/bin/env python,#!/usr/bin/python,' src/gnome-abrt |
54 | ||
03a042be JB |
55 | %build |
56 | %configure \ | |
e8510905 JB |
57 | --disable-silent-rules \ |
58 | %{!?with_tests:--with-nopylint} | |
03a042be JB |
59 | |
60 | %{__make} | |
61 | ||
62 | %{?with_tests:%{__make} check} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | %{__make} install \ | |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
44e1f915 | 69 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/gnome_abrt/wrappers/*.la |
03a042be JB |
70 | %py_postclean |
71 | ||
72 | # just a copy of cs | |
5eec88c3 | 73 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cs_CZ |
03a042be JB |
74 | |
75 | %find_lang %{name} | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post | |
81 | %update_icon_cache hicolor | |
82 | ||
83 | %postun | |
84 | %update_icon_cache hicolor | |
85 | ||
86 | %files -f %{name}.lang | |
87 | %defattr(644,root,root,755) | |
88 | %attr(755,root,root) %{_bindir}/gnome-abrt | |
44e1f915 JB |
89 | %dir %{py3_sitedir}/gnome_abrt |
90 | %{py3_sitedir}/gnome_abrt/*.py | |
91 | %{py3_sitedir}/gnome_abrt/__pycache__ | |
92 | %dir %{py3_sitedir}/gnome_abrt/url | |
93 | %{py3_sitedir}/gnome_abrt/url/*.py | |
94 | %{py3_sitedir}/gnome_abrt/url/__pycache__ | |
95 | %dir %{py3_sitedir}/gnome_abrt/wrappers | |
96 | %{py3_sitedir}/gnome_abrt/wrappers/__init__.py | |
97 | %{py3_sitedir}/gnome_abrt/wrappers/__pycache__ | |
98 | %attr(755,root,root) %{py3_sitedir}/gnome_abrt/wrappers/_wrappers.so | |
03a042be | 99 | %{_datadir}/gnome-abrt |
a4b53cf6 | 100 | %{_datadir}/appdata/gnome-abrt.appdata.xml |
03a042be | 101 | %{_desktopdir}/gnome-abrt.desktop |
23131381 JB |
102 | %{_iconsdir}/hicolor/*x*/apps/gnome-abrt.png |
103 | %{_iconsdir}/hicolor/*x*/status/gnome-abrt.png | |
104 | %{_iconsdir}/hicolor/symbolic/apps/gnome-abrt-symbolic.svg | |
77732c33 | 105 | %{_mandir}/man1/gnome-abrt.1* |