From 7965efcfbac69a0541b02a9afe5005a2532b3131 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bart=C5=82omiej=20Zimo=C5=84?= Date: Wed, 16 Jan 2008 20:07:15 +0000 Subject: [PATCH] - initial spec Changed files: teeworlds.spec -> 1.1 --- teeworlds.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 teeworlds.spec diff --git a/teeworlds.spec b/teeworlds.spec new file mode 100644 index 0000000..917d9c0 --- /dev/null +++ b/teeworlds.spec @@ -0,0 +1,58 @@ +Name: teewars +Summary: 3D billard simulation using OpenGL +Summary(pl.UTF-8): Symulacja bilarda używająca OpenGL +Version: 0.3.3 +Release: 0.1 +Group: X11/Applications/Games +License: GPL +Source0: http://www.teewars.com/files/%{name}-%{version}-src.tar.gz +# Source0-md5: 6f7ba385ab4cc7944802e5010c17a204 +Source1: http://www.teewars.com/files/beta/bam.zip +# Source1-md5: 2bd60d6790a2f92ba10e0a384e4c94b6 +Source2: %{name}.png +Source3: %{name}.desktop +#Source4: %{name}_srv.desktop +Patch0: %{name}-sh.patch +URL: http://www.teewars.com/ +BuildRequires: python +BuildRequires: unzip +BuildRequires: sed >= 4.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +3D billard simulation using OpenGL. + +%description -l pl.UTF-8 +Trójwymiarowa symulacja bilarda używająca OpenGL. + +%prep +%setup -q -n %{name}-%{version}-src +unzip %{SOURCE1} +%patch0 -p0 + +%build +cd bam +./make_unix.sh +cd .. +bam/src/bam release + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir},%{_datadir}/%{name}/data} + +install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} +install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir} +install teewars.sh $RPM_BUILD_ROOT%{_bindir} +install teewars teewars_srv $RPM_BUILD_ROOT%{_datadir}/%{name}/ +cp -rf data $RPM_BUILD_ROOT%{_datadir}/%{name}/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc readme.txt license.txt +%attr(755,root,root) %{_bindir}/teewars.sh +%{_datadir}/%{name} +%{_pixmapsdir}/*.png +%{_desktopdir}/*.desktop -- 2.44.0