SPECS: btanks.spec, btanks-data.spec (NEW) - data files as noarch

arvenil arvenil at pld-linux.org
Tue Jan 1 17:47:06 CET 2008


Author: arvenil                      Date: Tue Jan  1 16:47:06 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- data files as noarch

---- Files affected:
SPECS:
   btanks.spec (1.3 -> 1.4) , btanks-data.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/btanks.spec
diff -u SPECS/btanks.spec:1.3 SPECS/btanks.spec:1.4
--- SPECS/btanks.spec:1.3	Tue Jan  1 16:33:01 2008
+++ SPECS/btanks.spec	Tue Jan  1 17:47:01 2008
@@ -20,6 +20,7 @@
 BuildRequires:	pkgconfig
 BuildRequires:	scons
 BuildRequires:	zlib-devel
+Requires:	%{name}-data = %{version}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -45,17 +46,12 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_datadir}/%{name},%{_desktopdir},%{_pixmapsdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_desktopdir},%{_pixmapsdir}}
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 install bt $RPM_BUILD_ROOT%{_bindir}/%{name}
 install *.so $RPM_BUILD_ROOT%{_libdir}
 install src/bt.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
-cp -r data $RPM_BUILD_ROOT%{_datadir}/%{name}
-
-# Game is looking for those libs in the datadir folder
-ln -s %{_libdir}/libbt_objects.so $RPM_BUILD_ROOT%{_datadir}/%{name}/libbt_objects.so
-ln -s %{_libdir}/libbt.so $RPM_BUILD_ROOT%{_datadir}/%{name}/libbt.so
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -64,7 +60,6 @@
 %defattr(644,root,root,755)
 %doc ChangeLog README-*.txt
 %attr(755,root,root) %{_bindir}/%{name}
-%{_datadir}/%{name}
 %{_libdir}/*.so
 %{_desktopdir}/%{name}.desktop
 %{_pixmapsdir}/%{name}.xpm
@@ -75,6 +70,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2008-01-01 16:47:01  arvenil
+- data files as noarch
+
 Revision 1.3  2008-01-01 15:33:01  gotar
 - don't force -O3, packaged more READMEs, spaces to tabs
 

================================================================
Index: SPECS/btanks-data.spec
diff -u /dev/null SPECS/btanks-data.spec:1.1
--- /dev/null	Tue Jan  1 17:47:06 2008
+++ SPECS/btanks-data.spec	Tue Jan  1 17:47:01 2008
@@ -0,0 +1,57 @@
+# $Revision$, $Date$
+# TODO:
+# - pl description and summary
+%define _name	btanks
+Summary:	Fast 2d tank arcade game with multiplayer and split-screen modes
+Name:		%{_name}-data
+Version:	0.7.5800
+Release:	1
+License:	GPL v2
+Group:		X11/Applications/Games
+Source0:	http://dl.sourceforge.net/btanks/%{_name}-%{version}.tar.bz2
+# Source0-md5:	538eadf2b78897620f3ef683a4ea423a
+URL:		http://btanks.sourceforge.net/blog/langswitch_lang/en
+Requires:	%{_name} = %{version}
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Battle Tanks is a funny battle on your desk, where you can choose one
+of three vehicles and eliminate your enemy using the whole arsenal of
+weapons. It has original cartoon-like graphics and cool music, it is
+fun and dynamic, it has several network modes for deathmatch and
+cooperative - what else is needed to have fun with your friends?
+
+And all is packed and ready for you in Battle Tanks.
+
+This package contains Battle Tanks data files.
+
+%prep
+%setup -q -n %{_name}-%{version}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_datadir}/%{_name}
+cp -r data $RPM_BUILD_ROOT%{_datadir}/%{_name}
+
+# Game is looking for those libs in the datadir folder
+ln -s %{_libdir}/libbt_objects.so $RPM_BUILD_ROOT%{_datadir}/%{_name}/libbt_objects.so
+ln -s %{_libdir}/libbt.so $RPM_BUILD_ROOT%{_datadir}/%{_name}/libbt.so
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%dir %{_datadir}/%{_name}
+%{_datadir}/%{_name}/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-01-01 16:47:01  arvenil
+- data files as noarch
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/btanks.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list