]> git.pld-linux.org Git - packages/normalize.git/blob - normalize.spec
- updated gettext BR
[packages/normalize.git] / normalize.spec
1 #
2 # Conditional build:
3 %bcond_without  xmms    # disable XMMS support
4 #
5 Summary:        A WAV and MP3 file volume adjuster
6 Summary(pl.UTF-8):      Korektor poziomu głośności w plikach WAV i MP3
7 Name:           normalize
8 Version:        0.7.7
9 Release:        1
10 License:        GPL v2+
11 Group:          Applications/Sound
12 Source0:        http://savannah.nongnu.org/download/normalize/%{name}-%{version}.tar.bz2
13 # Source0-md5:  1749b16fc7a08aa5d0cf9f76eeaa8436
14 URL:            http://normalize.nongnu.org/
15 BuildRequires:  automake
16 BuildRequires:  gettext-tools
17 BuildRequires:  libmad-devel
18 BuildRequires:  rpmbuild(macros) >= 1.125
19 %{?with_xmms:BuildRequires:     xmms-devel >= 1.0.0}
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Normalize is an overly complicated tool for adjusting the volume of
24 wave files to a standard level.  This is useful for things like
25 creating mixed CD's and MP3 collections, where different recording
26 levels on different albums can cause the volume to vary greatly from
27 song to song.
28
29 You can also adjust the volume of MP3 files without reencoding, but it
30 requires player with support for RVA2 (Relative Volume Adjustment)
31 ID3v2 frame. Plugin for XMMS is available.
32
33 %description -l pl.UTF-8
34 Normalize jest narzędziem do ustawiania poziomu głośności w plikach
35 WAV przez dostosowanie go do standardowej wartości. Jest to przydatne
36 w sytuacjach takich jak tworzenie składankowych płyt CD oraz zbiorów
37 MP3, gdzie różne poziomy nagrywania na różnych albumach mogą
38 spowodować, że poziom głośności różni się dość istotnie pomiędzy
39 poszczególnymi utworami.
40
41 Jeśli mamy odtwarzacz MP3 korzystający z ramek RVA2 w znacznikach
42 ID3v2, to możemy również normalizować pliki MP3 bez konieczności
43 ponownego kompresowania pliku.
44
45 %package -n xmms-effect-rva
46 Summary:        RVA2 (Relative Volume Adjustment) ID3v2 frame support
47 Summary(pl.UTF-8):      Obsługa ramek RVA2 znaczników ID3v2
48 Group:          X11/Applications/Sound
49 Requires:       xmms >= 1.0.0
50
51 %description -n xmms-effect-rva
52 Plugin for XMMS that supports volume adjustment frames (RVA2 ID3v2
53 frames).
54
55 %description -n xmms-effect-rva -l pl.UTF-8
56 Wtyczka dla XMMS-a zapewniająca obsługę zawartych w pliku MP3
57 informacji o dostrojeniu głośności (ramek RVA2 w znacznikach ID3v2).
58
59 %prep
60 %setup  -q
61
62 %build
63 cp -f /usr/share/automake/config.sub config
64
65 %configure \
66         --with-mad \
67         %{!?with_xmms:--disable-xmms} \
68         --with-xmms-prefix=%{xmms_prefix} \
69         --without-audiofile \
70         --disable-audiofiletest
71
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 %if %{with xmms}
81 rm -f $RPM_BUILD_ROOT%{xmms_effect_plugindir}/*.la
82 %endif
83
84 %find_lang %{name}
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %files -f %{name}.lang
90 %defattr(644,root,root,755)
91 %doc README NEWS TODO
92 %attr(755,root,root) %{_bindir}/normalize
93 %attr(755,root,root) %{_bindir}/normalize-mp3
94 %attr(755,root,root) %{_bindir}/normalize-ogg
95 %{_mandir}/man1/normalize.1*
96 %{_mandir}/man1/normalize-mp3.1*
97
98 %if %{with xmms}
99 %files -n xmms-effect-rva
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{xmms_effect_plugindir}/librva.so
102 %endif
This page took 0.06065 seconds and 3 git commands to generate.