Name: pentobi Version: 6.0 Release: 1%{?dist} Summary: Program to play the board game Blokus License: GPLv3 URL: http://pentobi.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz BuildRequires: qt-devel BuildRequires: cmake BuildRequires: desktop-file-utils %description Pentobi is a computer program to play the board game Blokus %prep %setup -q %build %cmake -DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name}-%{version} \ -DPENTOBI_BUILD_TESTS=ON . make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} %check #check desktop file make test desktop-file-validate %{buildroot}/%{_datadir}/applications/pentobi.desktop %post /usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun /usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : 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 %files %{_bindir}/%{name} %{_bindir}/%{name}-thumbnailer %{_datadir}/applications/pentobi.desktop %{_datadir}/icons/hicolor/16x16/apps/pentobi.png %{_datadir}/icons/hicolor/16x16/mimetypes/application-x-blokus-sgf.png %{_datadir}/icons/hicolor/32x32/apps/pentobi.png %{_datadir}/icons/hicolor/48x48/apps/pentobi.png %{_datadir}/icons/hicolor/48x48/mimetypes/application-x-blokus-sgf.png %{_datadir}/icons/hicolor/scalable/apps/pentobi.svg %{_datadir}/icons/hicolor/scalable/mimetypes/application-x-blokus-sgf.svg %{_datadir}/mime/packages/pentobi-mime.xml %dir %{_datadir}/thumbnailers %{_datadir}/thumbnailers/pentobi.thumbnailer %dir %{_datadir}/%{name} %{_datadir}/%{name}/books/ %dir %{_docdir}/%{name}-%{version} %{_docdir}/%{name}-%{version}/Blokus-SGF.html %{_docdir}/%{name}-%{version}/COPYING %{_docdir}/%{name}-%{version}/NEWS %{_docdir}/%{name}-%{version}/README %dir %{_docdir}/%{name}-%{version}/manual %lang(de) %{_docdir}/%{name}-%{version}/manual/de/ %lang(en) %{_docdir}/%{name}-%{version}/manual/en/ %lang(en_CA) %{_docdir}/%{name}-%{version}/manual/en_CA/ %lang(en_GB) %{_docdir}/%{name}-%{version}/manual/en_GB/ %{_datadir}/%{name}/translations/ %{_mandir}/man6/pentobi-thumbnailer.6.* %{_mandir}/man6/pentobi.6.* %changelog * Mon Apr 08 2013 Christophe Burgun 6.0-1 - Update pentobi version - Remove patch0 which is now fixed - Remove boost buildrequires - Remove GNOME2_THUMBNAILER in cmake - Change path DCMAKE_INSTALL_DOCDIR to add version * Fri Jan 25 2013 Christophe Burgun 5.0-4 - Add test in check section - Remove requires boost and qt for explicit requires * Thu Jan 24 2013 Christophe Burgun 5.0-3 - List buildrequires entries one-by-one - Apply directories patch according to Fedora Games Packaging guidelines - Add mime and icon parts in post and postun section - Own /usr/share/thumbnailers as mailing list recommendations http://lists.fedoraproject.org/pipermail/packaging/2013-January/008850.html * Tue Dec 11 2012 Christophe Burgun 5.0-2 - Add Requires - Delete duplicates in files section - Change description and summary * Mon Dec 10 2012 Christophe Burgun 5.0-1 - Update pentobi version * Mon Oct 22 2012 Christophe Burgun 4.3-1 - Init spec