3 %bcond_without tests # test suite
5 Summary: D-Feet - a D-Bus debugger
6 Summary(pl.UTF-8): D-Feet - debugger dla magistrali D-Bus
11 Group: X11/Applications
12 Source0: https://download.gnome.org/sources/d-feet/0.3/%{name}-%{version}.tar.xz
13 # Source0-md5: c5cc09323c725210b0c420e40fb81e4c
14 Patch0: %{name}-cleanup.patch
15 URL: https://wiki.gnome.org/Apps/DFeet
16 BuildRequires: gobject-introspection-devel >= 0.9.6
17 BuildRequires: gtk+3-devel >= 3.10
18 BuildRequires: meson >= 0.50.0
19 BuildRequires: ninja >= 1.5
20 BuildRequires: pkgconfig
21 BuildRequires: python3-devel >= 1:3.5
22 %{?with_tests:BuildRequires: python3-pep8}
23 BuildRequires: rpm-pythonprov
24 BuildRequires: rpmbuild(macros) >= 1.736
25 BuildRequires: tar >= 1:1.22
27 BuildRequires: yelp-tools
28 Requires(post,postun): desktop-file-utils
29 Requires(post,postun): glib2-devel >= 1:2.26.0
30 Requires(post,postun): gtk-update-icon-cache
31 Requires(post,postun): hicolor-icon-theme
32 Requires: gtk+3 >= 3.10
33 Requires: python3 >= 1:3.5
34 Requires: python3-pygobject3 >= 3.4
35 Suggests: libwnck >= 3.0
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 D-Feet is a D-Bus debugger.
42 %description -l pl.UTF-8
43 D-Feet to debugger dla magistrali D-Bus.
51 %{!?with_tests:-Dtests=false}
56 rm -rf $RPM_BUILD_ROOT
58 %ninja_install -C build
60 # meson is so great, "pure: true" for python.install_sources doesn't work
61 install -d $RPM_BUILD_ROOT%{py3_sitescriptdir}
62 %{__mv} $RPM_BUILD_ROOT%{py3_sitedir}/dfeet $RPM_BUILD_ROOT%{py3_sitescriptdir}
63 %py3_comp $RPM_BUILD_ROOT%{py3_sitescriptdir}
64 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir}
66 %find_lang %{name} --with-gnome
69 rm -rf $RPM_BUILD_ROOT
73 %update_desktop_database_post
74 %update_icon_cache hicolor
78 %update_desktop_database_postun
79 %update_icon_cache hicolor
81 %files -f %{name}.lang
82 %defattr(644,root,root,755)
83 %doc AUTHORS NEWS README.md TODO
84 %attr(755,root,root) %{_bindir}/d-feet
86 %{_datadir}/glib-2.0/schemas/org.gnome.dfeet.gschema.xml
87 %{_datadir}/metainfo/org.gnome.dfeet.appdata.xml
88 %{py3_sitescriptdir}/dfeet
89 %{_desktopdir}/org.gnome.dfeet.desktop
90 %{_iconsdir}/hicolor/16x16/apps/dfeet-*.png
91 %{_iconsdir}/hicolor/scalable/apps/org.gnome.dfeet.svg
92 %{_iconsdir}/hicolor/symbolic/apps/org.gnome.dfeet-symbolic.svg