%define oname mp3splt %define major 0 %define libname %mklibname %{oname} %{major} %define develname %mklibname -d %{oname} Name: libmp3splt Version: 0.7.3 Release: %mkrel 2 Summary: Library to split MP3 and Ogg Files #Source0: http://ioalex.net/testing_downloads/snapshots/%{rev}/%{name}-%{version}.tar.gz Source0: http://prdownloads.sourceforge.net/mp3splt/%{name}-%{version}.tar.gz Patch0: libmp3splt-0.7-fix_str_fmt.patch Patch1: libmp3splt-0.7.3-remove-unneeded-ltdl.h-includes.patch URL: http://mp3splt.sourceforge.net Group: System/Libraries License: GPLv2+ BuildRequires: libogg-devel BuildRequires: libvorbis-devel BuildRequires: mad-devel BuildRequires: libid3tag-devel BuildRequires: zlib-devel BuildRequires: glibc-devel BuildRequires: libltdl-devel BuildRequires: pcre-devel %description The mp3Splt project provides utilities to split mp3 and ogg files, by selecting a begin and an end time position, without decoding. It is very useful to split large mp3/ogg into smaller files, or to split entire albums to obtain original tracks. To split an album, the split points and filenames can be selected manually or automatically from CDDB (internet or a local file), or from .cue files. It supports automatic silence detection, which can be used to adjust cddb/cue split points. It is also possible to extract tracks from Mp3Wrap or AlbumWrap files in a few seconds. The mp3splt project is divided in 3 parts: libmp3splt, mp3splt and mp3splt-gtk. %package -n %{libname} Summary: Library to split MP3 and Ogg Files Group: System/Libraries Requires: %{name}-i18n >= %{version}-%{release} %description -n %{libname} Library to split mp3 and ogg files selecting a begin and an end time position, without decoding. It's very useful to split large mp3/ogg to make smaller files or to split entire albums to obtain original tracks. %package -n %{name}-i18n Summary: Internationalization and locale data for %{name} Group: System/Internationalization BuildArch: noarch Conflicts: %{_lib}mp3splt0 < 0.7.3-2 %description -n %{name}-i18n Internationalization and locale data for %{name} %package -n %{develname} Summary: Development files for %{name} Group: Development/Other Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} This package contains development files for the mp3splt project. %prep %setup -q %apply_patches %build %configure2_5x \ --disable-rpath \ --disable-static \ --disable-doxygen_doc %make %install %makeinstall_std # we don't want these find %{buildroot} -name "*.la" -delete %find_lang %{name} %files -n %{libname} %doc AUTHORS ChangeLog NEWS README TODO %{_libdir}/%{name}.so.%{major}* %dir %{_libdir}/%{name} %{_libdir}/%{name}/libsplt_*.so.%{major}* %files -n %{name}-i18n -f %{name}.lang %files -n %{develname} %{_includedir}/%{name} %{_libdir}/%{name}.so %{_libdir}/%{name}/libsplt_*.so %{_datadir}/aclocal/%{oname}.m4