]> git.pld-linux.org Git - packages/crossfire-client.git/commitdiff
- sounds added (as subpackage)
authorJacek Konieczny <jajcus@pld-linux.org>
Fri, 2 Feb 2001 15:29:07 +0000 (15:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- gtk subpackage does not require main subpackage any more

Changed files:
    crossfire-client.spec -> 1.3

crossfire-client.spec

index 5457b2eeb38dba624fb3710d29c9df8c73fddd26..653b1a92acd7dc1b7107e9bf11607dcf3748469d 100644 (file)
@@ -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*
This page took 0.059422 seconds and 4 git commands to generate.