Witam
W SearchAndRescue.spec w TODO było "-add data subpackage" to dodałem...
Jeden mały problem - to co było wcześniej mi się nie budowało - końcówka
była taka:
Compiling module string.o
string.cpp:38: error: declaration of `char* strcasestr(const char*,
const
   char*)' throws different exceptions
../include/string.h:27: error: than previous declaration `char*
   strcasestr(const char*, const char*) throw ()'
string.cpp: In function `char* strcasestr(const char*, const char*)':
string.cpp:222: error: declaration of `char* strcasestr(const char*,
const
   char*)' throws different exceptions
string.cpp:38: error: than previous declaration `char* strcasestr(const
char*,
   const char*) throw ()'
make[1]: *** [string.o] Error 1
make: *** [all] Error 2
błąd: Błędny status wyjścia z /var/tmp/rpm-tmp.48749 (%build)

Jak zakomentowałem wszystko co się wiązało z budowaniem głównego pakietu
to data subpackage się zrobił i działa. Na poprawienie tego co zastałem
to nie czuję się na siłach, chyba że pomożecie...
-- 
Pozdrawiam
Krystian T

        "errare humanum est..."
Index: SearchAndRescue.spec
===================================================================
RCS file: /cvsroot/SPECS/SearchAndRescue.spec,v
retrieving revision 1.13
diff -u -r1.13 SearchAndRescue.spec
--- SearchAndRescue.spec	15 Jan 2004 15:14:26 -0000	1.13
+++ SearchAndRescue.spec	23 Feb 2005 22:29:16 -0000
@@ -2,7 +2,7 @@
 #
 # TODO:
 #	-fix default paths
-#	-add data subpackage
+#	-desktop file
 #
 # Conditional build:
 %bcond_with libY	# build with libY
@@ -12,11 +12,13 @@
 Summary(pl):	Search And Rescue - symulator lotu śmigłowca
 Name:		SearchAndRescue
 Version:	0.8.2
-Release:	0.1
+Release:	0.2
 License:	GPL
 Group:		X11/Applications/Games
 Source0:	ftp://wolfpack.twu.net/users/wolfpack/%{name}-%{version}.tar.bz2
 # Source0-md5:	e2c56a25adb57554dfb25cc8175b502b
+Source1:	ftp://wolfpack.twu.net/users/wolfpack/%{name}-data-%{version}.tar.bz2
+# Source1-md5:	3ac0e91b0b3360c4be17fcb5564feca8
 #Patch0:		%{name}-Makefile.patch
 URL:		http://wolfpack.twu.net/SearchAndRescue/
 BuildRequires:	XFree86-devel >= 3.3.6
@@ -34,8 +36,20 @@
 %description -l pl
 Symulator lotu śmigłowcem.
 
+%package data
+Summary:	Data files for SearchAndRescue
+Summary(pl):	Pliki z danymi dla SearchAndRescue
+Group:		X11/Applications/Games
+Requires:	%{name} = %{version}-%{release}
+
+%description data
+Data files for SearchAndRescue.
+
+%description data -l pl
+Pliki z danymi dla SearchAndRescue
+
 %prep
-%setup -q
+%setup -q -a1
 #%patch0 -p1
 
 %build
@@ -51,6 +65,8 @@
 	MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man6 \
 	SHARE_GAMES_DIR=$RPM_BUILD_ROOT%{_datadir} \
 	SHADE_ICONS_DIR=$RPM_BUILD_ROOT%{_pixmapsdir}
+install -d $RPM_BUILD_ROOT%{_datadir}/games/SearchAndRescue
+cp -rf aircrafts automobiles control_panels images missions music objects scenery sounds textures vessels human.ini music.ini textures.ini weather.ini $RPM_BUILD_ROOT%{_datadir}/games/SearchAndRescue
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -61,6 +77,10 @@
 %attr(755,root,root) %{_bindir}/*
 %{_iconsdir}/SearchAndRescue.xpm
 %{_mandir}/man6/*
+
+%files data
+%defattr(644,root,root,755)
+%{_datadir}/games/SearchAndRescue
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl

Odpowiedź listem elektroniczym