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