source: projects/specs/trunk/x/xwelltris/xwelltris-vl.spec @ 521

Revision 521, 2.8 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1Summary: XWelltris - a tetris like popular game for X Window
2Summary(ja): テトリスに似たゲーム
3Name: xwelltris
4Version: 1.0.1
5Release: 3%{?_dist_release}
6License: GPL
7Group: Applications/Games
8URL: http://xnc.dubna.su/xwelltris/
9Source0: %{name}-%{version}.src.tar.gz
10Source1: %{name}.desktop
11Source2: %{name}.png
12Source3: %{name}.6
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14
15BuildRequires: SDL-devel SDL_image-devel
16
17Vendor: Project Vine
18Distribution: Vine Linux
19
20%description
21This is a small tetris like game for X Window.
22Imaging that you are looking into the glass from the top.
23You see four walls and the bottom. The flat 2d figures falling
24down from the walls one by one. You can move these figures from one wall to
25another or rotate them...
26
27%description -l ja
28軽いテトリス-ライク-ゲーム。
29四角いコップを上から覗いたような視点で、
304面の壁を二次元のブロックが底に向かって次々と滑り落ちます。
31壁から壁に動かしたり、回転させたりして...頑張ってください。
32
33%prep
34%setup -q
35
36%build
37CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s ./configure \
38        --prefix=%{_prefix} --with-sdl
39make       
40
41%install
42rm -rf $RPM_BUILD_ROOT
43
44install -d "$RPM_BUILD_ROOT"/%{_prefix}/{bin,share/xwelltris}
45
46install xwelltris "$RPM_BUILD_ROOT"/%{_prefix}/bin
47
48install -p -m 644  data/polyomino.dat \
49                   data/board2.gif \
50                   data/font2.gif \
51                   data/topnine.gif \
52                   data/wellcuts.gif \
53                   data/wellintro.gif \
54                   "$RPM_BUILD_ROOT"/%{_prefix}/share/xwelltris
55
56# add desktop
57mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
58install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
59
60# add desktop icon
61mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
62install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/pixmaps/%{name}.png
63
64# add man
65mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man6
66install -p -D -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}/%{_mandir}/man6/%{name}.6
67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
71%files
72%defattr(755,root,root,755)
73%{_bindir}/%{name}*
74%defattr(644,root,root,755)
75%doc README README.keys AUTHORS LICENSE Changelog
76%{_datadir}/%{name}/*
77%{_datadir}/applications/%{name}*
78%{_datadir}/pixmaps/%{name}*
79%{_mandir}/man6/%{name}*
80
81%changelog
82* Wed Oct 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.1-3vl5
83- applied new versioning policy, spec in utf-8
84
85* Thu Aug 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.1-2vl3
86- rebuilt with new toolchain
87
88* Tue Oct  3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.1-2vl2
89- rebuilt for Vine Linux 4.0
90- changed Group to Applocations/Games
91- added URL
92
93* Thu Feb 17 2005 OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp> - 1.0.1-2vl1
94- initial spec for vine
95- add desktop and icon
96- add man from deb
97- add ja summary and description
Note: See TracBrowser for help on using the repository browser.