Projects
Multimedia
normalize
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
normalize.spec
Changed
@@ -5,14 +5,12 @@ Group: Productivity/Multimedia/Sound/Editors and Convertors Packager: Henne Vogelsang <henne@links2linux.de> Version: 0.7.7 -Release: 0.pm.4 +Release: 0 Source0: http://savannah.nongnu.org/download/%name/%name-%version.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if %suse_version >= 1130 -BuildRequires: libmad-devel audiofile-devel -%else -BuildRequires: glib-devel gtk-devel libmad-devel xorg-x11-devel xmms-devel audiofile-devel -%endif +BuildRequires: pkg-config +BuildRequires: pkgconfig(mad) +BuildRequires: pkgconfig(audiofile) %description Normalize is a tool for adjusting the volume of audio files to a @@ -20,32 +18,39 @@ collections, where different recording levels on different albums can cause the volume to vary greatly from song to song. -%if %suse_version < 1130 -%package -n xmms-plugins-normalize -Summary: xmms normalize plugin -Group: Productivity/Multimedia/Sound/Players -Requires: xmms-lib - -%description -n xmms-plugins-normalize -A normalize plugin for the XMMS media player -%endif - %prep %setup -q %build -%configure --with-mad -make +mkdir $$ +export PATH="$PWD/$$:$PATH" +tee $$/audiofile-config <<'_EOF_' +#!/bin/bash +case "$1" in + --libs) pkg-config --libs audiofile ;; + --cflags) pkg-config --cflags audiofile ;; + --version) pkg-config --modversion audiofile ;; +esac +_EOF_ +chmod -v 555 $$/audiofile-config +export AUDIOFILE_CONFIG=$PWD/$$/audiofile-config +export MP3DECODE=mpg123 +export MP3ENCODE=lame +export OGGDECODE=oggdec +export OGGENCODE=oggenc +export VORBISCOMMENT=vorbiscomment +export FLACDECODE=flac +export FLACENCODE=flac +export METAFLAC=metaflac +%configure \ + --disable-helper-search \ + --with-mad +%make_build %install -make DESTDIR=$RPM_BUILD_ROOT install -%if %suse_version < 1130 -rm $RPM_BUILD_ROOT%_libdir/xmms/Effect/librva.la -%endif +%makeinstall %find_lang %{name} -%clean -rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-, root, root) @@ -53,9 +58,3 @@ %_bindir/* %{_mandir}/man1/* -%if %suse_version < 1130 -%files -n xmms-plugins-normalize -%defattr(-, root, root) -%_libdir/xmms/Effect/librva.so -%endif -
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.