# # Conditional build: %bcond_without xmms # disable XMMS support # Summary: A WAV and MP3 file volume adjuster Summary(pl.UTF-8): Korektor poziomu głośności w plikach WAV i MP3 Name: normalize Version: 0.7.7 Release: 1 License: GPL v2+ Group: Applications/Sound Source0: http://savannah.nongnu.org/download/normalize/%{name}-%{version}.tar.bz2 # Source0-md5: 1749b16fc7a08aa5d0cf9f76eeaa8436 URL: http://normalize.nongnu.org/ BuildRequires: automake BuildRequires: gettext-tools BuildRequires: libmad-devel BuildRequires: rpmbuild(macros) >= 1.125 %{?with_xmms:BuildRequires: xmms-devel >= 1.0.0} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Normalize is an overly complicated tool for adjusting the volume of wave files to a standard level. This is useful for things like creating mixed CD's and MP3 collections, where different recording levels on different albums can cause the volume to vary greatly from song to song. You can also adjust the volume of MP3 files without reencoding, but it requires player with support for RVA2 (Relative Volume Adjustment) ID3v2 frame. Plugin for XMMS is available. %description -l pl.UTF-8 Normalize jest narzędziem do ustawiania poziomu głośności w plikach WAV przez dostosowanie go do standardowej wartości. Jest to przydatne w sytuacjach takich jak tworzenie składankowych płyt CD oraz zbiorów MP3, gdzie różne poziomy nagrywania na różnych albumach mogą spowodować, że poziom głośności różni się dość istotnie pomiędzy poszczególnymi utworami. Jeśli mamy odtwarzacz MP3 korzystający z ramek RVA2 w znacznikach ID3v2, to możemy również normalizować pliki MP3 bez konieczności ponownego kompresowania pliku. %package -n xmms-effect-rva Summary: RVA2 (Relative Volume Adjustment) ID3v2 frame support Summary(pl.UTF-8): Obsługa ramek RVA2 znaczników ID3v2 Group: X11/Applications/Sound Requires: xmms >= 1.0.0 %description -n xmms-effect-rva Plugin for XMMS that supports volume adjustment frames (RVA2 ID3v2 frames). %description -n xmms-effect-rva -l pl.UTF-8 Wtyczka dla XMMS-a zapewniająca obsługę zawartych w pliku MP3 informacji o dostrojeniu głośności (ramek RVA2 w znacznikach ID3v2). %prep %setup -q %build cp -f /usr/share/automake/config.sub config %configure \ --with-mad \ %{!?with_xmms:--disable-xmms} \ --with-xmms-prefix=%{xmms_prefix} \ --without-audiofile \ --disable-audiofiletest %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %if %{with xmms} rm -f $RPM_BUILD_ROOT%{xmms_effect_plugindir}/*.la %endif %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) %doc README NEWS TODO %attr(755,root,root) %{_bindir}/normalize %attr(755,root,root) %{_bindir}/normalize-mp3 %attr(755,root,root) %{_bindir}/normalize-ogg %{_mandir}/man1/normalize.1* %{_mandir}/man1/normalize-mp3.1* %if %{with xmms} %files -n xmms-effect-rva %defattr(644,root,root,755) %attr(755,root,root) %{xmms_effect_plugindir}/librva.so %endif