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