%define name mp3packer %define version 2.04 %define release %mkrel 2 %if %_lib == lib %define binary mp3packer %else %define binary mp3packer64 %endif Summary: MP3 reorganizer and repacker Name: %{name} Version: %{version} Release: %{release} Source0: http://omion.dyndns.org/mp3packer/%{name}-%{version}_src.zip #gw see http://www.hydrogenaudio.org/forums/index.php?showtopic=32379&view=findpost&p=812235 Patch0: mp3packer-2.04-fix-build.patch License: GPLv2+ Group: Sound/Utilities Url: http://omion.dyndns.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: ocaml >= 4 BuildRequires: p7zip %description MP3packer is a program which can rearrange the data within an MP3 to fulfill specific goals. By default, the program generates the smallest MP3 possible (with the least padding). However, many people also use it to turn VBR files into CBR for use with players which don't support VBR. %prep %setup -T -c #gw this source file doesn't unpack with unzip 7z e %SOURCE0 %apply_patches touch .depend %build make depend %make %binary %install rm -rf %{buildroot} mkdir -p %buildroot%_bindir/ cp %binary %buildroot%_bindir/%name %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc *.html %_bindir/%name %changelog * Sat Jan 12 2013 umeabot <umeabot> 2.04-2.mga3 + Revision: 360337 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Dec 11 2012 gw666 <gw666> 2.04-1.mga3 + Revision: 329659 - new version - depend on ocaml 4 for building - add build patch from hydrogenaudio forum - work around stupid makefile * Tue Dec 11 2012 gw666 <gw666> 1.26-1.mga3 + Revision: 329594 - fix rpm package group - imported package mp3packer