Name: qtdbf Version: 0.9.9 Release: 1%{?dist} License: GPLv3 Url: https://github.com/Voral/qtDbf/ Source0: https://github.com/Voral/qtDbf/archive/%{version}/qtDbf-%{version}.tar.gz Summary: DBF viewer BuildRequires: pkgconfig(QtGui), desktop-file-utils %description Qt4-based DBF file viewer. %prep %setup -q -n qtDbf-%{version} %build qmake-qt4 PREFIX=%{_prefix} make release %{?_smp_mflags} %install make install INSTALL_ROOT=%{buildroot} desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %find_lang %{name} --with-qt --without-mo %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 COPYING ChangeLog INSTALL README.md %{_bindir}/%{name} %dir %{_datadir}/%{name}/ %{_datadir}/%{name}/help/ %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.* %changelog * Wed Jul 30 2013 TI_Eugene 0.9.9-1 - initial packaging for Fedora