Name: garmon Version: 0.3.1 Release: 1%{?dist} Summary: Gnome/GTK+ Car Monitor License: GPLv2 URL: http://sourceforge.net/projects/garmon/ Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/0.3/%{name}-%{version}.tar.bz2 BuildRequires: intltool BuildRequires: pyserial BuildRequires: pygtk2-devel BuildRequires: desktop-file-utils Requires: pyserial Requires: pyxdg %description Garmon (Gnome/GTK+ Car Monitor) is a tool that lets you connect to an OBD-II compliant vehicle using an ELM327 based scanning device. It supports monitoring live and freeze frame data as well as reading and clearing DTCs. It is written in python. %prep %setup -q %build %configure make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %find_lang %{name} %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang %doc %{_prefix}/doc/%{name}/ %{_bindir}/%{name} %{python_sitelib}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/%{name}/ %{_datadir}/icons/hicolor/48x48/apps/%{name}.png %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_datadir}/pixmaps/%{name}/ %changelog * Mon Dec 8 2014 Pierros Papadeas 0.3.1-1 - Initial version of the package