File: valknut.spec

package info (click to toggle)
valknut 0.3.7-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,588 kB
  • ctags: 1,781
  • sloc: cpp: 23,741; sh: 14,848; perl: 2,795; xml: 2,071; makefile: 152
file content (49 lines) | stat: -rw-r--r-- 1,406 bytes parent folder | download | duplicates (2)
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
# This spec file was generated using Kpp
# If you find any problems with this spec file please report
# the error to ian geiser <geiseri@msoe.edu>
Summary:   none
Name:      valknut
Version:   0.3.7
Release:   1
Copyright: GPL
Vendor:    Mathias Kster <mathen@users.berlios.de>
Url:       http://dcgui.berlios.de

Packager:  Mathias Kster <mathen@users.berlios.de>
Group:     none
Source:    %{name}-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-buildroot

%description
This is a client for the direct connect file sharing protocol with
a nice GUI.

%prep
%setup
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
                 --build=i386-linux --host=i386-linux --with-qt-dir=/usr/lib/qt3 --enable-mt --with-libdc=/usr/local \
                $LOCALFLAGS
%build
# 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.valknut
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.valknut
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.valknut

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


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