]> git.pld-linux.org Git - packages/rogue.git/commitdiff
- initial release
authorwolf <wolf@pld-linux.org>
Sun, 10 Feb 2002 15:30:08 +0000 (15:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rogue.spec -> 1.1

rogue.spec [new file with mode: 0644]

diff --git a/rogue.spec b/rogue.spec
new file mode 100644 (file)
index 0000000..09d2ed1
--- /dev/null
@@ -0,0 +1,72 @@
+Summary:       The game that started roguelike genre.
+Summary(pl):   Gra, która zapocz±tkowa³a gatunek roguelike.
+Name:          rogue
+Version:       5.3
+Release:       1
+License:       GPL
+Group:         Applications/Games
+Group(de):     Applikationen/Spiele
+Group(pl):     Aplikacje/Gry
+Source0:       http://yarws.kid.waw.pl/files/%{name}.tar.z
+Source1:       %{name}.desktop
+Source2:       %{name}.png
+Patch0:                %{name}-rip_time.patch
+Patch1:                %{name}-ldflags.patch
+Patch2:                %{name}-paths.patch
+BuildRequires: ncurses-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define        _datadir        /var/games/rogue
+
+%description
+The game that started roguelike genre.
+
+%description -l pl
+Gra, która zapocz±tkowa³a gatunek roguelike.
+
+%prep
+%setup -q -c %{name}-%{version}
+%patch0 -p1
+%patch1 -p0
+%patch2 -p1
+
+%build
+for i in *.[ch]
+do
+       cat $i | sed 's/^#ifdef CURSES/#if 0/g' > $i.new
+       cat $i.new | sed 's/^#ifndef CURSES/#if 1/g' > $i
+       rm $i.new
+done
+cat instruct.c | sed 's@%{_datadir}@%{_prefix}/share/doc/%{name}-%{version}@' > instruct.c.new
+mv -f instruct.c.new instruct.c
+
+%{__make} CC="%{__cc}" \
+       CFLAGS="%{rpmcflags} -DUNIX -DUNIX_SYS5 -I%{_includedir}/ncurses -c" \
+       LDFLAGS="%{rpmldflags} -lncurses"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_prefix}/games,%{_datadir},%{_applnkdir}/Games/Roguelike,%{_pixmapsdir}}
+
+install rogue $RPM_BUILD_ROOT%{_prefix}/games
+touch $RPM_BUILD_ROOT%{_datadir}/rogue.scores
+
+gzip -9nf README
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games/Roguelike
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(2755,root,games) %{_prefix}/games/*
+%attr(2775,root,games) %dir %{_datadir}
+%attr(664,root,games) %config(noreplace) %verify(not md5 size mtime) %{_datadir}/rogue.scores
+
+# don't gzip rogue.instr!
+%doc usr/games/rogue.instr README.gz
+
+%{_applnkdir}/Games/Roguelike/*
+%{_pixmapsdir}/*
This page took 0.083106 seconds and 4 git commands to generate.