]> git.pld-linux.org Git - packages/taglib.git/blob - taglib.spec
58b3cff0cd2e91cc71e235d4e02c4bb63efda009
[packages/taglib.git] / taglib.spec
1 # TODO:
2 # - dangling patches
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
6 Name:           taglib
7 Version:        1.6.3
8 Release:        2
9 License:        LGPL v2.1 or MPL v1.1
10 Group:          X11/Libraries
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)
22
23 %description
24 A tag library needed for juk application which is part of
25 kdemultimedia package.
26
27 %description -l pl.UTF-8
28 Biblioteka tag wykorzystywana przez program juk, będący częścią
29 pakietu kdemultimedia.
30
31 %package devel
32 Summary:        libtag - header files
33 Summary(pl.UTF-8):      libtag - pliki nagłówkowe
34 Group:          X11/Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36 Requires:       libstdc++-devel
37
38 %description devel
39 Header files for tag library.
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki tag.
43
44 %package examples
45 Summary:        Example codes
46 Summary(hu.UTF-8):      Példaprogramok
47 Group:          X11/Development/Libraries
48
49 %description examples
50 Example codes.
51
52 %description examples -l hu.UTF-8
53 Példaprogramok.
54
55 %prep
56 %setup -q
57
58 %build
59 install -d build
60 cd build
61 %cmake .. \
62         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
63         -DLIB_INSTALL_DIR=%{_libdir} \
64 %if "%{_lib}" == "lib64"
65         -DLIB_SUFFIX=64 \
66 %endif
67         -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
68         -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
69         -DCMAKE_VERBOSE_MAKEFILE=ON \
70         -DWITH_ASF=ON \
71         -DWITH_MP4=ON
72
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} -C build install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
82 cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %files
91 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_libdir}/libtag.so.*.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libtag.so.?
94 %attr(755,root,root) %{_libdir}/libtag_c.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libtag_c.so.?
96
97 %files devel
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/taglib-config
100 %{_libdir}/libtag.so
101 %{_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.046969 seconds and 2 git commands to generate.