From 962fc492129ebe3101fb90c90e53901427107412 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 20:22:59 +0100 Subject: [PATCH] automatic rebuild by autodist [release 0.2-3mamba;Tue Jul 16 2013] --- README.md | 2 + anagramarama.install.patch | 89 +++++++++++++++++++++++++++++++++++++ anagramarama.png | Bin 0 -> 776 bytes anagramarama.spec | 82 ++++++++++++++++++++++++++++++++++ 4 files changed, 173 insertions(+) create mode 100644 anagramarama.install.patch create mode 100644 anagramarama.png create mode 100644 anagramarama.spec diff --git a/README.md b/README.md index ed0e535..193fd35 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # anagramarama +The aim is to find as many words as possible in the time available. Get the longest word and you'll advance to the next level. + diff --git a/anagramarama.install.patch b/anagramarama.install.patch new file mode 100644 index 0000000..9db5c12 --- /dev/null +++ b/anagramarama.install.patch @@ -0,0 +1,89 @@ +diff -Nru anagramarama.orig/src/ag.c anagramarama/src/ag.c +--- anagramarama.orig/src/ag.c 2005-07-20 12:47:54.000000000 +0200 ++++ anagramarama/src/ag.c 2005-07-20 14:27:32.000000000 +0200 +@@ -184,15 +184,15 @@ + ***********************************************************/ + void bufferSounds(struct sound** soundCache){ + +- pushSound(&(*soundCache),"click-answer", "audio/click-answer.wav"); +- pushSound(&(*soundCache),"click-shuffle", "audio/click-shuffle.wav"); +- pushSound(&(*soundCache),"foundbig", "audio/foundbig.wav"); +- pushSound(&(*soundCache),"found", "audio/found.wav"); +- pushSound(&(*soundCache),"clear", "audio/clearword.wav"); +- pushSound(&(*soundCache),"duplicate", "audio/duplicate.wav"); +- pushSound(&(*soundCache),"badword", "audio/badword.wav"); +- pushSound(&(*soundCache),"shuffle", "audio/shuffle.wav"); +- pushSound(&(*soundCache),"clock-tick", "audio/clock-tick.wav"); ++ pushSound(&(*soundCache),"click-answer", "/usr/share/anagramarama-0.2/audio/click-answer.wav"); ++ pushSound(&(*soundCache),"click-shuffle", "/usr/share/anagramarama-0.2/audio/click-shuffle.wav"); ++ pushSound(&(*soundCache),"foundbig", "/usr/share/anagramarama-0.2/audio/foundbig.wav"); ++ pushSound(&(*soundCache),"found", "/usr/share/anagramarama-0.2/audio/found.wav"); ++ pushSound(&(*soundCache),"clear", "/usr/share/anagramarama-0.2/audio/clearword.wav"); ++ pushSound(&(*soundCache),"duplicate", "/usr/share/anagramarama-0.2/audio/duplicate.wav"); ++ pushSound(&(*soundCache),"badword", "/usr/share/anagramarama-0.2/audio/badword.wav"); ++ pushSound(&(*soundCache),"shuffle", "/usr/share/anagramarama-0.2/audio/shuffle.wav"); ++ pushSound(&(*soundCache),"clock-tick", "/usr/share/anagramarama-0.2/audio/clock-tick.wav"); + + } + +@@ -982,7 +982,7 @@ + int done = 0; + + filelocation = rand()%10000; +- wordlist=fopen("wordlist.txt","r"); ++ wordlist=fopen("/usr/share/anagramarama-0.2/wordlist.txt","r"); + + for (i=0;i<=filelocation;i++){ + +@@ -992,7 +992,7 @@ + else{ + // go back to the start of the file + fclose(wordlist); +- fopen("wordlist.txt", "r"); ++ fopen("/usr/share/anagramarama-0.2/wordlist.txt", "r"); + } + } + +@@ -1011,7 +1011,7 @@ + else{ + // go back to the start of the file + fclose(wordlist); +- fopen("wordlist.txt", "r"); ++ fopen("/usr/share/anagramarama-0.2/wordlist.txt", "r"); + fscanf(wordlist, "%s", wordFromList); + } + } +@@ -1485,7 +1485,7 @@ + int i; + + // show background +- ShowBMP("images/background.bmp",screen, 0,0); ++ ShowBMP("/usr/share/anagramarama-0.2/images/background.bmp",screen, 0,0); + + destroyLetters(&(*letters)); + +@@ -1760,9 +1760,9 @@ + createDLBTree(&dlbHead); + + // cache in-game graphics +- letterBank = SDL_LoadBMP("images/letterBank.bmp"); +- smallLetterBank = SDL_LoadBMP("images/smallLetterBank.bmp"); +- numberBank = SDL_LoadBMP("images/numberBank.bmp"); ++ letterBank = SDL_LoadBMP("/usr/share/anagramarama-0.2/images/letterBank.bmp"); ++ smallLetterBank = SDL_LoadBMP("/usr/share/anagramarama-0.2/images/smallLetterBank.bmp"); ++ numberBank = SDL_LoadBMP("/usr/share/anagramarama-0.2/images/numberBank.bmp"); + + rootWord = malloc(sizeof(char)*9); + newGame(&head, dlbHead, screen, &letters); +diff -Nru anagramarama.orig/src/dlb.c anagramarama/src/dlb.c +--- anagramarama.orig/src/dlb.c 2005-07-20 12:47:54.000000000 +0200 ++++ anagramarama/src/dlb.c 2005-07-20 14:27:32.000000000 +0200 +@@ -100,7 +100,7 @@ + //printf("createDLBTree\n"); + + // open wordlist file +- wordlist = fopen("wordlist.txt", "r"); ++ wordlist = fopen("/usr/share/anagramarama-0.2/wordlist.txt", "r"); + + // get each word from the list + while (fscanf(wordlist, "%s", wordFromList) != EOF){ diff --git a/anagramarama.png b/anagramarama.png new file mode 100644 index 0000000000000000000000000000000000000000..48d05843443dd5cab95fee4e03b50303787855ce GIT binary patch literal 776 zcmV+j1NZ!iP)YxN7y#gTXWp4v zuXopu9lL~7O-w*85LKvLxN&Nws{a9wJyezY4_c`|qf$>jAR)w&BezyUeDoBVh>sBJ zW}O(@`@K6eJJaWZUw$&KAteVDev}Grn^v4Q@{~IoldmU^@Jdq}Mk=Xbs0l~K3e~SR zV!?M`L>~C0@OdcZnat;ZuaA!2?q6k7DZqnoqq=11p(s#YT?FBVh77BLvpHb&D(UR z7)#x?1gX$+jW+3-BCN8=tbJnHWv4EI#xc})g44>T=RiEj8b&k-%37`n=NkJNhB@gs zG(Rr%5(p)%h1)?rC}sha87!B6?J%LDEv>CtO+~ro)HrdU&ywxGK3L00A<5w`y+3?v z+6S*Yu{N<11zK<$VHUp1c_o5Rj>E0VpsI5RhB6OG{N2s@iRbMtCt9W5s_m|7uLQo) zG$*3i-#eQXIG;~z7L>BALU{oJOGda?2J!Rqc>ku}sNE{Z0x{r=+RWB$ws-&ONxHpx z9yXtJ#ow{sL3kG<_gR&H^T$!op5Ex0RoAw$FwhT1;~Vz;Fn)7xGu5g~E$mDbY0000 +URL: http://www.coralquest.com/anagramarama/ +Source: http://www.omega.clara.net/anagramarama/dist/%{name}-%{version}.tar.gz +Source1: anagramarama.png +Patch1: anagramarama.install.patch +License: GPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libSDL-devel +BuildRequires: libSDL_mixer-devel +## AUTOBUILDREQ-END +BuildRequires: libSDL-devel >= 1.2.8, libSDL_mixer-devel >= 1.2.6 + +%description +The aim is to find as many words as possible in the time available. Get the longest word and you'll advance to the next level. + +%prep +%setup -q -n %{name} +%patch1 -p1 + +%build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +mkdir -p %{buildroot}/usr/share/%{name}-%{version}/audio +mkdir -p %{buildroot}/usr/share/%{name}-%{version}/images +mkdir -p %{buildroot}/usr/bin + +install -D -m 644 audio/*.wav %{buildroot}/usr/share/%{name}-%{version}/audio/ +install -D -m 644 images/*bmp %{buildroot}/usr/share/%{name}-%{version}/images/ +install -m 755 wordlist.txt %{buildroot}/usr/share/%{name}-%{version}/ +install -m 755 ag %{buildroot}/usr/bin + +#Icon +mkdir -p %{buildroot}%{_datadir}/pixmaps +install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png + +# Create the system menu entry +mkdir -p %{buildroot}%{_datadir}/applications +cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF +[Desktop Entry] +Name=%{name} +Comment=Anagramarama - a FREE word game for Linux +Exec=ag +Icon=%{_datadir}/pixmaps/anagramarama.png +Terminal=0 +Type=Application +X-KDE-StartupNotify=false +Categories=Education; +EOF + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%{_bindir}/* +%{_datadir}/%{name}-%{version}/audio/*.wav +%{_datadir}/%{name}-%{version}/images/*.bmp +%{_datadir}/%{name}-%{version}/*.txt +%{_datadir}/applications/anagramarama.desktop +%{_datadir}/pixmaps/anagramarama.png + +%changelog +* Tue Jul 16 2013 Automatic Build System 0.2-3mamba +- automatic rebuild by autodist + +* Mon Jun 29 2009 Silvan Calarco 0.2-2mamba +- specfile updated and rebuilt + +* Tue Jul 19 2005 Alessandro Ramazzina 0.2-1qilnx +- package created by autospec