File: gtkpool.spec

package info (click to toggle)
gtkpool 0.5.0-9
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, squeeze, stretch, wheezy
  • size: 4,808 kB
  • ctags: 635
  • sloc: sh: 10,646; cpp: 2,653; perl: 1,850; makefile: 205
file content (52 lines) | stat: -rw-r--r-- 1,212 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
%define prefix /usr
%define name gtkpool
%define version 0.4.1
%define release 1rhl

Summary:   GTKPool is a 2D pool simulation.
Name:      %{name}
Version:   %{version}
Release:   %{release}
Copyright: GPL
Vendor:    Jacques Fortier & Brian Ashe <gtkpool@seul.org>
Url:       http://gtkpool.seul.org/
Icon:     lo32-app-gtkpool.xpm
Packager:  Brian Ashe <gtkpool@seul.org>
Group:     Amusements/Games
Source:    %{name}-%{version}.tar.gz
BuildRoot: /tmp/%{name}-buildroot

%description
GTKPool is a pool simulation.

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q

%build
./configure --prefix=%{prefix}

# Setup for parallel builds
numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
if [ "$numprocs" = "0" ]; then
  numprocs=1
fi

make -j$numprocs

%install
make install-strip DESTDIR=$RPM_BUILD_ROOT

cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.gtkpool
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.gtkpool
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.gtkpool

%clean
rm -rf $RPM_BUILD_ROOT/*
rm -rf $RPM_BUILD_DIR/gtkpool
rm -rf ../file.list.gtkpool


%files -f ../file.list.gtkpool