File: kwave.spec.in

package info (click to toggle)
kwave 0.8.2-5
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 7,300 kB
  • ctags: 3,987
  • sloc: cpp: 38,258; ansic: 849; asm: 148; sh: 111; makefile: 7; awk: 5
file content (97 lines) | stat: -rw-r--r-- 2,571 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
%define ver @RPM_SHORT_VERSION@
%define release @RPM_RELEASE@
%define filelist %{name}-@RPM_SHORT_VERSION@/files.list.%{name}

Summary:	@RPM_SUMMARY@
Name:		@RPM_NAME@
Version: 	@RPM_SHORT_VERSION@
Release: 	@RPM_RELEASE@
License:	GPL and others, see LICENSES file
Source0: 	kwave-@RPM_FULL_VERSION@.tar.gz
Group:  	Productivity/Multimedia/Sound/Editors
URL:		@RPM_URL@
Vendor: 	@RPM_VENDOR@
BuildRoot: 	@RPM_BUILDROOT@
Prefix:   	@prefix@
Provides:	@RPM_NAME@
Requires: 	libqt-mt.so.3 >= 3.0
Requires: 	kdelibs3 >= 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
Requires:	audiofile >= 0.2.3
Requires:	fftw >= 3.0
Requires:	flac
BuildRequires:  cmake >= 2.4.4
BuildRequires:	flac-devel
BuildRequires:	id3lib-devel >= 3.8.1
BuildRequires:	kdemultimedia3-devel
BuildRequires:	libogg-devel >= 1
BuildRequires:	audiofile > 0.2.3
BuildRequires:	libvorbis >= 1
BuildRequires:	fftw >= 3.0
BuildRequires:	kdesdk3-translate
BuildRequires:  gettext-devel

Conflicts: 	libkwave
Obsoletes: 	libkwave

%description
With Kwave you can edit many sorts of wav-files
including multi-channel files. You are able to
alter and play back each channel on its own.
Kwave also includes many plugins (most are
still under development) to transform the
wave-file in several ways and presents a
graphical view with a complete zoom-and scroll capability.

%prep

%setup

rm -rf "$RPM_BUILD_ROOT"
DESTDIR=""
unset DESTDIR

mkdir build
cd build
PATH=${PATH}:%{prefix}/bin \
    CXXFLAGS="${CXXFLAGS} ${RPM_OPT_FLAGS}" \
    CFLAGS="${CFLAGS} ${RPM_OPT_FLAGS}" \
    cmake .. \
    ${CONFIGURE_OPTS}

%build
DESTDIR=""
unset DESTDIR
make -C build $MAKE_FLAGS

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

cd "$RPM_BUILD_ROOT"
echo "%defattr(-,root,root)" > "$RPM_BUILD_DIR"/%{filelist}
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

%clean
rm -Rf "$RPM_BUILD_ROOT"

%post
ldconfig

%postun
ldconfig