SPECS: wormux.spec - upgraded to 0.5.1, - won't build anymore with...

gotar gotar at pld-linux.org
Fri Jul 22 14:23:20 CEST 2005


Author: gotar                        Date: Fri Jul 22 12:23:20 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- upgraded to 0.5.1,
- won't build anymore with libxml++ 2.10 and ClanLib<0.7,
- use ac/am,
- datadir without games subdir (feel free to change).

---- Files affected:
SPECS:
   wormux.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: SPECS/wormux.spec
diff -u SPECS/wormux.spec:1.18 SPECS/wormux.spec:1.19
--- SPECS/wormux.spec:1.18	Wed Oct 13 23:32:19 2004
+++ SPECS/wormux.spec	Fri Jul 22 14:23:07 2005
@@ -2,19 +2,21 @@
 Summary:	A free (libre) clone of Worms from Team17
 Summary(pl):	Wolnodostępny klon Worms z Team17
 Name:		wormux
-Version:	0.4.0
-Release:	3
+Version:	0.5.1
+Release:	1
 License:	BSD
 Group:		Applications/Games
-Source0:	http://download.gna.org/wormux/%{name}-src-%{version}.tgz
-# Source0-md5:	14f7b9c9b3f2fba7eb20afbf2deb219e
+Source0:	http://download.gna.org/wormux/%{name}-src-%{version}.tar.bz2
+# Source0-md5:	68eae1190569c155995e29aa8a97f710
 Source1:	%{name}.desktop
 Source2:	%{name}.png
-Patch0:		%{name}-fix-install-dir.patch
 URL:		http://www.haypocalc.com/wormux/en/index.php
-BuildRequires:	ClanLib-Vorbis-devel >= 0.6.0
+BuildRequires:	ClanLib-OpenGL-devel >= 0.7.0
+BuildRequires:	ClanLib-Vorbis-devel >= 0.7.0
+BuildRequires:	autoconf
+BuildRequires:	automake
 BuildRequires:	gettext-devel
-BuildRequires:	libxml++-devel >= 2.6.0
+BuildRequires:	libxml++1-devel
 BuildRequires:	perl-base
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -25,32 +27,27 @@
 Wolnodostępny klon gry Worms z Team17.
 
 %prep
-%setup -q -n %{name}
-%patch0 -p1
-
-%{__perl} -pi -e 's/libxml\+\+-1\.0/libxml++-2.6/' src/Makefile src/make.env
-%{__perl} -pi -e 's/-O3/%{rpmcflags}/' src/make.env
+%setup -q
 
 %build
-%{__make} -C src \
-	RELEASE=1 \
-	CXX="%{__cxx}"
+%{__gettextize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/games/%{name},%{_desktopdir},%{_pixmapsdir},%{_datadir}/locale}
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
 
-%{__make} -C src install \
-	DIR_SHARE_PLD=%{_datadir}/games/%{name}/ \
-	DIR_BIN=$RPM_BUILD_ROOT%{_bindir} \
-	DIR_SHARE=$RPM_BUILD_ROOT%{_datadir}/games/%{name}/	# Makefile needs trailing slash (maybe patch will be better?)
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
 
-cp -ar locale/* $RPM_BUILD_ROOT%{_datadir}/locale
-find $RPM_BUILD_ROOT%{_datadir}/locale -name \*.po -exec rm {} \;
-
 %find_lang %{name}
 
 %clean
@@ -58,9 +55,9 @@
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS.txt BUGS.txt CHANGELOG.txt FAQ.txt HACKERS.txt README.txt TODO.txt doc
+%doc AUTHORS README
 %attr(755,root,root) %{_bindir}/wormux
-%{_datadir}/games/%{name}
+%{_datadir}/%{name}
 %{_desktopdir}/%{name}.desktop
 %{_pixmapsdir}/*.png
 
@@ -70,6 +67,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.19  2005/07/22 12:23:07  gotar
+- upgraded to 0.5.1,
+- won't build anymore with libxml++ 2.10 and ClanLib<0.7,
+- use ac/am,
+- datadir without games subdir (feel free to change).
+
 Revision 1.18  2004/10/13 21:32:19  havner
 - rel 3 for rebuild
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/wormux.spec?r1=1.18&r2=1.19&f=u




More information about the pld-cvs-commit mailing list