]>
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 | |
e37044c1 JB |
8 | Version: 1.3.1 |
9 | Release: 1 | |
03a042be JB |
10 | License: GPL v2+ |
11 | Group: Applications/System | |
e37044c1 JB |
12 | #Source0Download: https://github.com/abrt/gnome-abrt/releases |
13 | Source0: https://github.com/abrt/gnome-abrt/archive/%{version}/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: 2529440838d44afe7c4696e2f76b4986 | |
15 | URL: https://github.com/abrt/abrt/wiki/gnome-abrt | |
16 | BuildRequires: abrt-devel >= 2.4.0 | |
03a042be | 17 | BuildRequires: asciidoc |
b2c3a5da | 18 | BuildRequires: gettext-tools >= 0.17 |
03a042be | 19 | BuildRequires: gtk+3-devel >= 3.0 |
e37044c1 JB |
20 | BuildRequires: libreport-gtk-devel >= 2.4.0 |
21 | BuildRequires: meson >= 0.51.0 | |
22 | BuildRequires: ninja >= 1.5 | |
03a042be JB |
23 | BuildRequires: pkgconfig |
24 | %{?with_tests:BuildRequires: pylint} | |
23131381 | 25 | BuildRequires: python3-devel >= 1:3.4 |
44e1f915 | 26 | %{?with_tests:BuildRequires: python3-libreport} |
e37044c1 | 27 | BuildRequires: python3-pygobject3-devel >= 3.29.1 |
ad30d5d2 | 28 | BuildRequires: rpmbuild(macros) >= 1.596 |
e8510905 | 29 | BuildRequires: sed >= 4.0 |
03a042be | 30 | BuildRequires: xmlto |
ad30d5d2 | 31 | Requires(post,postun): gtk-update-icon-cache |
5eec88c3 | 32 | Requires: abrt-dbus |
e37044c1 | 33 | Requires: abrt-gui-libs >= 2.4.0 |
ad30d5d2 | 34 | Requires: hicolor-icon-theme |
e37044c1 | 35 | Requires: libreport-gtk >= 2.4.0 |
44e1f915 | 36 | Requires: python3-dbus |
e37044c1 JB |
37 | Requires: python3-libreport >= 2.4.0 |
38 | Requires: python3-pygobject3 >= 3.29.1 | |
44e1f915 | 39 | Requires: python3-pyinotify |
03a042be JB |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | A GNOME application allows users to browse through detected problems | |
44 | and provides them with convenient way for managing these problems. | |
45 | ||
46 | %description -l pl.UTF-8 | |
47 | Aplikacja GNOME pozwalająca użytkownikom przeglądać wykryte problemy i | |
48 | zapewniająca wygodny sposób zarządzania tymi problemami. | |
49 | ||
50 | %prep | |
51 | %setup -q | |
a9208238 | 52 | |
03a042be | 53 | %build |
e37044c1 JB |
54 | %meson build \ |
55 | %{!?with_tests:-Dlint=false} | |
03a042be | 56 | |
e37044c1 | 57 | %ninja_build -C build |
03a042be | 58 | |
e37044c1 JB |
59 | %if %{with tests} |
60 | %ninja_test -C build | |
61 | %endif | |
03a042be JB |
62 | |
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
03a042be | 65 | |
e37044c1 | 66 | %ninja_install -C build |
03a042be | 67 | |
e37044c1 JB |
68 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} |
69 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
03a042be | 70 | |
a9208238 | 71 | %find_lang %{name} |
e37044c1 | 72 | |
03a042be JB |
73 | %clean |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post | |
77 | %update_icon_cache hicolor | |
78 | ||
79 | %postun | |
80 | %update_icon_cache hicolor | |
81 | ||
82 | %files -f %{name}.lang | |
83 | %defattr(644,root,root,755) | |
e37044c1 | 84 | %doc README.md |
03a042be | 85 | %attr(755,root,root) %{_bindir}/gnome-abrt |
44e1f915 JB |
86 | %dir %{py3_sitedir}/gnome_abrt |
87 | %{py3_sitedir}/gnome_abrt/*.py | |
88 | %{py3_sitedir}/gnome_abrt/__pycache__ | |
89 | %dir %{py3_sitedir}/gnome_abrt/url | |
90 | %{py3_sitedir}/gnome_abrt/url/*.py | |
91 | %{py3_sitedir}/gnome_abrt/url/__pycache__ | |
92 | %dir %{py3_sitedir}/gnome_abrt/wrappers | |
93 | %{py3_sitedir}/gnome_abrt/wrappers/__init__.py | |
94 | %{py3_sitedir}/gnome_abrt/wrappers/__pycache__ | |
e37044c1 | 95 | %attr(755,root,root) %{py3_sitedir}/gnome_abrt/wrappers/_wrappers.cpython-*.so |
03a042be | 96 | %{_datadir}/gnome-abrt |
e37044c1 JB |
97 | %{_datadir}/metainfo/org.freedesktop.GnomeAbrt.appdata.xml |
98 | %{_desktopdir}/org.freedesktop.GnomeAbrt.desktop | |
99 | %{_iconsdir}/hicolor/scalable/apps/org.freedesktop.GnomeAbrt.svg | |
100 | %{_iconsdir}/hicolor/symbolic/apps/org.freedesktop.GnomeAbrt-symbolic.svg | |
77732c33 | 101 | %{_mandir}/man1/gnome-abrt.1* |