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