]>
Commit | Line | Data |
---|---|---|
df29c4f1 PZ |
1 | Summary: D-Feet - a D-Bus debugger |
2 | Name: d-feet | |
735ea3e5 | 3 | Version: 0.1.10 |
a571093a | 4 | Release: 2 |
df29c4f1 | 5 | License: MIT |
f4be6b15 | 6 | Group: X11/Applications |
735ea3e5 PZ |
7 | Source0: http://johnp.fedorapeople.org/downloads/d-feet/%{name}-%{version}.tar.gz |
8 | # Source0-md5: c97df997442a99233229d45bff5ed88d | |
a571093a | 9 | Patch0: %{name}-desktop.patch |
735ea3e5 | 10 | URL: https://fedorahosted.org/d-feet/ |
df29c4f1 PZ |
11 | BuildRequires: python-devel >= 1:2.3.0 |
12 | BuildRequires: rpm-pythonprov | |
13 | BuildRequires: rpmbuild(macros) >= 1.219 | |
14 | %pyrequires_eq python-modules | |
df29c4f1 PZ |
15 | Requires(post,postun): desktop-file-utils |
16 | Requires(post,postun): hicolor-icon-theme | |
f4be6b15 PZ |
17 | Requires: python-dbus |
18 | Requires: python-pygtk-gtk | |
df29c4f1 PZ |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | D-Feet is a D-Bus debugger. | |
24 | ||
25 | %prep | |
26 | %setup -q | |
a571093a | 27 | %patch0 -p1 |
df29c4f1 PZ |
28 | |
29 | %build | |
30 | %{__python} setup.py build | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | ||
35 | %{__python} setup.py install \ | |
36 | --optimize=2 \ | |
37 | --root=$RPM_BUILD_ROOT | |
38 | ||
39 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
40 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
41 | %py_postclean | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %post | |
47 | %update_desktop_database_post | |
48 | %update_icon_cache hicolor | |
49 | ||
50 | %postun | |
51 | %update_desktop_database_postun | |
52 | %update_icon_cache hicolor | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %attr(755,root,root) %{_bindir}/d-feet | |
57 | %{_desktopdir}/dfeet.desktop | |
58 | %{py_sitescriptdir}/dfeet | |
59 | %{py_sitescriptdir}/d_feet-%{version}-py*.egg-info | |
60 | %{_datadir}/dfeet | |
61 | %{_iconsdir}/hicolor/*/apps/dfeet*.png |