File: kwave.spec.in

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,845 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 @RPM_SHORT_VERSION@
%define release @RPM_RELEASE@
%define filelist %{name}-@RPM_SHORT_VERSION@/files.list.%{name}
%define rpm_opt_flags ${RPM_OPT_FLAGS}

Summary:	@RPM_SUMMARY@
Name:		@RPM_NAME@
Version: 	@RPM_SHORT_VERSION@
Release: 	@RPM_RELEASE@
Source0: 	kwave-@RPM_FULL_VERSION@.tar.gz
Group:  	@RPM_GROUP@
Copyright:	@RPM_COPYRIGHT@
URL:		@RPM_URL@
Vendor: 	@RPM_VENDOR@
BuildRoot: 	@RPM_BUILDROOT@
Prefix:   	@prefix@
Provides:	@RPM_NAME@
Requires: 	libqt-mt.so.3 >= 3.0
Requires: 	kdelibs >= 3.0
Requires:	@RPM_REQUIRE_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:	@RPM_REQUIRE_LIBMAD@ > 0.14
@LIBAUDIOFILE_REQUIRE@
Requires:	gsl >= 1.4

Conflicts: 	libkwave
Obsoletes: 	libkwave

%description
@RPM_DESCRIPTION@

%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