diff --git a/OpenLP.spec b/OpenLP.spec index 180e0a8..a0b6bbb 100644 --- a/OpenLP.spec +++ b/OpenLP.spec @@ -3,7 +3,7 @@ Summary: Open source Church presentation and lyrics projection application Name: OpenLP Version: 1.9.5 -Release: 4%{?dist} +Release: 5%{?dist} Source0: http://downloads.sourceforge.net/openlp/openlp/%{version}/%{name}-%{version}.tar.gz License: GPLv2 Group: Applications/Multimedia @@ -23,8 +23,9 @@ Requires: python-chardet Requires: python-lxml Requires: python-sqlalchemy Requires: python-enchant -Requires: hicolor-icon-theme +Requires: python-mako Requires: python-openoffice +Requires: hicolor-icon-theme Requires: libreoffice-graphicfilter Requires: libreoffice-impress Requires: libreoffice-headless @@ -57,19 +58,25 @@ desktop-file-install \ --dir %{buildroot}/%{_datadir}/applications \ resources/openlp.desktop +desktop-file-validate %{buildroot}/%{_datadir}/applications/openlp.desktop + mv %{buildroot}%{_bindir}/openlp.pyw %{buildroot}%{_bindir}/openlp mkdir -p %{buildroot}%{_datadir}/openlp/i18n/ mv resources/i18n/*.qm %{buildroot}%{_datadir}/openlp/i18n +mkdir -p %{buildroot}%{_datadir}/mime/packages +cp -p resources/openlp.xml %{buildroot}%{_datadir}/mime/packages %post touch --no-create %{_datadir}/icons/hicolor ||: gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||: +update-mime-database %{_datadir}/mime &> /dev/null ||: update-desktop-database &> /dev/null ||: %postun touch --no-create %{_datadir}/icons/hicolor ||: gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||: +update-mime-database %{_datadir}/mime &> /dev/null ||: update-desktop-database &> /dev/null ||: %clean @@ -79,14 +86,18 @@ rm -rf %{buildroot} %defattr(-,root,root) %doc copyright.txt LICENSE %{_bindir}/openlp +%{_datadir}/mime/packages/openlp.xml %{_datadir}/applications/openlp.desktop %{_datadir}/icons/hicolor/*/apps/openlp.* %{_datadir}/openlp %{python_sitelib}/openlp/ %{python_sitelib}/OpenLP-%{version}*.egg-info -%doc documentation/*.txt + %changelog +* Sat Jun 11 2011 Tim Bentley - 1.9.5-5 +- Update Build Script + * Tue May 24 2011 Tim Bentley - 1.9.5-4 - Fix Typing error