From c0b4ea9bf4811dd2bb72bc7a47092162b788491f Mon Sep 17 00:00:00 2001 From: Jacek Konieczny Date: Fri, 2 Feb 2001 15:29:07 +0000 Subject: [PATCH] - sounds added (as subpackage) - gtk subpackage does not require main subpackage any more Changed files: crossfire-client.spec -> 1.3 --- crossfire-client.spec | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/crossfire-client.spec b/crossfire-client.spec index 5457b2e..653b1a9 100644 --- a/crossfire-client.spec +++ b/crossfire-client.spec @@ -7,6 +7,7 @@ Group: Applications/Games Group(de): Applikationen/Spiele Group(pl): Aplikacje/Gry Source0: ftp://ftp.scruz.net/users/mwedel/public/%{name}-%{version}.tar.gz +Source1: client-0.95.2-raw-sounds.tgz Patch0: %{name}-noalsa.patch URL: http://crossfire.real-time.com BuildRequires: XFree86-devel @@ -29,12 +30,20 @@ Any number of players can move around in their own window, finding and sing items and battle monsters. They can choose to cooperate or compete in the same "world". +%package sounds +Summary: Crossfire sounds. +Group: Applications/Games +Group(de): Applikationen/Spiele +Group(pl): Aplikacje/Gry + +%description sounds +Some sound files and the sound server for crossfire. + %package gtk Summary: GTK Crossfire client. Group: Applications/Games Group(de): Applikationen/Spiele Group(pl): Aplikacje/Gry -Requires: %{name} %description gtk GTK client to crossfire. @@ -51,21 +60,26 @@ sing items and battle monsters. They can choose to cooperate or compete in the same "world". %prep -%setup -q +%setup -q -a1 %patch0 -p1 %build +for l in sounds.dist soundsdef.h ; do + mv $l $l.bak + sed -e"s@/usr/local/lib/@%{_datadir}/cfclient/@" -e's@\.au@.raw@' < $l.bak > $l +done autoconf %configure \ - --with-sound-dir=%{_datadir}/crossfire-client/sounds + --with-sound-dir=%{_datadir}/cfclient/sounds %{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} +install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/cfclient/sounds} install cfclient gcfclient cfsndserv $RPM_BUILD_ROOT%{_bindir} install client.man $RPM_BUILD_ROOT%{_mandir}/man1/cfclient.1 install client.man $RPM_BUILD_ROOT%{_mandir}/man1/gcfclient.1 +install sounds/*.raw $RPM_BUILD_ROOT%{_datadir}/cfclient/sounds/ %clean rm -rf $RPM_BUILD_ROOT @@ -73,9 +87,15 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc CHANGES README README.old def_keys -%attr(755,root,root) %{_bindir}/cf* +%attr(755,root,root) %{_bindir}/cfclient %{_mandir}/man?/cf* +%files sounds +%defattr(644,root,root,755) +%doc sounds/README* sounds.dist +%attr(755,root,root) %{_bindir}/cfsndserv +%{_datadir}/cfclient + %files gtk %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/g* -- 2.44.0