]>
Commit | Line | Data |
---|---|---|
6080029d | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without xmms # disable XMMS support | |
688273db | 4 | # |
e46e4c27 | 5 | Summary: A WAV and MP3 file volume adjuster |
f39daff0 | 6 | Summary(pl.UTF-8): Korektor poziomu głośności w plikach WAV i MP3 |
3b5c1fd1 | 7 | Name: normalize |
37a925ed | 8 | Version: 0.7.7 |
9 | Release: 1 | |
688273db | 10 | License: GPL v2+ |
3b5c1fd1 | 11 | Group: Applications/Sound |
37a925ed | 12 | Source0: http://savannah.nongnu.org/download/normalize/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 1749b16fc7a08aa5d0cf9f76eeaa8436 | |
14 | URL: http://normalize.nongnu.org/ | |
74e649ed | 15 | BuildRequires: automake |
91f66c4a | 16 | BuildRequires: gettext-tools |
0c439dc8 | 17 | BuildRequires: libmad-devel |
8a786f99 | 18 | BuildRequires: rpmbuild(macros) >= 1.125 |
688273db | 19 | %{?with_xmms:BuildRequires: xmms-devel >= 1.0.0} |
3b5c1fd1 SZ |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
e46e4c27 | 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 | |
571e6a3d | 25 | creating mixed CD's and MP3 collections, where different recording |
e46e4c27 | 26 | levels on different albums can cause the volume to vary greatly from |
27 | song to song. | |
74e649ed | 28 | |
571e6a3d | 29 | You can also adjust the volume of MP3 files without reencoding, but it |
e46e4c27 | 30 | requires player with support for RVA2 (Relative Volume Adjustment) |
cd127534 | 31 | ID3v2 frame. Plugin for XMMS is available. |
3b5c1fd1 | 32 | |
e7dae7e9 JR |
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. | |
74e649ed | 40 | |
e7dae7e9 JR |
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 | |
74e649ed | 43 | ponownego kompresowania pliku. |
e46e4c27 | 44 | |
45 | %package -n xmms-effect-rva | |
74e649ed | 46 | Summary: RVA2 (Relative Volume Adjustment) ID3v2 frame support |
f39daff0 | 47 | Summary(pl.UTF-8): Obsługa ramek RVA2 znaczników ID3v2 |
f741d3b0 | 48 | Group: X11/Applications/Sound |
688273db | 49 | Requires: xmms >= 1.0.0 |
e46e4c27 | 50 | |
51 | %description -n xmms-effect-rva | |
cd127534 | 52 | Plugin for XMMS that supports volume adjustment frames (RVA2 ID3v2 |
e46e4c27 | 53 | frames). |
54 | ||
e7dae7e9 JR |
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). | |
3b5c1fd1 SZ |
58 | |
59 | %prep | |
60 | %setup -q | |
3b5c1fd1 SZ |
61 | |
62 | %build | |
74e649ed | 63 | cp -f /usr/share/automake/config.sub config |
ed0fe930 | 64 | |
e46e4c27 | 65 | %configure \ |
66 | --with-mad \ | |
be0d7b24 | 67 | %{!?with_xmms:--disable-xmms} \ |
cd8280a6 | 68 | --with-xmms-prefix=%{xmms_prefix} \ |
e46e4c27 | 69 | --without-audiofile \ |
70 | --disable-audiofiletest | |
3b5c1fd1 SZ |
71 | |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
cd8280a6 | 77 | %{__make} install \ |
78 | DESTDIR=$RPM_BUILD_ROOT | |
c3f24890 | 79 | |
688273db JB |
80 | %if %{with xmms} |
81 | rm -f $RPM_BUILD_ROOT%{xmms_effect_plugindir}/*.la | |
82 | %endif | |
3b5c1fd1 | 83 | |
3b5c1fd1 SZ |
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) | |
688273db | 91 | %doc README NEWS TODO |
fa0187d9 | 92 | %attr(755,root,root) %{_bindir}/normalize |
688273db JB |
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* | |
e46e4c27 | 97 | |
6080029d | 98 | %if %{with xmms} |
e46e4c27 | 99 | %files -n xmms-effect-rva |
100 | %defattr(644,root,root,755) | |
688273db | 101 | %attr(755,root,root) %{xmms_effect_plugindir}/librva.so |
6080029d | 102 | %endif |