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