]> git.pld-linux.org Git - packages/taglib.git/blob - taglib.spec
up to 1.12
[packages/taglib.git] / taglib.spec
1 Summary:        A tag library for reading and editing audio meta data
2 Summary(pl.UTF-8):      Biblioteka tag do odczytu i edycji metadanych dotyczących dźwięku
3 Name:           taglib
4 Version:        1.12
5 Release:        1
6 License:        LGPL v2.1 or MPL v1.1
7 Group:          Libraries
8 #Source0Download: http://taglib.github.io/
9 Source0:        https://taglib.github.io/releases/%{name}-%{version}.tar.gz
10 # Source0-md5:  4313ed2671234e029b7af8f97c84e9af
11 URL:            http://taglib.github.io/
12 BuildRequires:  cmake >= 3.0.0
13 BuildRequires:  libstdc++-devel
14 BuildRequires:  perl-base
15 BuildRequires:  pkgconfig
16 BuildRequires:  rpmbuild(macros) >= 1.605
17 BuildRequires:  zlib-devel
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
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.
25
26 %description -l pl.UTF-8
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.
32
33 %package devel
34 Summary:        libtag - header files
35 Summary(pl.UTF-8):      libtag - pliki nagłówkowe
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       libstdc++-devel
39 Requires:       zlib-devel
40
41 %description devel
42 Header files for tag library.
43
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki tag.
46
47 %package examples
48 Summary:        Example codes for taglib
49 Summary(hu.UTF-8):      Példaprogramok
50 Summary(pl.UTF-8):      Przykładowe programy w postaci źródłowej dla tagliba
51 Group:          Development/Libraries
52
53 %description examples
54 Example codes for taglib.
55
56 %description examples -l hu.UTF-8
57 Példaprogramok.
58
59 %description examples -l pl.UTF-8
60 Przykładowe programy w postaci źródłowej dla tagliba.
61
62 %prep
63 %setup -q
64
65 %build
66 install -d build
67 cd build
68 %cmake .. \
69         -DWITH_ASF=ON \
70         -DWITH_MP4=ON
71
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} -C build install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
81 cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
82
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)
91 %doc AUTHORS NEWS
92 %attr(755,root,root) %{_libdir}/libtag.so.*.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libtag.so.1
94 %attr(755,root,root) %{_libdir}/libtag_c.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libtag_c.so.0
96
97 %files devel
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/taglib-config
100 %attr(755,root,root) %{_libdir}/libtag.so
101 %attr(755,root,root) %{_libdir}/libtag_c.so
102 %{_pkgconfigdir}/taglib.pc
103 %{_pkgconfigdir}/taglib_c.pc
104 %{_includedir}/taglib
105
106 %files examples
107 %defattr(644,root,root,755)
108 %{_examplesdir}/%{name}-%{version}
This page took 0.056278 seconds and 3 git commands to generate.