1 |
%define oname mp3splt |
2 |
%define major 0 |
3 |
%define libname %mklibname %{oname} %{major} |
4 |
%define develname %mklibname -d %{oname} |
5 |
|
6 |
Name: libmp3splt |
7 |
Version: 0.7 |
8 |
Release: %mkrel 1 |
9 |
Summary: Library to split MP3 and Ogg Files |
10 |
Source0: http://prdownloads.sourceforge.net/mp3splt/%{name}-%{version}.tar.gz |
11 |
Patch0: libmp3splt-0.7-fix_str_fmt.patch |
12 |
URL: http://mp3splt.sourceforge.net |
13 |
Group: System/Libraries |
14 |
License: GPLv2+ |
15 |
BuildRequires: libogg-devel |
16 |
BuildRequires: libvorbis-devel |
17 |
BuildRequires: mad-devel |
18 |
BuildRequires: libid3tag-devel |
19 |
BuildRequires: zlib-devel |
20 |
BuildRequires: glibc-devel |
21 |
BuildRequires: libltdl-devel |
22 |
BuildRequires: pcre-devel |
23 |
|
24 |
%description |
25 |
The mp3Splt project provides utilities to split mp3 and ogg files, |
26 |
by selecting a begin and an end time position, without decoding. |
27 |
It is very useful to split large mp3/ogg into smaller files, |
28 |
or to split entire albums to obtain original tracks. |
29 |
To split an album, the split points and filenames can be selected |
30 |
manually or automatically from CDDB (internet or a local file), |
31 |
or from .cue files. |
32 |
|
33 |
It supports automatic silence detection, which can be used |
34 |
to adjust cddb/cue split points. It is also possible to extract |
35 |
tracks from Mp3Wrap or AlbumWrap files in a few seconds. |
36 |
|
37 |
The mp3splt project is divided in 3 parts: |
38 |
libmp3splt, mp3splt and mp3splt-gtk. |
39 |
|
40 |
%package -n %{libname} |
41 |
Summary: Library to split MP3 and Ogg Files |
42 |
Group: System/Libraries |
43 |
|
44 |
%description -n %{libname} |
45 |
Library to split mp3 and ogg files selecting a begin and an end time position, |
46 |
without decoding. It's very useful to split large mp3/ogg to make smaller |
47 |
files or to split entire albums to obtain original tracks. |
48 |
|
49 |
%package -n %{develname} |
50 |
Summary: Development files for %{name} |
51 |
Group: Development/Other |
52 |
Requires: %{libname} = %{version}-%{release} |
53 |
Provides: %{name}-devel = %{version}-%{release} |
54 |
|
55 |
%description -n %{develname} |
56 |
This package contains development files for the mp3splt project. |
57 |
|
58 |
%prep |
59 |
%setup -q -n %{name}-%{version} |
60 |
%patch0 -p0 -b .strfmt |
61 |
|
62 |
%build |
63 |
%configure2_5x \ |
64 |
--disable-rpath \ |
65 |
--disable-static |
66 |
%make |
67 |
|
68 |
%install |
69 |
%makeinstall_std |
70 |
|
71 |
# we don't want these |
72 |
find %{buildroot} -name "*.la" -exec rm -rf {} \; |
73 |
|
74 |
%find_lang %{name} |
75 |
|
76 |
%clean |
77 |
rm -rf %{buildroot} |
78 |
|
79 |
%files -n %{libname} -f %{name}.lang |
80 |
%defattr(-,root,root) |
81 |
%doc AUTHORS ChangeLog NEWS README TODO |
82 |
%{_libdir}/%{name}.so.%{major}* |
83 |
%dir %{_libdir}/%{name} |
84 |
%{_libdir}/%{name}/libsplt_*.so.%{major}* |
85 |
|
86 |
%files -n %{develname} |
87 |
%defattr(-,root,root) |
88 |
%{_includedir}/%{name} |
89 |
%{_libdir}/%{name}.so |
90 |
%{_libdir}/%{name}/libsplt_*.so |
91 |
%{_datadir}/aclocal/%{oname}.m4 |