]>
Commit | Line | Data |
---|---|---|
f6c1c82d JB |
1 | # TODO: |
2 | # - dangling patches | |
3 | # - optflags (CMAKE_BUILD_TYPE=Release overrides them) | |
97bc134e | 4 | Summary: A tag library for reading and editing audio meta data |
3ef1ce87 | 5 | Summary(pl.UTF-8): Biblioteka tag do odczytu i edycji metadanych dotyczących dźwięku |
09f517f6 | 6 | Name: taglib |
9bbf1f0a | 7 | Version: 1.6 |
07efe132 | 8 | Release: 0.5 |
f6c1c82d | 9 | License: LGPL v2.1 or MPL v1.1 |
09f517f6 | 10 | Group: X11/Libraries |
f56130a1 | 11 | Source0: http://ktown.kde.org/~wheeler/files/src/%{name}-%{version}.tar.gz |
9bbf1f0a | 12 | # Source0-md5: 5ecad0816e586a954bd676a86237d054 |
23366593 | 13 | Patch0: %{name}-libtool-sanitize.patch |
82ab4e3e | 14 | Patch1: kde-ac260-lt.patch |
4c13dbaf | 15 | Patch2: taglib-am.patch |
f56130a1 | 16 | URL: http://ktown.kde.org/~wheeler/taglib.html |
9ee83894 | 17 | BuildRequires: cmake >= 2.6.2 |
4aa1b00d | 18 | BuildRequires: libstdc++-devel |
f416622e | 19 | BuildRequires: perl-base |
fb954ded | 20 | BuildRequires: pkgconfig |
09f517f6 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
d07dd10b JB |
24 | A tag library needed for juk application which is part of |
25 | kdemultimedia package. | |
09f517f6 | 26 | |
b747209f JR |
27 | %description -l pl.UTF-8 |
28 | Biblioteka tag wykorzystywana przez program juk, będący częścią | |
d07dd10b | 29 | pakietu kdemultimedia. |
09f517f6 | 30 | |
31 | %package devel | |
32 | Summary: libtag - header files | |
3ef1ce87 | 33 | Summary(pl.UTF-8): libtag - pliki nagłówkowe |
09f517f6 | 34 | Group: X11/Development/Libraries |
35 | Requires: %{name} = %{version}-%{release} | |
23366593 | 36 | Requires: libstdc++-devel |
09f517f6 | 37 | |
38 | %description devel | |
23366593 | 39 | Header files for tag library. |
09f517f6 | 40 | |
b747209f JR |
41 | %description devel -l pl.UTF-8 |
42 | Pliki nagłówkowe biblioteki tag. | |
09f517f6 | 43 | |
44 | %prep | |
f56130a1 | 45 | %setup -q |
09f517f6 | 46 | |
47 | %build | |
9ee83894 BZ |
48 | install -d build |
49 | cd build | |
f6c1c82d | 50 | %cmake .. \ |
9ee83894 BZ |
51 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
52 | -DLIB_INSTALL_DIR=%{_libdir} \ | |
9ee83894 BZ |
53 | %if "%{_lib}" == "lib64" |
54 | -DLIB_SUFFIX=64 \ | |
55 | %endif | |
f6c1c82d JB |
56 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ |
57 | -DCMAKE_VERBOSE_MAKEFILE=ON \ | |
58 | -DWITH_ASF=ON \ | |
59 | -DWITH_MP4=ON | |
60 | ||
09f517f6 | 61 | %{__make} |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
9ee83894 | 66 | %{__make} -C build install \ |
09f517f6 | 67 | DESTDIR=$RPM_BUILD_ROOT |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post -p /sbin/ldconfig | |
73 | %postun -p /sbin/ldconfig | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
09f517f6 | 77 | %attr(755,root,root) %{_libdir}/libtag.so.*.*.* |
fb954ded | 78 | %attr(755,root,root) %ghost %{_libdir}/libtag.so.? |
f56130a1 | 79 | %attr(755,root,root) %{_libdir}/libtag_c.so.*.*.* |
fb954ded | 80 | %attr(755,root,root) %ghost %{_libdir}/libtag_c.so.? |
09f517f6 | 81 | |
82 | %files devel | |
d07dd10b | 83 | %defattr(644,root,root,755) |
09f517f6 | 84 | %attr(755,root,root) %{_bindir}/taglib-config |
6da6ba3f | 85 | %{_libdir}/libtag.so |
86 | %{_libdir}/libtag_c.so | |
08f46e02 | 87 | %{_pkgconfigdir}/taglib.pc |
fb954ded | 88 | %{_pkgconfigdir}/taglib_c.pc |
f56130a1 | 89 | %{_includedir}/taglib |