3 # - optflags (CMAKE_BUILD_TYPE=Release overrides them)
4 Summary: A tag library for reading and editing audio meta data
5 Summary(pl.UTF-8): Biblioteka tag do odczytu i edycji metadanych dotyczących dźwięku
9 License: LGPL v2.1 or MPL v1.1
11 Source0: http://ktown.kde.org/~wheeler/files/src/%{name}-%{version}.tar.gz
12 # Source0-md5: ddf02f4e1d2dc30f76734df806e613eb
13 Patch0: %{name}-libtool-sanitize.patch
14 Patch1: kde-ac260-lt.patch
15 Patch2: %{name}-am.patch
16 URL: http://ktown.kde.org/~wheeler/taglib.html
17 BuildRequires: cmake >= 2.6.2
18 BuildRequires: libstdc++-devel
19 BuildRequires: perl-base
20 BuildRequires: pkgconfig
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 A tag library needed for juk application which is part of
25 kdemultimedia package.
27 %description -l pl.UTF-8
28 Biblioteka tag wykorzystywana przez program juk, będący częścią
29 pakietu kdemultimedia.
32 Summary: libtag - header files
33 Summary(pl.UTF-8): libtag - pliki nagłówkowe
34 Group: Development/Libraries
35 Requires: %{name} = %{version}-%{release}
36 Requires: libstdc++-devel
39 Header files for tag library.
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki tag.
45 Summary: Example codes for taglib
46 Summary(hu.UTF-8): Példaprogramok
47 Summary(pl.UTF-8): Przykładowe programy w postaci źródłowej dla tagliba
48 Group: Development/Libraries
51 Example codes for taglib.
53 %description examples -l hu.UTF-8
56 %description examples -l pl.UTF-8
57 Przykładowe programy w postaci źródłowej dla tagliba.
66 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
67 -DLIB_INSTALL_DIR=%{_libdir} \
68 %if "%{_lib}" == "lib64"
71 -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
72 -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
73 -DCMAKE_VERBOSE_MAKEFILE=ON \
80 rm -rf $RPM_BUILD_ROOT
82 %{__make} -C build install \
83 DESTDIR=$RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
86 cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
89 rm -rf $RPM_BUILD_ROOT
91 %post -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
95 %defattr(644,root,root,755)
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
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_bindir}/taglib-config
105 %{_libdir}/libtag_c.so
106 %{_pkgconfigdir}/taglib.pc
107 %{_pkgconfigdir}/taglib_c.pc
108 %{_includedir}/taglib
111 %defattr(644,root,root,755)
112 %{_examplesdir}/%{name}-%{version}