File vorbisgain.spec of Package vorbisgain
Name: vorbisgain
Version: 0.34
Release: 8
License: LGPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libvorbis-devel libogg-devel dos2unix
Group: Productivity/Multimedia/Sound/Utilities
Summary: Calculate the Replay Gain for Ogg Vorbis files
URL: http://sjeng.org/vorbisgain.html
Source0: vorbisgain-%{version}.tar.bz2
Patch0: vorbisgain_Makefile_tabs.patch
%description
Calculate the Replay Gain for Ogg Vorbis files
VorbisGain is a utility that uses a psychoacoustic method to correct the volume of an Ogg Vorbis file to a predefined standardized loudness.
It is meant as a replacement for the normalization that is commonly used before encoding. Although normalization will ensure that each song has the same peak volume, this unfortunately does not say anything about the apparent loudness of the music, with the end result being that many normalized files still don't sound equally loud. VorbisGain uses psychoacoustics to address this deficiency. Moreover, unlike normalization, it's a lossless procedure which works by adding tags to the file. Additionally, it will add hints that can be used to prevent clipping on playback. It is based upon the ReplayGain technology.
The end result is that playback is both more convenient and of higher quality compared to a non-VorbisGain'ed file.
%prep
%setup
# workaround wrong end of line encoding in source-ball
dos2unix -f COPYING
%patch0 -p1
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --mandir=/usr/share/man
make
%install
make install DESTDIR=%{buildroot}
install -d -m755 %{buildroot}/usr/share/doc/packages/vorbisgain
install -m644 README %{buildroot}/usr/share/doc/packages/vorbisgain
install -m644 COPYING %{buildroot}/usr/share/doc/packages/vorbisgain
install -m644 NEWS %{buildroot}/usr/share/doc/packages/vorbisgain
%clean
# clean up the hard disc after build
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/bin/vorbisgain
%doc /usr/share/man/man1/vorbisgain.1.gz
%docdir /usr/share/doc/packages/vorbisgain
/usr/share/doc/packages/vorbisgain
%changelog