From d86d531bd12cb281b13b1868e8cf71878fb6a804 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Sep 20 2009 21:12:40 +0000 Subject: - add icon/mime scriptlets - don't own %{_mandir}/man1 - BR: qt4-devel --- diff --git a/arora.spec b/arora.spec index f9a9987..86ec064 100644 --- a/arora.spec +++ b/arora.spec @@ -1,6 +1,6 @@ Name: arora Version: 0.9.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A cross platform web browser Group: Applications/Internet @@ -13,7 +13,7 @@ Patch2: arora-0.8.0-fedorahome.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils -BuildRequires: qt-devel >= 4.4.0 +BuildRequires: qt4-devel >= 4.4.0 # for gnome default app path BuildRequires: control-center-devel @@ -28,7 +28,7 @@ browsing and other common features such as web history and bookmarks. Summary: Better Gnome support for Arora Group: Applications/Internet Requires: control-center -Requires: arora +Requires: arora %description gnome Adds Arora to Preferred Applications list in Gnome Control Center. @@ -48,6 +48,8 @@ make %{?_smp_mflags} rm -rf $RPM_BUILD_ROOT make INSTALL_ROOT=$RPM_BUILD_ROOT install +# imo, shouldn't add/change upstream vendor here, but changing +# once released this way is bad too. :( -- Rex desktop-file-install --vendor fedora \ --dir $RPM_BUILD_ROOT%{_datadir}/applications\ --delete-original\ @@ -57,6 +59,22 @@ desktop-file-install --vendor fedora \ %clean rm -rf $RPM_BUILD_ROOT + +%post +touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + update-desktop-database -q &> /dev/null + touch --no-create %{_datadir}/icons/hicolor &> /dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : +fi + +%posttrans +update-desktop-database -q &> /dev/null +gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : + + %files %defattr(-,root,root,-) %doc AUTHORS README ChangeLog @@ -70,16 +88,21 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/icons/hicolor/16x16/apps/arora.png %{_datadir}/icons/hicolor/32x32/apps/arora.png %{_datadir}/icons/hicolor/scalable/apps/arora.svg -%{_datadir}/arora +%{_datadir}/arora/ %{_datadir}/pixmaps/arora.xpm -%{_datadir}/man/man1 +%{_mandir}/man1/* %files gnome %defattr(-,root,root,-) -%{_datadir}/gnome-control-center/default-apps +%{_datadir}/gnome-control-center/default-apps/ %changelog +* Sun Sep 30 2009 Rex Dieter - 0.9.0-2 +- add icon/mime scriptlets +- don't own %%{_mandir}/man1 +- BR: qt4-devel + * Mon Jul 31 2009 Jaroslav Reznik - 0.9.0-1 - Update to 0.9.0 @@ -139,4 +162,4 @@ rm -rf $RPM_BUILD_ROOT - Location bar's double click selects all * Wed Aug 13 2008 Jaroslav Reznik - 0.3-1 -- Initial spec file \ No newline at end of file +- Initial spec file