From 952084077aa9e02501813761b5b653cf899a4140 Mon Sep 17 00:00:00 2001 From: Stefan Posdzich Date: Mon, 8 Jun 2009 18:25:58 +0000 Subject: [PATCH] Initial commit --- .cvsignore | 1 + bastet.desktop | 10 +++++ bastet.png | Bin 0 -> 1957 bytes bastet.spec | 112 +++++++++++++++++++++++++++++++++++++++++++++++++ import.log | 1 + sources | 1 + 6 files changed, 125 insertions(+) create mode 100644 bastet.desktop create mode 100644 bastet.png create mode 100644 bastet.spec create mode 100644 import.log diff --git a/.cvsignore b/.cvsignore index e69de29..35207f5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +bastet-0.43.tgz diff --git a/bastet.desktop b/bastet.desktop new file mode 100644 index 0000000..d139c56 --- /dev/null +++ b/bastet.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Name=bastet +Comment=An evil falling bricks game +Exec=bastet +Icon=bastet +Terminal=true +Type=Application +Categories=Game;ArcadeGame; \ No newline at end of file diff --git a/bastet.png b/bastet.png new file mode 100644 index 0000000000000000000000000000000000000000..b95a88b9b6e0040f2363f87ccdc8bd75a4d5b4b1 GIT binary patch literal 1957 zcmeH`J!@A{491_@7PZ;1(v>9u%epb!9{0+0&diVR?A5ck zv3ibLGQQ=AfzFo~3)6r@Zlr6>()lTK-l?t~^x zA*VKBid0YqDyEVuRE4UkrYhB;ZtAH{4QQA~YETPWrj=UMhPG*^Hpj$DQ>K#B=rBh* z=mHmWNf)}p)m+n+?r=Bvbf*VA%p*PM1uyeTFM7k)eNXrm n@Zre-j{yIh2`7*|2I>#^`M9{h_~!Nf-KkYw+ngP&K6v~M6si#? literal 0 HcmV?d00001 diff --git a/bastet.spec b/bastet.spec new file mode 100644 index 0000000..63a5f7c --- /dev/null +++ b/bastet.spec @@ -0,0 +1,112 @@ +Name: bastet +Version: 0.43 +Release: 5%{?dist} +Summary: An evil falling bricks game + +Group: Amusements/Games +License: GPLv3+ +URL: http://fph.altervista.org/prog/bastet.html +Source0: http://fph.altervista.org/prog/files/%{name}-%{version}.tgz +Source1: %{name}.desktop +# self-made icon +Source2: %{name}.png +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: boost-devel ncurses-devel desktop-file-utils + + +%description +Bastet is a simple ncurses-based falling bricks like game. Unlike +normal, however, Bastet does not choose your next brick at random. +Instead, it uses a special algorithm designed to choose the worst +brick possible. As you can imagine, playing Bastet can be a very +frustrating experience! + + +%prep +%setup -q +# remove reference to Tetris to match our guidelines +sed -e 's/Tetris(R)/any falling bricks game/g' -e 's/Tetris/falling bricks game/g' \ +-e 's/tetris/falling bricks game/g' README > README.new +mv -f README.new README +# remove also any reference to Tetris in the bastet manpage +sed -e 's/Tetris(r)/any falling bricks game/g' -e 's/tetris/falling bricks game/g' \ +bastet.6 > bastet.6.new +mv -f bastet.6.new bastet.6 + + +%build + +make %{?_smp_mflags} CXXFLAGS="%{optflags}" + + +%install +rm -rf %{buildroot} + +mkdir -p %{buildroot}%{_bindir} + +install -p -m 755 bastet %{buildroot}%{_bindir}/bastet + +# below the desktop file and icon stuff +desktop-file-install \ + --dir=%{buildroot}%{_datadir}/applications \ + %{SOURCE1} + +mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps + +install -p -m 0644 %{SOURCE2} \ + %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png + +# manpage +mkdir -p %{buildroot}%{_mandir}/man6/ + install -p -m 0644 %{name}.6 \ + %{buildroot}%{_mandir}/man6/%{name}.6 + + +%clean +rm -rf %{buildroot} + + +%post +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + + +%postun +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + + +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + + +%files +%defattr(-,root,root,-) +%doc AUTHORS LICENSE NEWS README +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/*/apps/%{name}.png +%{_mandir}/man6/* + + +%changelog +* Sat Jun 06 2009 Stefan Posdzich - 0.43-5 +- Changed CFLAGS to CXXFLAGS + +* Fri Jun 05 2009 Stefan Posdzich - 0.43-4 +- Added new icon cache scriptlets +- Added optflags +- Changed license to GPLv3+ +- Removed manually gzip of manpage + +* Thu Jun 04 2009 Stefan Posdzich - 0.43-3 +- Add manpage +- Removed reference to Tetris in the bastet manpage + +* Mon Jun 01 2009 Stefan Posdzich - 0.43-2 +- Removed reference to Tetris to match our guidelines + +* Mon Jun 01 2009 Stefan Posdzich - 0.43-1 +- Initial SPEC file diff --git a/import.log b/import.log new file mode 100644 index 0000000..9b00d2d --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +bastet-0_43-5_fc11:HEAD:bastet-0.43-5.fc11.src.rpm:1244485516 diff --git a/sources b/sources index e69de29..a3533f1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b47090daa7b6d89b98b5b477cf155733 bastet-0.43.tgz