]> git.pld-linux.org Git - packages/libmp3splt.git/blame - libmp3splt.spec
- release 3
[packages/libmp3splt.git] / libmp3splt.spec
CommitLineData
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#
6Summary: Libraries for the mp3splt project
7Summary(pl.UTF-8): Biblioteki do projektu mp3splt
84e828a2 8Name: libmp3splt
9Version: 0.6.1a
b7dc48be 10Release: 3
84e828a2 11License: GPL v2
12Group: Libraries
13Source0: http://downloads.sourceforge.net/mp3splt/%{name}-%{version}.tar.gz
14# Source0-md5: a6a00d83e49adf27abb7a0cb0ea384a4
3d7d8b62 15Patch0: ltdl.patch
84e828a2 16URL: http://mp3splt.sourceforge.net/
17BuildRequires: autoconf
18BuildRequires: automake
19BuildRequires: gettext-devel
20BuildRequires: libid3tag-devel
21BuildRequires: libmad-devel
22BuildRequires: libtool
3d7d8b62 23BuildRequires: libltdl-devel
84e828a2 24BuildRequires: libvorbis-devel
3d7d8b62
AF
25%if %{with apidocs}
26BuildRequires: doxygen
27BuildRequires: graphviz
28%endif
84e828a2 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32The mp3Splt project provides utilities to split mp3 and ogg files, by
33selecting a begin and an end time position, without decoding. It is
34very useful to split large mp3/ogg into smaller files, or to split
35entire albums to obtain original tracks. To split an album, the split
36points and filenames can be selected manually or automatically from
37CDDB (internet or a local file), or from .cue files.
38
39It supports automatic silence detection, which can be used to adjust
40cddb/cue split points. It is also possible to extract tracks from
41Mp3Wrap or AlbumWrap files in a few seconds.
42
43%description -l pl.UTF-8
44Projekt mp3Splt dostarcza narzędzi umożliwiających dzielenie plików w
45formacie mp3 i ogg poprzez zaznaczenie pozycji początku i końca
46dzielenia, bez potrzeby dekodowania. Dzielenie dużych plików mp3/ogg
47na mniejsze części jest bardzo użyteczne, można w ten sposób dzielić
48całe albumy by otrzymać oryginalne ścieżki. Żeby podzielić album
49punkty podziału i nazwy plików mogą zostać wybrane ręcznie lub
50automatycznie z wykorzystaniem CDDB (z Internetu lub lokalnie), albo z
51plików .cue.
52
53Projekt wspiera automatyczne wykrywanie ciszy, które może zostać
54wykorzystane do ustawienia punktów podziału cddb/cue. Jest również
55możliwe wyciągnięcie ścieżek z plików Mp3Wrap lub AlbumWrap w ciągu
56kilku sekund.
57
58%package devel
59Summary: Header files for libmp3splt library
60Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmp3splt
61Group: Development/Libraries
62Requires: %{name} = %{version}-%{release}
63
64%description devel
65Header files for libmp3splt library.
66
67%description devel -l pl.UTF-8
68Pliki nagłówkowe biblioteki libmp3splt.
69
70%package static
71Summary: Static libmp3splt library
72Summary(pl.UTF-8): Statyczna biblioteka libmp3splt
73Group: Development/Libraries
74Requires: %{name}-devel = %{version}-%{release}
75
76%description static
77Static libmp3splt library.
78
79%description static -l pl.UTF-8
80Statyczna biblioteka libmp3splt.
81
3d7d8b62
AF
82%package apidocs
83Summary: libmp3splt API documentation
84Summary(pl.UTF-8): Dokumentacja API biblioteki libmp3splt
85Group: Documentation
86
87%description apidocs
88API and internal documentation for libmp3splt library.
89
90%description apidocs -l pl.UTF-8
91Dokumentacja API biblioteki libmp3splt.
92
84e828a2 93%prep
94%setup -q
3d7d8b62 95%patch0 -p1
33c620b9
AF
96sed -i -e 's/fr_FR/fr/;s/de_DE/de/;' po/LINGUAS
97mv po/de_DE.po po/de.po
98mv 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
118rm -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
128rm -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
This page took 0.090717 seconds and 4 git commands to generate.