]> git.pld-linux.org Git - packages/libmp3splt.git/blame - libmp3splt.spec
- clean up
[packages/libmp3splt.git] / libmp3splt.spec
CommitLineData
84e828a2 1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
4%bcond_without ltdl # don't build ltdl
5#
6Summary: Libraries for the mp3splt project
7Summary(pl.UTF-8): Biblioteki do projektu mp3splt
84e828a2 8Name: libmp3splt
9Version: 0.6.1a
10Release: 0.1
11License: GPL v2
12Group: Libraries
13Source0: http://downloads.sourceforge.net/mp3splt/%{name}-%{version}.tar.gz
14# Source0-md5: a6a00d83e49adf27abb7a0cb0ea384a4
15URL: http://mp3splt.sourceforge.net/
16BuildRequires: autoconf
17BuildRequires: automake
18BuildRequires: gettext-devel
19BuildRequires: libid3tag-devel
20BuildRequires: libmad-devel
21BuildRequires: libtool
22BuildRequires: libvorbis-devel
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26The mp3Splt project provides utilities to split mp3 and ogg files, by
27selecting a begin and an end time position, without decoding. It is
28very useful to split large mp3/ogg into smaller files, or to split
29entire albums to obtain original tracks. To split an album, the split
30points and filenames can be selected manually or automatically from
31CDDB (internet or a local file), or from .cue files.
32
33It supports automatic silence detection, which can be used to adjust
34cddb/cue split points. It is also possible to extract tracks from
35Mp3Wrap or AlbumWrap files in a few seconds.
36
37%description -l pl.UTF-8
38Projekt mp3Splt dostarcza narzędzi umożliwiających dzielenie plików w
39formacie mp3 i ogg poprzez zaznaczenie pozycji początku i końca
40dzielenia, bez potrzeby dekodowania. Dzielenie dużych plików mp3/ogg
41na mniejsze części jest bardzo użyteczne, można w ten sposób dzielić
42całe albumy by otrzymać oryginalne ścieżki. Żeby podzielić album
43punkty podziału i nazwy plików mogą zostać wybrane ręcznie lub
44automatycznie z wykorzystaniem CDDB (z Internetu lub lokalnie), albo z
45plików .cue.
46
47Projekt wspiera automatyczne wykrywanie ciszy, które może zostać
48wykorzystane do ustawienia punktów podziału cddb/cue. Jest również
49możliwe wyciągnięcie ścieżek z plików Mp3Wrap lub AlbumWrap w ciągu
50kilku sekund.
51
52%package devel
53Summary: Header files for libmp3splt library
54Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmp3splt
55Group: Development/Libraries
56Requires: %{name} = %{version}-%{release}
57
58%description devel
59Header files for libmp3splt library.
60
61%description devel -l pl.UTF-8
62Pliki nagłówkowe biblioteki libmp3splt.
63
64%package static
65Summary: Static libmp3splt library
66Summary(pl.UTF-8): Statyczna biblioteka libmp3splt
67Group: Development/Libraries
68Requires: %{name}-devel = %{version}-%{release}
69
70%description static
71Static libmp3splt library.
72
73%description static -l pl.UTF-8
74Statyczna biblioteka libmp3splt.
75
76%prep
77%setup -q
78# Avoid standard rpaths on lib64 archs:
79sed -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
98rm -rf $RPM_BUILD_ROOT
99
100%{__make} install \
101 DESTDIR=$RPM_BUILD_ROOT
102
103%find_lang %{name}
104
105%clean
106rm -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
This page took 0.064985 seconds and 4 git commands to generate.