]>
Commit | Line | Data |
---|---|---|
84e828a2 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | %bcond_without ltdl # don't build ltdl | |
5 | # | |
6 | Summary: Libraries for the mp3splt project | |
7 | Summary(pl.UTF-8): Biblioteki do projektu mp3splt | |
84e828a2 | 8 | Name: libmp3splt |
9 | Version: 0.6.1a | |
10 | Release: 0.1 | |
11 | License: GPL v2 | |
12 | Group: Libraries | |
13 | Source0: http://downloads.sourceforge.net/mp3splt/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: a6a00d83e49adf27abb7a0cb0ea384a4 | |
15 | URL: http://mp3splt.sourceforge.net/ | |
16 | BuildRequires: autoconf | |
17 | BuildRequires: automake | |
18 | BuildRequires: gettext-devel | |
19 | BuildRequires: libid3tag-devel | |
20 | BuildRequires: libmad-devel | |
21 | BuildRequires: libtool | |
22 | BuildRequires: libvorbis-devel | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | The mp3Splt project provides utilities to split mp3 and ogg files, by | |
27 | selecting a begin and an end time position, without decoding. It is | |
28 | very useful to split large mp3/ogg into smaller files, or to split | |
29 | entire albums to obtain original tracks. To split an album, the split | |
30 | points and filenames can be selected manually or automatically from | |
31 | CDDB (internet or a local file), or from .cue files. | |
32 | ||
33 | It supports automatic silence detection, which can be used to adjust | |
34 | cddb/cue split points. It is also possible to extract tracks from | |
35 | Mp3Wrap or AlbumWrap files in a few seconds. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Projekt mp3Splt dostarcza narzędzi umożliwiających dzielenie plików w | |
39 | formacie mp3 i ogg poprzez zaznaczenie pozycji początku i końca | |
40 | dzielenia, bez potrzeby dekodowania. Dzielenie dużych plików mp3/ogg | |
41 | na mniejsze części jest bardzo użyteczne, można w ten sposób dzielić | |
42 | całe albumy by otrzymać oryginalne ścieżki. Żeby podzielić album | |
43 | punkty podziału i nazwy plików mogą zostać wybrane ręcznie lub | |
44 | automatycznie z wykorzystaniem CDDB (z Internetu lub lokalnie), albo z | |
45 | plików .cue. | |
46 | ||
47 | Projekt wspiera automatyczne wykrywanie ciszy, które może zostać | |
48 | wykorzystane do ustawienia punktów podziału cddb/cue. Jest również | |
49 | możliwe wyciągnięcie ścieżek z plików Mp3Wrap lub AlbumWrap w ciągu | |
50 | kilku sekund. | |
51 | ||
52 | %package devel | |
53 | Summary: Header files for libmp3splt library | |
54 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmp3splt | |
55 | Group: Development/Libraries | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | ||
58 | %description devel | |
59 | Header files for libmp3splt library. | |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Pliki nagłówkowe biblioteki libmp3splt. | |
63 | ||
64 | %package static | |
65 | Summary: Static libmp3splt library | |
66 | Summary(pl.UTF-8): Statyczna biblioteka libmp3splt | |
67 | Group: Development/Libraries | |
68 | Requires: %{name}-devel = %{version}-%{release} | |
69 | ||
70 | %description static | |
71 | Static libmp3splt library. | |
72 | ||
73 | %description static -l pl.UTF-8 | |
74 | Statyczna biblioteka libmp3splt. | |
75 | ||
76 | %prep | |
77 | %setup -q | |
78 | # Avoid standard rpaths on lib64 archs: | |
79 | sed -i -e 's|"/lib /usr/lib\b|"/%{_lib} %{_libdir}|' configure | |
80 | ||
81 | %build | |
82 | %{__gettextize} | |
83 | %{__libtoolize} | |
84 | %{__aclocal} -I m4 | |
85 | %{__autoconf} | |
86 | %{__autoheader} | |
87 | %{__automake} | |
88 | %configure \ | |
89 | %if %{with ltdl} | |
90 | --with-ltdl-lib=%{_libdir} \ | |
91 | --with-ltdl-include=%{_includedir} \ | |
92 | %endif | |
93 | %{!?with_static_libs:--disable-static} | |
94 | ||
95 | %{__make} | |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %{__make} install \ | |
101 | DESTDIR=$RPM_BUILD_ROOT | |
102 | ||
103 | %find_lang %{name} | |
104 | ||
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %post -p /sbin/ldconfig | |
109 | %postun -p /sbin/ldconfig | |
110 | ||
111 | %files -f %{name}.lang | |
112 | %defattr(644,root,root,755) | |
113 | %doc AUTHORS ChangeLog NEWS README TODO | |
114 | %attr(755,root,root) %{_libdir}/libmp3splt.so.*.*.* | |
115 | %attr(755,root,root) %ghost %{_libdir}/libmp3splt.so.0 | |
116 | %attr(755,root,root) %{_libdir}/%{name}/libsplt_mp3.so.*.*.* | |
117 | %attr(755,root,root) %ghost %{_libdir}/%{name}/libsplt_mp3.so.0 | |
118 | %attr(755,root,root) %{_libdir}/%{name}/libsplt_ogg.so.*.*.* | |
119 | %attr(755,root,root) %ghost %{_libdir}/%{name}/libsplt_ogg.so.0 | |
120 | ||
121 | %files devel | |
122 | %defattr(644,root,root,755) | |
123 | %{_libdir}/libmp3splt.so | |
124 | %{_libdir}/libmp3splt.la | |
125 | %{_libdir}/%{name}/libsplt_mp3.so | |
126 | %{_libdir}/%{name}/libsplt_mp3.la | |
127 | %{_libdir}/%{name}/libsplt_ogg.so | |
128 | %{_libdir}/%{name}/libsplt_ogg.la | |
129 | %{_includedir}/libmp3splt | |
130 | %{_aclocaldir}/mp3splt.m4 | |
131 | ||
132 | %if %{with static_libs} | |
133 | %files static | |
134 | %defattr(644,root,root,755) | |
135 | %{_libdir}/libmp3splt.a | |
136 | %{_libdir}/%{name}/libsplt_mp3.a | |
137 | %{_libdir}/%{name}/libsplt_ogg.a | |
138 | %endif |