%define name kpodder %define version 0.6 %define release %mkrel 3 Name: %{name} Summary: Podcast collection for KDE Version: %{version} Release: %{release} Source: http://www.leonscape.co.uk/linux/kpodder/%{name}-%{version}.tar.bz2 URL: http://www.leonscape.co.uk/linux/kpodder/ License: GPL Group: Networking/News BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: kdebase-devel BuildRequires: ImageMagick Provides: bpconf Obsoletes: bpconf %description KPodder is a simple configuration frontend for the BashPodder tool, which can be used to collect podcasts from across the Web. After selecting feeds and choosing when and where you want them saved, it will collect the files for you. It also features an option for checking feeds immediately. %prep %setup -q %build %configure2_5x --disable-rpath %make %install rm -rf $RPM_BUILD_ROOT %makeinstall #menu mkdir -p $RPM_BUILD_ROOT%{_menudir} cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%{name} ?package(%{name}): command="%{name}" icon="%{name}.png" needs="x11" title="BPConf" longtitle="Podcast catcher" section="Internet/News" mimetypes="application/rss+xml" xdg="true" EOF desktop-file-install --vendor="" \ --remove-category="Application" \ --add-category="Network" \ --add-category="News" \ --add-category="X-MandrivaLinux-Internet-News" \ --dir $RPM_BUILD_ROOT%{_datadir}/applnk/Utilities $RPM_BUILD_ROOT%{_datadir}/applnk/Utilities/* #icons mkdir -p $RPM_BUILD_ROOT/%_liconsdir convert -size 48x48 src/hi16-app-%name.png $RPM_BUILD_ROOT/%_liconsdir/%name.png mkdir -p $RPM_BUILD_ROOT/%_iconsdir cp src/hi32-app-%name.png $RPM_BUILD_ROOT/%_iconsdir/%name.png mkdir -p $RPM_BUILD_ROOT/%_miconsdir cp src/hi16-app-%name.png $RPM_BUILD_ROOT/%_miconsdir/%name.png %find_lang %name %clean rm -rf $RPM_BUILD_ROOT %post %update_menus %if %mdkversion > 200600 %{update_desktop_database} %update_icon_cache hicolor %endif %postun %clean_menus %if %mdkversion > 200600 %{clean_desktop_database} %clean_icon_cache hicolor %endif %files -f %{name}.lang %defattr(-,root,root) %doc AUTHORS ChangeLog NEWS README %{_bindir}/* %{_datadir}/applnk/Utilities/%name.desktop %{_datadir}/apps/%name %{_docdir}/HTML/en/%name %{_iconsdir}/hicolor/*/apps/%name.png %{_datadir}/mimelnk/rss+xml.desktop %{_menudir}/%name %{_liconsdir}/%name.png %{_iconsdir}/%name.png %{_miconsdir}/%name.png %changelog * Thu Jul 13 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.6-3mdv2007.0 - XDG - Use macro for icons && mimetypes * Tue Apr 04 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.6-2mdk - Add Buildrequires - use mkrel * Sun Mar 19 2006 Austin Acton <austin@mandriva.org> 0.6-1mdk - name change from bpconf to kpodder - 0.6 * Fri Aug 26 2005 Austin Acton <austin@mandriva.org> 0.5.1-1mdk - initial package