%define name xiphos %define version 3.1.1 %define release %mkrel 1 Summary: Bible Study Software for Linux and the Gnome Desktop Name: %{name} Version: %{version} Release: %{release} Source: http://dfn.dl.sourceforge.net/sourceforge/gnomesword/%{name}-%{version}.tar.gz URL: http://xiphos.org/ License: GPLv2+ Group: Text tools BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: gtkhtml-3.14-devel BuildRequires: gnomeui2-devel libgnomeprintui-devel BuildRequires: libglade2-devel BuildRequires: aspell-devel sword-devel >= 1.5.11 imagemagick BuildRequires: perl-XML-Parser BuildRequires: scrollkeeper BuildRequires: gnome-doc-utils desktop-file-utils BuildRequires: libmagick-devel Requires: sword >= 1.5.11 Obsoletes: gnomesword < 2.4.1-2 Provides: gnomesword %description GnomeSword is a GNOME interface to the Sword Project (http://www.croswire.org/sword) The SWORD Bible Framework allows easy manipulation of Bible texts, commentaries, lexicons, dictionaries, etc. %prep %setup -q %build %configure2_5x --enable-gtkhtml %make %install rm -fr %buildroot %makeinstall_std desktop-file-install --vendor='' \ --dir %buildroot%_datadir/applications/ \ --remove-key='Encoding' \ --remove-key='MultipleArgs' \ --remove-category='Application' \ --remove-category='Utility' \ --remove-category='X-Red-Hat-Extra' \ --add-category='GNOME;GTK;Literature;Education' \ %buildroot%_datadir/applications/*.desktop mkdir -p $RPM_BUILD_ROOT/{%{_liconsdir},%{_miconsdir}} install pixmaps/gs2-48x48.png $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png convert -size 16x16 -resize 16x16 pixmaps/gs2-48x48.png %{buildroot}/%{_miconsdir}/%{name}.png convert -size 32x32 -resize 32x32 pixmaps/gs2-48x48.png %{buildroot}/%{_iconsdir}/%{name}.png %find_lang %{name} --with-gnome --all-name %clean rm -rf $RPM_BUILD_ROOT %if %mdkversion < 200900 %post %{update_menus} %endif %if %mdkversion < 200900 %postun %{clean_menus} %endif %files -f %{name}.lang %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO %{_bindir}/* %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/* %{_datadir}/%{name} %{_iconsdir}/%{name}.png %{_liconsdir}/%{name}.png %{_miconsdir}/%{name}.png %exclude %{_defaultdocdir}/%{name} %changelog * Sun Aug 30 2009 Frederik Himpe <fhimpe@mandriva.org> 3.1.1-1mdv2010.0 + Revision: 422600 - Fix BuildRequires - update to new version 3.1.1 * Sat Jun 06 2009 Frederik Himpe <fhimpe@mandriva.org> 3.1-1mdv2010.0 + Revision: 383410 - Add libmagick-devel buildrequires - Update to xiphos 3.1 - rename gnomesword to xiphos * Tue Jan 20 2009 Funda Wang <fwang@mandriva.org> 2.4.1-1mdv2009.1 + Revision: 331786 - New version 2.4.1 + Oden Eriksson <oeriksson@mandriva.com> - lowercase ImageMagick * Sat Aug 16 2008 Buchan Milne <bgmilne@mandriva.org> 2.3.6-1mdv2009.0 + Revision: 272748 - New version 2.3.6 + Thierry Vignaud <tvignaud@mandriva.com> - rebuild + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas * Tue Mar 04 2008 Buchan Milne <bgmilne@mandriva.org> 2.3.3-1mdv2008.1 + Revision: 178441 - New version 2.3.3 + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Sat Dec 08 2007 Funda Wang <fwang@mandriva.org> 2.3.1-1mdv2008.1 + Revision: 116415 - br gnomeprintui - BR gnomeui2 - BR gtkhtml-3.14 - build firefox rather than gtkhtml - BR firefox-devel - New version 2.3.1 - New version + Thierry Vignaud <tvignaud@mandriva.com> - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated'