File: kwave.spec

package info (click to toggle)
kwave 0.7.2-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,048 kB
  • ctags: 4,906
  • sloc: cpp: 31,275; ansic: 13,111; sh: 9,511; perl: 2,724; makefile: 786; asm: 145
file content (74 lines) | stat: -rw-r--r-- 1,907 bytes parent folder | download
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
%define ver 0.7.2
%define release 1
%define filelist %{name}-0.7.2/files.list.%{name}
%define rpm_opt_flags ${RPM_OPT_FLAGS}

Summary:	KDE, Qt, WAV, Sound, FFT, Sonagram, Sample, Effects, 24 Bit, Ogg, Vorbis
Name:		kwave
Version: 	0.7.2
Release: 	1
Source0: 	kwave-0.7.2.tar.gz
Group:  	X11/Applications/Sound
Copyright:	GPL
URL:		http://kwave.sourceforge.net
Vendor: 	Thomas Eschenbacher <Thomas.Eschenbacher@gmx.de>
BuildRoot: 	/tmp/kwave-%{version}.root
Prefix:   	/usr/kde/3.3
Provides:	kwave
Requires: 	libqt-mt.so.3 >= 3.0
Requires: 	kdelibs >= 3.0
Requires:	id3lib >= 3.8.1
Requires:	libvorbis.so.0 >= 0.2.0
Requires:	libvorbisenc.so.2 >= 2.0.0
Requires:	libogg.so.0 >= 0.4.0
Requires:	no package provides libmad.so.0 > 0.14
Requires:	audiofile > 0.2.3
Requires:	gsl >= 1.4

Conflicts: 	libkwave
Obsoletes: 	libkwave

%description
A sound editor for KDE3, beta release.

%prep

%setup
rm -rf "$RPM_BUILD_ROOT"
DESTDIR=""
unset DESTDIR
CONFIGURE_OPTS="--with-install-root=$RPM_BUILD_ROOT \
	--enable-static=yes --enable-shared=yes ${CONFIGURE_OPTS}"
make -f Makefile.dist 

%build
DESTDIR=""
unset DESTDIR
make $MAKE_FLAGS

%install
rm -rf "$RPM_BUILD_ROOT"
make DESTDIR="$RPM_BUILD_ROOT" SUID_ROOT="" install

cd "$RPM_BUILD_ROOT"
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > "$RPM_BUILD_DIR"/%{filelist}
find . -type f | sed 's,^\.,\%attr(-\,root\,root) \%dir ,' >> "$RPM_BUILD_DIR"/%{filelist}
find . -type l | sed 's,^\.,\%attr(-\,root\,root) \%dir ,' >> "$RPM_BUILD_DIR"/%{filelist}
# remove files/directories that should not get into the package
mv "$RPM_BUILD_DIR"/%{filelist} /tmp/files.lst.tmp
cat /tmp/files.lst.tmp | grep -v /default$ | \
	grep -v /de$ | grep -v /en$ > /tmp/files.list.%{name}
rm -f /tmp/files.lst.tmp

%files -f /tmp/files.list.%{name}

%doc GNU-LICENSE CHANGES README TODO kwave.lsm

%clean
rm -Rf "$RPM_BUILD_ROOT"

%post
ldconfig

%postun
ldconfig