%global snapinfo 20171025.efcc00f Name: puzzles Epoch: 1 Version: 0 Release: 0.%{snapinfo}%{?dist} Summary: A collection of one-player puzzle games Group: Amusements/Games License: MIT URL: http://www.chiark.greenend.org.uk/~sgtatham/puzzles/ Source0: http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-%{snapinfo}.tar.gz Source1: template.desktop BuildRequires: gtk2-devel, perl, desktop-file-utils %description This is a collection of small desktop toys, little games that you can pop up in a window and play for two or three minutes while you take a break from whatever else you were doing. %prep %setup -q -n puzzles-%{snapinfo} iconv -f ISO88591 -t UTF8< LICENCE > LICENSE %build %configure --with-gtk=2 %make_build %install mkdir -p $RPM_BUILD_ROOT/%{_bindir} mkdir -p $RPM_BUILD_ROOT/%{_datadir}/puzzles cp -a icons/*-32d24.png $RPM_BUILD_ROOT/%{_datadir}/puzzles %make_install # create all the desktop files needed. path=$RPM_BUILD_ROOT/%{_bindir} for i in $path/*; do base=`basename $i` name=`perl -e 'print ucfirst($ARGV[0])' "$base"` command=puzzle-$base mv $i $path/$command sed -e "s//$name/g;s!!%{_bindir}/$command!g;s!!%{_datadir}/puzzles/$base-32d24.png!g" %{SOURCE1} > puzzle-$base.desktop desktop-file-install \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications/ \ $command.desktop done %files %doc README HACKING puzzles.txt %license LICENSE %{_bindir}/* %{_datadir}/puzzles %{_datadir}/applications/* %changelog * Thu Oct 26 2017 Will Crawford - 1:0-0.20171025.efcc00f - update source - modernize spec - fix versioning * Sat Feb 11 2017 Fedora Release Engineering - 9023-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 9023-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Jun 21 2015 Ralf Corsépius - 9023-13 - Use '|' as pattern-delimiter in sed expression (Fix FTFBS). - Add %%license. - Modernize spec. * Thu Jun 18 2015 Fedora Release Engineering - 9023-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 9023-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 9023-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 9023-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Mar 6 2013 Toshio Kuratomi - 9023-8 - Remove vendor prefix from desktop files in F19+ https://fedorahosted.org/fesco/ticket/1077 * Thu Feb 14 2013 Fedora Release Engineering - 9023-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 9023-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sun Jan 29 2012 Bruno Wolff III - 9023-5 - Link with math library * Sat Jan 14 2012 Fedora Release Engineering - 9023-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 06 2011 Adam Jackson - 9023-3 - Rebuild for new libpng * Wed Feb 09 2011 Fedora Release Engineering - 9023-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Dec 13 2010 Victor Bogado 9023 - New upstream release. * Sun Jul 26 2009 Fedora Release Engineering - 8596-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild *Mon Jun 22 2009 Victor Bogado 8596-1 - updating to a new upstream version *Thu Dec 11 2008 Victor Bogado 8365-1 - New updastream version *Mon Oct 27 2008 Victor Bogado 8200-3 - Build-Requires should have desktop-file-utils - Description should start with uppercase - iconv goes now in prep area - fixed mistakes in the versions of the change log - Names on the menu should start with an upper-case *Mon Oct 20 2008 Victor Bogado 8200-2 - Fixing problem with desktop files. *Mon Oct 20 2008 Victor Bogado 8200-1 - Suggestion made by reviewer Sergio Pascual . - rename all the binaries. - rename desktop files to follow the binary name. - adding LICENCE (renamed to LICENSE) to docs. - sed "in place", better coding. - removing sed out of build-requires. - Updated to last upstream version. *Mon Sep 01 2008 Victor Bogado 8149-1 - initial spec