]> git.pld-linux.org Git - packages/atakks.git/commitdiff
- initial release
authorpascalek <pascalek@pld-linux.org>
Tue, 24 Dec 2002 11:31:45 +0000 (11:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    atakks.spec -> 1.1

atakks.spec [new file with mode: 0644]

diff --git a/atakks.spec b/atakks.spec
new file mode 100644 (file)
index 0000000..b3f12e6
--- /dev/null
@@ -0,0 +1,53 @@
+Summary:       atakks
+Name:          atakks
+Version:       1.0
+Release:       1
+License:       GPL
+Group:         X11/Applications/Games
+Source0:       http://team.gcu-squad.org/~fab/down/atakks.tgz
+Source1:       %{name}.desktop
+Patch0:                %{name}-dir.patch
+URL:           http://team.gcu-squad.org/~fab/
+BuildRequires: SDL-devel
+BuildRequires: SDL_image-devel
+Requires:      SDL >= 1.2.4
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define         _prefix         /usr/X11R6
+
+%description
+Ataxx is some old chinese reflexion game, like othello, and can be
+played by two players.
+
+%prep
+%setup -q -n %{name}_%{version}
+%patch0 -p1
+
+%build
+rm -f atakks
+
+LDFLAGS="-lSDL -lpthread -s -L/usr/X11R6/lib"
+CFLAGS="-Wall -ansi -DUS"
+gcc $LDFLAGS $CFLAGS -o %{name} *.c -I%{_includedir}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT $RPM_BUILD_ROOT%{_applnkdir}/Games 
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
+
+install *.bmp $RPM_BUILD_ROOT%{_datadir}/%{name}
+install %{name} $RPM_BUILD_ROOT%{_bindir}
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%dir %{_datadir}/%{name}
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}/%{name}/*.bmp
+%{_applnkdir}/Games/*
This page took 0.044979 seconds and 4 git commands to generate.