]> git.pld-linux.org Git - packages/taglib.git/blob - taglib.spec
- add build type
[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.6
5 Release:        0.5
6 License:        GPL
7 Group:          X11/Libraries
8 Source0:        http://ktown.kde.org/~wheeler/files/src/%{name}-%{version}.tar.gz
9 # Source0-md5:  5ecad0816e586a954bd676a86237d054
10 Patch0:         %{name}-libtool-sanitize.patch
11 Patch1:         kde-ac260-lt.patch
12 Patch2:         taglib-am.patch
13 URL:            http://ktown.kde.org/~wheeler/taglib.html
14 BuildRequires:  cmake >= 2.6.2
15 BuildRequires:  libstdc++-devel
16 BuildRequires:  perl-base
17 BuildRequires:  pkgconfig
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 A tag library needed for juk application which is part of
22 kdemultimedia package.
23
24 %description -l pl.UTF-8
25 Biblioteka tag wykorzystywana przez program juk, będący częścią
26 pakietu kdemultimedia.
27
28 %package devel
29 Summary:        libtag - header files
30 Summary(pl.UTF-8):      libtag - pliki nagłówkowe
31 Group:          X11/Development/Libraries
32 Requires:       %{name} = %{version}-%{release}
33 Requires:       libstdc++-devel
34
35 %description devel
36 Header files for tag library.
37
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe biblioteki tag.
40
41 %prep
42 %setup -q
43
44 %build
45 install -d build
46 cd build
47 %cmake \
48         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
49         -DLIB_INSTALL_DIR=%{_libdir} \
50         -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
51         -DWITH_ASF=ON \
52         -DWITH_MP4=ON \
53 %if "%{_lib}" == "lib64"
54         -DLIB_SUFFIX=64 \
55 %endif
56         ../
57 %{__make}
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61
62 %{__make} -C build install \
63         DESTDIR=$RPM_BUILD_ROOT
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %post   -p /sbin/ldconfig
69 %postun -p /sbin/ldconfig
70
71 %files
72 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_libdir}/libtag.so.*.*.*
74 %attr(755,root,root) %ghost %{_libdir}/libtag.so.?
75 %attr(755,root,root) %{_libdir}/libtag_c.so.*.*.*
76 %attr(755,root,root) %ghost %{_libdir}/libtag_c.so.?
77
78 %files devel
79 %defattr(644,root,root,755)
80 %attr(755,root,root) %{_bindir}/taglib-config
81 %{_libdir}/libtag.so
82 %{_libdir}/libtag_c.so
83 %{_pkgconfigdir}/taglib.pc
84 %{_pkgconfigdir}/taglib_c.pc
85 %{_includedir}/taglib
This page took 0.051421 seconds and 4 git commands to generate.