~ubuntu-branches/ubuntu/maverick/qgo/maverick

« back to all changes in this revision

Viewing changes to qgo.spec

  • Committer: Bazaar Package Importer
  • Author(s): Martin A. Godisch
  • Date: 2005-01-01 23:07:10 UTC
  • Revision ID: james.westby@ubuntu.com-20050101230710-fhng6yidm47xlb2i
Tags: upstream-1.0.0-r2
ImportĀ upstreamĀ versionĀ 1.0.0-r2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This spec file was generated using Kpp
 
2
# If you find any problems with this spec file please report
 
3
# the error to ian geiser <geiseri@msoe.edu>
 
4
Summary:   SGF viewer / editor and Go servers client
 
5
Name:      qgo
 
6
Version:   1.0.0
 
7
Release:   b1
 
8
Copyright: GPL
 
9
Vendor:     <Emmanuel Beranger>
 
10
Url:       http://qgo.sourceforge.net
 
11
 
 
12
Packager:   <Emmanuel Beranger>
 
13
Group:     Games
 
14
Source:    qgo-1.0.0.tar.gz
 
15
BuildRoot: /tmp/qgo
 
16
 
 
17
%description
 
18
 
 
19
 
 
20
%prep
 
21
%setup
 
22
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
 
23
                --prefix=/usr  \
 
24
                $LOCALFLAGS
 
25
%build
 
26
# Setup for parallel builds
 
27
numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
 
28
if [ "$numprocs" = "0" ]; then
 
29
  numprocs=1
 
30
fi
 
31
 
 
32
make -j$numprocs
 
33
 
 
34
%install
 
35
make install-strip DESTDIR=$RPM_BUILD_ROOT
 
36
 
 
37
cd $RPM_BUILD_ROOT
 
38
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.qgo
 
39
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.qgo
 
40
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.qgo
 
41
 
 
42
%clean
 
43
rm -rf $RPM_BUILD_ROOT/*
 
44
rm -rf $RPM_BUILD_DIR/qgo
 
45
rm -rf ../file.list.qgo
 
46
 
 
47
 
 
48
%files -f ../file.list.qgo