]>
Commit | Line | Data |
---|---|---|
97bc134e | 1 | Summary: A tag library for reading and editing audio meta data |
3ef1ce87 | 2 | Summary(pl.UTF-8): Biblioteka tag do odczytu i edycji metadanych dotyczących dźwięku |
09f517f6 | 3 | Name: taglib |
0b868bba | 4 | Version: 1.12 |
f7c6dbb4 | 5 | Release: 1 |
f6c1c82d | 6 | License: LGPL v2.1 or MPL v1.1 |
55c3590b | 7 | Group: Libraries |
f7c6dbb4 | 8 | #Source0Download: http://taglib.github.io/ |
0b868bba JP |
9 | Source0: https://taglib.github.io/releases/%{name}-%{version}.tar.gz |
10 | # Source0-md5: 4313ed2671234e029b7af8f97c84e9af | |
f7c6dbb4 | 11 | URL: http://taglib.github.io/ |
0b868bba | 12 | BuildRequires: cmake >= 3.0.0 |
4aa1b00d | 13 | BuildRequires: libstdc++-devel |
f416622e | 14 | BuildRequires: perl-base |
fb954ded | 15 | BuildRequires: pkgconfig |
f5fd5044 | 16 | BuildRequires: rpmbuild(macros) >= 1.605 |
0b868bba | 17 | BuildRequires: zlib-devel |
09f517f6 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
f758e64b JB |
21 | TagLib is a library for reading and editing the meta-data of several |
22 | popular audio formats. Currently it supports both ID3v1 and ID3v2 for | |
23 | MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments in | |
24 | FLAC, MPC, Speex, WavPack TrueAudio, WAV, AIFF, MP4 and ASF files. | |
09f517f6 | 25 | |
b747209f | 26 | %description -l pl.UTF-8 |
f758e64b JB |
27 | TagLib to biblioteka do odczytu i edycji metadanych kilku popularnych |
28 | formatów dźwiękowych. Aktualnie obsługiwane są znaczniki ID3v1 i ID3v2 | |
29 | w plikach MP3, komentarze Ogg Vorbis oraz znaczniki ID3 i komentarze | |
30 | Vorbis w plikach FLAC, MPC, Speex, WavPack TrueAudio, WAV, AIFF, MP4 i | |
31 | ASF. | |
09f517f6 | 32 | |
33 | %package devel | |
34 | Summary: libtag - header files | |
3ef1ce87 | 35 | Summary(pl.UTF-8): libtag - pliki nagłówkowe |
55c3590b | 36 | Group: Development/Libraries |
09f517f6 | 37 | Requires: %{name} = %{version}-%{release} |
23366593 | 38 | Requires: libstdc++-devel |
0b868bba | 39 | Requires: zlib-devel |
09f517f6 | 40 | |
41 | %description devel | |
23366593 | 42 | Header files for tag library. |
09f517f6 | 43 | |
b747209f JR |
44 | %description devel -l pl.UTF-8 |
45 | Pliki nagłówkowe biblioteki tag. | |
09f517f6 | 46 | |
1b404d9f | 47 | %package examples |
55c3590b | 48 | Summary: Example codes for taglib |
1b404d9f | 49 | Summary(hu.UTF-8): Példaprogramok |
55c3590b JB |
50 | Summary(pl.UTF-8): Przykładowe programy w postaci źródłowej dla tagliba |
51 | Group: Development/Libraries | |
1b404d9f ZU |
52 | |
53 | %description examples | |
55c3590b | 54 | Example codes for taglib. |
1b404d9f ZU |
55 | |
56 | %description examples -l hu.UTF-8 | |
57 | Példaprogramok. | |
58 | ||
55c3590b JB |
59 | %description examples -l pl.UTF-8 |
60 | Przykładowe programy w postaci źródłowej dla tagliba. | |
61 | ||
09f517f6 | 62 | %prep |
f56130a1 | 63 | %setup -q |
09f517f6 | 64 | |
65 | %build | |
9ee83894 BZ |
66 | install -d build |
67 | cd build | |
f6c1c82d | 68 | %cmake .. \ |
f6c1c82d JB |
69 | -DWITH_ASF=ON \ |
70 | -DWITH_MP4=ON | |
71 | ||
09f517f6 | 72 | %{__make} |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
9ee83894 | 77 | %{__make} -C build install \ |
09f517f6 | 78 | DESTDIR=$RPM_BUILD_ROOT |
79 | ||
1b404d9f ZU |
80 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
81 | cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
82 | ||
09f517f6 | 83 | %clean |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post -p /sbin/ldconfig | |
87 | %postun -p /sbin/ldconfig | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
520a1b92 | 91 | %doc AUTHORS NEWS |
09f517f6 | 92 | %attr(755,root,root) %{_libdir}/libtag.so.*.*.* |
55c3590b | 93 | %attr(755,root,root) %ghost %{_libdir}/libtag.so.1 |
f56130a1 | 94 | %attr(755,root,root) %{_libdir}/libtag_c.so.*.*.* |
55c3590b | 95 | %attr(755,root,root) %ghost %{_libdir}/libtag_c.so.0 |
09f517f6 | 96 | |
97 | %files devel | |
d07dd10b | 98 | %defattr(644,root,root,755) |
09f517f6 | 99 | %attr(755,root,root) %{_bindir}/taglib-config |
520a1b92 JB |
100 | %attr(755,root,root) %{_libdir}/libtag.so |
101 | %attr(755,root,root) %{_libdir}/libtag_c.so | |
08f46e02 | 102 | %{_pkgconfigdir}/taglib.pc |
fb954ded | 103 | %{_pkgconfigdir}/taglib_c.pc |
f56130a1 | 104 | %{_includedir}/taglib |
1b404d9f ZU |
105 | |
106 | %files examples | |
107 | %defattr(644,root,root,755) | |
108 | %{_examplesdir}/%{name}-%{version} |